VolumeInner Class

public final class VolumeInner
extends Resource

Volume represents storage made available for use by resources running on the cluster.

Constructor Summary

Constructor Description
VolumeInner()

Creates an instance of VolumeInner class.

Method Summary

Modifier and Type Method and Description
Long allocatedSizeMiB()

Get the allocatedSizeMiB property: The allocated size of the volume in Mebibytes.

String assignedStorageApplianceId()

Get the assignedStorageApplianceId property: The assigned resource ID of the storage appliance that hosts the volume.

List<String> attachedTo()

Get the attachedTo property: The list of resource IDs that attach the volume.

VolumeDetailedStatus detailedStatus()

Get the detailedStatus property: The more detailed status of the volume.

String detailedStatusMessage()

Get the detailedStatusMessage property: The descriptive message about the current detailed status.

String etag()

Get the etag property: "If etag is provided in the response body, it may also be provided as a header per the normal etag convention.

ExtendedLocation extendedLocation()

Get the extendedLocation property: The extended location of the resource.

static VolumeInner fromJson(JsonReader jsonReader)

Reads an instance of VolumeInner from the JsonReader.

String id()

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

String name()

Get the name property: The name of the resource.

VolumeProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the volume.

String serialNumber()

Get the serialNumber property: The unique identifier of the volume.

long sizeMiB()

Get the sizeMiB property: The requested storage allocation for the volume in Mebibytes.

String storageApplianceId()

Get the storageApplianceId property: The resource ID of the storage appliance that hosts the volume.

SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

VolumeInner withExtendedLocation(ExtendedLocation extendedLocation)

Set the extendedLocation property: The extended location of the resource.

VolumeInner withLocation(String location)
VolumeInner withSizeMiB(long sizeMiB)

Set the sizeMiB property: The requested storage allocation for the volume in Mebibytes.

VolumeInner withStorageApplianceId(String storageApplianceId)

Set the storageApplianceId property: The resource ID of the storage appliance that hosts the volume.

VolumeInner withTags(Map<String,String> tags)

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

VolumeInner

public VolumeInner()

Creates an instance of VolumeInner class.

Method Details

allocatedSizeMiB

public Long allocatedSizeMiB()

Get the allocatedSizeMiB property: The allocated size of the volume in Mebibytes.

Returns:

the allocatedSizeMiB value.

assignedStorageApplianceId

public String assignedStorageApplianceId()

Get the assignedStorageApplianceId property: The assigned resource ID of the storage appliance that hosts the volume.

Returns:

the assignedStorageApplianceId value.

attachedTo

public List<String> attachedTo()

Get the attachedTo property: The list of resource IDs that attach the volume. It may include virtual machines and Hybrid AKS clusters.

Returns:

the attachedTo value.

detailedStatus

public VolumeDetailedStatus detailedStatus()

Get the detailedStatus property: The more detailed status of the volume.

Returns:

the detailedStatus value.

detailedStatusMessage

public String detailedStatusMessage()

Get the detailedStatusMessage property: The descriptive message about the current detailed status.

Returns:

the detailedStatusMessage value.

etag

public String etag()

Get the etag property: "If etag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.").

Returns:

the etag value.

extendedLocation

public ExtendedLocation extendedLocation()

Get the extendedLocation property: The extended location of the resource. This property is required when creating the resource.

Returns:

the extendedLocation value.

fromJson

public static VolumeInner fromJson(JsonReader jsonReader)

Reads an instance of VolumeInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of VolumeInner 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:

VolumeInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

VolumeInner.name()

Returns:

the name value.

provisioningState

public VolumeProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the volume.

Returns:

the provisioningState value.

serialNumber

public String serialNumber()

Get the serialNumber property: The unique identifier of the volume.

Returns:

the serialNumber value.

sizeMiB

public long sizeMiB()

Get the sizeMiB property: The requested storage allocation for the volume in Mebibytes.

Returns:

the sizeMiB value.

storageApplianceId

public String storageApplianceId()

Get the storageApplianceId property: The resource ID of the storage appliance that hosts the volume.

Returns:

the storageApplianceId value.

systemData

public SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

VolumeInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

VolumeInner.type()

Returns:

the type value.

withExtendedLocation

public VolumeInner withExtendedLocation(ExtendedLocation extendedLocation)

Set the extendedLocation property: The extended location of the resource. This property is required when creating the resource.

Parameters:

extendedLocation - the extendedLocation value to set.

Returns:

the VolumeInner object itself.

withLocation

public VolumeInner withLocation(String location)

Overrides:

VolumeInner.withLocation(String location)

Parameters:

location

withSizeMiB

public VolumeInner withSizeMiB(long sizeMiB)

Set the sizeMiB property: The requested storage allocation for the volume in Mebibytes.

Parameters:

sizeMiB - the sizeMiB value to set.

Returns:

the VolumeInner object itself.

withStorageApplianceId

public VolumeInner withStorageApplianceId(String storageApplianceId)

Set the storageApplianceId property: The resource ID of the storage appliance that hosts the volume.

Parameters:

storageApplianceId - the storageApplianceId value to set.

Returns:

the VolumeInner object itself.

withTags

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

Overrides:

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

Parameters:

tags

Applies to