CapacityPoolPatch Class

  • java.lang.Object
    • com.azure.resourcemanager.netapp.models.CapacityPoolPatch

Implements

public final class CapacityPoolPatch
implements JsonSerializable<CapacityPoolPatch>

Capacity pool patch resource.

Constructor Summary

Constructor Description
CapacityPoolPatch()

Creates an instance of CapacityPoolPatch class.

Method Summary

Modifier and Type Method and Description
Boolean coolAccess()

Get the coolAccess property: If enabled (true) the pool can contain cool Access enabled volumes.

Integer customThroughputMibps()

Get the customThroughputMibps property: Maximum throughput in MiB/s that can be achieved by this pool and this will be accepted as input only for manual qosType pool with Flexible service level.

static CapacityPoolPatch fromJson(JsonReader jsonReader)

Reads an instance of CapacityPoolPatch from the JsonReader.

String id()

Get the id property: Resource Id.

String location()

Get the location property: Resource location.

String name()

Get the name property: Resource name.

QosType qosType()

Get the qosType property: The qos type of the pool.

Long size()

Get the size property: Provisioned size of the pool (in bytes).

Map<String,String> tags()

Get the tags property: Resource tags.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: Resource type.

void validate()

Validates the instance.

CapacityPoolPatch withCoolAccess(Boolean coolAccess)

Set the coolAccess property: If enabled (true) the pool can contain cool Access enabled volumes.

CapacityPoolPatch withCustomThroughputMibps(Integer customThroughputMibps)

Set the customThroughputMibps property: Maximum throughput in MiB/s that can be achieved by this pool and this will be accepted as input only for manual qosType pool with Flexible service level.

CapacityPoolPatch withLocation(String location)

Set the location property: Resource location.

CapacityPoolPatch withQosType(QosType qosType)

Set the qosType property: The qos type of the pool.

CapacityPoolPatch withSize(Long size)

Set the size property: Provisioned size of the pool (in bytes).

CapacityPoolPatch withTags(Map<String,String> tags)

Set the tags property: Resource tags.

Methods inherited from java.lang.Object

Constructor Details

CapacityPoolPatch

public CapacityPoolPatch()

Creates an instance of CapacityPoolPatch class.

Method Details

coolAccess

public Boolean coolAccess()

Get the coolAccess property: If enabled (true) the pool can contain cool Access enabled volumes.

Returns:

the coolAccess value.

customThroughputMibps

public Integer customThroughputMibps()

Get the customThroughputMibps property: Maximum throughput in MiB/s that can be achieved by this pool and this will be accepted as input only for manual qosType pool with Flexible service level.

Returns:

the customThroughputMibps value.

fromJson

public static CapacityPoolPatch fromJson(JsonReader jsonReader)

Reads an instance of CapacityPoolPatch from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: Resource Id.

Returns:

the id value.

location

public String location()

Get the location property: Resource location.

Returns:

the location value.

name

public String name()

Get the name property: Resource name.

Returns:

the name value.

qosType

public QosType qosType()

Get the qosType property: The qos type of the pool.

Returns:

the qosType value.

size

public Long size()

Get the size property: Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be multiple of 1099511627776).

Returns:

the size value.

tags

public Map<String,String> tags()

Get the tags property: Resource tags.

Returns:

the tags value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: Resource type.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withCoolAccess

public CapacityPoolPatch withCoolAccess(Boolean coolAccess)

Set the coolAccess property: If enabled (true) the pool can contain cool Access enabled volumes.

Parameters:

coolAccess - the coolAccess value to set.

Returns:

the CapacityPoolPatch object itself.

withCustomThroughputMibps

public CapacityPoolPatch withCustomThroughputMibps(Integer customThroughputMibps)

Set the customThroughputMibps property: Maximum throughput in MiB/s that can be achieved by this pool and this will be accepted as input only for manual qosType pool with Flexible service level.

Parameters:

customThroughputMibps - the customThroughputMibps value to set.

Returns:

the CapacityPoolPatch object itself.

withLocation

public CapacityPoolPatch withLocation(String location)

Set the location property: Resource location.

Parameters:

location - the location value to set.

Returns:

the CapacityPoolPatch object itself.

withQosType

public CapacityPoolPatch withQosType(QosType qosType)

Set the qosType property: The qos type of the pool.

Parameters:

qosType - the qosType value to set.

Returns:

the CapacityPoolPatch object itself.

withSize

public CapacityPoolPatch withSize(Long size)

Set the size property: Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be multiple of 1099511627776).

Parameters:

size - the size value to set.

Returns:

the CapacityPoolPatch object itself.

withTags

public CapacityPoolPatch withTags(Map<String,String> tags)

Set the tags property: Resource tags.

Parameters:

tags - the tags value to set.

Returns:

the CapacityPoolPatch object itself.

Applies to