StorageQosPolicyDetails Class

  • java.lang.Object
    • com.azure.resourcemanager.scvmm.models.StorageQosPolicyDetails

Implements

public final class StorageQosPolicyDetails
implements JsonSerializable<StorageQosPolicyDetails>

The StorageQoSPolicyDetails definition.

Constructor Summary

Constructor Description
StorageQosPolicyDetails()

Creates an instance of StorageQosPolicyDetails class.

Method Summary

Modifier and Type Method and Description
static StorageQosPolicyDetails fromJson(JsonReader jsonReader)

Reads an instance of StorageQosPolicyDetails from the JsonReader.

String id()

Get the id property: The ID of the QoS policy.

String name()

Get the name property: The name of the policy.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

StorageQosPolicyDetails withId(String id)

Set the id property: The ID of the QoS policy.

StorageQosPolicyDetails withName(String name)

Set the name property: The name of the policy.

Methods inherited from java.lang.Object

Constructor Details

StorageQosPolicyDetails

public StorageQosPolicyDetails()

Creates an instance of StorageQosPolicyDetails class.

Method Details

fromJson

public static StorageQosPolicyDetails fromJson(JsonReader jsonReader)

Reads an instance of StorageQosPolicyDetails from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of StorageQosPolicyDetails if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the StorageQosPolicyDetails.

id

public String id()

Get the id property: The ID of the QoS policy.

Returns:

the id value.

name

public String name()

Get the name property: The name of the policy.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withId

public StorageQosPolicyDetails withId(String id)

Set the id property: The ID of the QoS policy.

Parameters:

id - the id value to set.

Returns:

the StorageQosPolicyDetails object itself.

withName

public StorageQosPolicyDetails withName(String name)

Set the name property: The name of the policy.

Parameters:

name - the name value to set.

Returns:

the StorageQosPolicyDetails object itself.

Applies to