StorageQosPolicy Class

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

Implements

public final class StorageQosPolicy
implements JsonSerializable<StorageQosPolicy>

The StorageQoSPolicy definition.

Constructor Summary

Constructor Description
StorageQosPolicy()

Creates an instance of StorageQosPolicy class.

Method Summary

Modifier and Type Method and Description
Long bandwidthLimit()

Get the bandwidthLimit property: The Bandwidth Limit for internet traffic.

static StorageQosPolicy fromJson(JsonReader jsonReader)

Reads an instance of StorageQosPolicy from the JsonReader.

String id()

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

Long iopsMaximum()

Get the iopsMaximum property: The maximum IO operations per second.

Long iopsMinimum()

Get the iopsMinimum property: The minimum IO operations per second.

String name()

Get the name property: The name of the policy.

String policyId()

Get the policyId property: The underlying policy.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

StorageQosPolicy withBandwidthLimit(Long bandwidthLimit)

Set the bandwidthLimit property: The Bandwidth Limit for internet traffic.

StorageQosPolicy withId(String id)

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

StorageQosPolicy withIopsMaximum(Long iopsMaximum)

Set the iopsMaximum property: The maximum IO operations per second.

StorageQosPolicy withIopsMinimum(Long iopsMinimum)

Set the iopsMinimum property: The minimum IO operations per second.

StorageQosPolicy withName(String name)

Set the name property: The name of the policy.

StorageQosPolicy withPolicyId(String policyId)

Set the policyId property: The underlying policy.

Methods inherited from java.lang.Object

Constructor Details

StorageQosPolicy

public StorageQosPolicy()

Creates an instance of StorageQosPolicy class.

Method Details

bandwidthLimit

public Long bandwidthLimit()

Get the bandwidthLimit property: The Bandwidth Limit for internet traffic.

Returns:

the bandwidthLimit value.

fromJson

public static StorageQosPolicy fromJson(JsonReader jsonReader)

Reads an instance of StorageQosPolicy from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of StorageQosPolicy 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 StorageQosPolicy.

id

public String id()

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

Returns:

the id value.

iopsMaximum

public Long iopsMaximum()

Get the iopsMaximum property: The maximum IO operations per second.

Returns:

the iopsMaximum value.

iopsMinimum

public Long iopsMinimum()

Get the iopsMinimum property: The minimum IO operations per second.

Returns:

the iopsMinimum value.

name

public String name()

Get the name property: The name of the policy.

Returns:

the name value.

policyId

public String policyId()

Get the policyId property: The underlying policy.

Returns:

the policyId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withBandwidthLimit

public StorageQosPolicy withBandwidthLimit(Long bandwidthLimit)

Set the bandwidthLimit property: The Bandwidth Limit for internet traffic.

Parameters:

bandwidthLimit - the bandwidthLimit value to set.

Returns:

the StorageQosPolicy object itself.

withId

public StorageQosPolicy withId(String id)

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

Parameters:

id - the id value to set.

Returns:

the StorageQosPolicy object itself.

withIopsMaximum

public StorageQosPolicy withIopsMaximum(Long iopsMaximum)

Set the iopsMaximum property: The maximum IO operations per second.

Parameters:

iopsMaximum - the iopsMaximum value to set.

Returns:

the StorageQosPolicy object itself.

withIopsMinimum

public StorageQosPolicy withIopsMinimum(Long iopsMinimum)

Set the iopsMinimum property: The minimum IO operations per second.

Parameters:

iopsMinimum - the iopsMinimum value to set.

Returns:

the StorageQosPolicy object itself.

withName

public StorageQosPolicy withName(String name)

Set the name property: The name of the policy.

Parameters:

name - the name value to set.

Returns:

the StorageQosPolicy object itself.

withPolicyId

public StorageQosPolicy withPolicyId(String policyId)

Set the policyId property: The underlying policy.

Parameters:

policyId - the policyId value to set.

Returns:

the StorageQosPolicy object itself.

Applies to