Dela via


DiskPoolInner Class

public final class DiskPoolInner
extends Resource

Response for Disk Pool request.

Constructor Summary

Constructor Description
DiskPoolInner()

Creates an instance of DiskPoolInner class.

Method Summary

Modifier and Type Method and Description
List<String> additionalCapabilities()

Get the additionalCapabilities property: List of additional capabilities for Disk Pool.

List<String> availabilityZones()

Get the availabilityZones property: Logical zone for Disk Pool resource; example: ["1"].

List<Disk> disks()

Get the disks property: List of Azure Managed Disks to attach to a Disk Pool.

static DiskPoolInner fromJson(JsonReader jsonReader)

Reads an instance of DiskPoolInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

String managedBy()

Get the managedBy property: Azure resource id.

List<String> managedByExtended()

Get the managedByExtended property: List of Azure resource ids that manage this resource.

String name()

Get the name property: The name of the resource.

String nameSkuName()

Get the name property: Sku name.

ProvisioningStates provisioningState()

Get the provisioningState property: State of the operation on the resource.

OperationalStatus status()

Get the status property: Operational status of the Disk Pool.

String subnetId()

Get the subnetId property: Azure Resource ID of a Subnet for the Disk Pool.

SystemMetadata systemData()

Get the systemData property: Resource metadata required by ARM RPC.

String tier()

Get the tier property: Sku tier.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

DiskPoolInner withAdditionalCapabilities(List<String> additionalCapabilities)

Set the additionalCapabilities property: List of additional capabilities for Disk Pool.

DiskPoolInner withAvailabilityZones(List<String> availabilityZones)

Set the availabilityZones property: Logical zone for Disk Pool resource; example: ["1"].

DiskPoolInner withDisks(List<Disk> disks)

Set the disks property: List of Azure Managed Disks to attach to a Disk Pool.

DiskPoolInner withLocation(String location)
DiskPoolInner withNameSkuName(String name)

Set the name property: Sku name.

DiskPoolInner withStatus(OperationalStatus status)

Set the status property: Operational status of the Disk Pool.

DiskPoolInner withSubnetId(String subnetId)

Set the subnetId property: Azure Resource ID of a Subnet for the Disk Pool.

DiskPoolInner withTags(Map<String,String> tags)
DiskPoolInner withTier(String tier)

Set the tier property: Sku tier.

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

DiskPoolInner

public DiskPoolInner()

Creates an instance of DiskPoolInner class.

Method Details

additionalCapabilities

public List<String> additionalCapabilities()

Get the additionalCapabilities property: List of additional capabilities for Disk Pool.

Returns:

the additionalCapabilities value.

availabilityZones

public List<String> availabilityZones()

Get the availabilityZones property: Logical zone for Disk Pool resource; example: ["1"].

Returns:

the availabilityZones value.

disks

public List<Disk> disks()

Get the disks property: List of Azure Managed Disks to attach to a Disk Pool.

Returns:

the disks value.

fromJson

public static DiskPoolInner fromJson(JsonReader jsonReader)

Reads an instance of DiskPoolInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

DiskPoolInner.id()

Returns:

the id value.

managedBy

public String managedBy()

Get the managedBy property: Azure resource id. Indicates if this resource is managed by another Azure resource.

Returns:

the managedBy value.

managedByExtended

public List<String> managedByExtended()

Get the managedByExtended property: List of Azure resource ids that manage this resource.

Returns:

the managedByExtended value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

DiskPoolInner.name()

Returns:

the name value.

nameSkuName

public String nameSkuName()

Get the name property: Sku name.

Returns:

the name value.

provisioningState

public ProvisioningStates provisioningState()

Get the provisioningState property: State of the operation on the resource.

Returns:

the provisioningState value.

status

public OperationalStatus status()

Get the status property: Operational status of the Disk Pool.

Returns:

the status value.

subnetId

public String subnetId()

Get the subnetId property: Azure Resource ID of a Subnet for the Disk Pool.

Returns:

the subnetId value.

systemData

public SystemMetadata systemData()

Get the systemData property: Resource metadata required by ARM RPC.

Returns:

the systemData value.

tier

public String tier()

Get the tier property: Sku tier.

Returns:

the tier value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

DiskPoolInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

DiskPoolInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withAdditionalCapabilities

public DiskPoolInner withAdditionalCapabilities(List<String> additionalCapabilities)

Set the additionalCapabilities property: List of additional capabilities for Disk Pool.

Parameters:

additionalCapabilities - the additionalCapabilities value to set.

Returns:

the DiskPoolInner object itself.

withAvailabilityZones

public DiskPoolInner withAvailabilityZones(List<String> availabilityZones)

Set the availabilityZones property: Logical zone for Disk Pool resource; example: ["1"].

Parameters:

availabilityZones - the availabilityZones value to set.

Returns:

the DiskPoolInner object itself.

withDisks

public DiskPoolInner withDisks(List<Disk> disks)

Set the disks property: List of Azure Managed Disks to attach to a Disk Pool.

Parameters:

disks - the disks value to set.

Returns:

the DiskPoolInner object itself.

withLocation

public DiskPoolInner withLocation(String location)

Overrides:

DiskPoolInner.withLocation(String location)

Parameters:

location

withNameSkuName

public DiskPoolInner withNameSkuName(String name)

Set the name property: Sku name.

Parameters:

name - the name value to set.

Returns:

the DiskPoolInner object itself.

withStatus

public DiskPoolInner withStatus(OperationalStatus status)

Set the status property: Operational status of the Disk Pool.

Parameters:

status - the status value to set.

Returns:

the DiskPoolInner object itself.

withSubnetId

public DiskPoolInner withSubnetId(String subnetId)

Set the subnetId property: Azure Resource ID of a Subnet for the Disk Pool.

Parameters:

subnetId - the subnetId value to set.

Returns:

the DiskPoolInner object itself.

withTags

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

Overrides:

DiskPoolInner.withTags(Map<String,String> tags)

Parameters:

tags

withTier

public DiskPoolInner withTier(String tier)

Set the tier property: Sku tier.

Parameters:

tier - the tier value to set.

Returns:

the DiskPoolInner object itself.

Applies to