DiskInner Class

public final class DiskInner
extends ProxyResource

A Disk.

Constructor Summary

Constructor Description
DiskInner()

Creates an instance of DiskInner class.

Method Summary

Modifier and Type Method and Description
OffsetDateTime createdDate()

Get the createdDate property: The creation date of the disk.

String diskBlobName()

Get the diskBlobName property: When backed by a blob, the name of the VHD blob without extension.

Integer diskSizeGiB()

Get the diskSizeGiB property: The size of the disk in Gibibytes.

StorageType diskType()

Get the diskType property: The storage type for the disk (i.e.

String diskUri()

Get the diskUri property: When backed by a blob, the URI of underlying blob.

static DiskInner fromJson(JsonReader jsonReader)

Reads an instance of DiskInner from the JsonReader.

String hostCaching()

Get the hostCaching property: The host caching policy of the disk (i.e.

String id()

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

String leasedByLabVmId()

Get the leasedByLabVmId property: The resource ID of the VM to which this disk is leased.

String location()

Get the location property: The geo-location where the resource lives.

String managedDiskId()

Get the managedDiskId property: When backed by managed disk, this is the ID of the compute disk resource.

String name()

Get the name property: The name of the resource.

String provisioningState()

Get the provisioningState property: The provisioning status of the resource.

String storageAccountId()

Get the storageAccountId property: When backed by a blob, the storage account where the blob is.

SystemData systemData()

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

Map<String,String> tags()

Get the tags property: Resource tags.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

String uniqueIdentifier()

Get the uniqueIdentifier property: The unique immutable identifier of a resource (Guid).

DiskInner withDiskBlobName(String diskBlobName)

Set the diskBlobName property: When backed by a blob, the name of the VHD blob without extension.

DiskInner withDiskSizeGiB(Integer diskSizeGiB)

Set the diskSizeGiB property: The size of the disk in Gibibytes.

DiskInner withDiskType(StorageType diskType)

Set the diskType property: The storage type for the disk (i.e.

DiskInner withDiskUri(String diskUri)

Set the diskUri property: When backed by a blob, the URI of underlying blob.

DiskInner withHostCaching(String hostCaching)

Set the hostCaching property: The host caching policy of the disk (i.e.

DiskInner withLeasedByLabVmId(String leasedByLabVmId)

Set the leasedByLabVmId property: The resource ID of the VM to which this disk is leased.

DiskInner withLocation(String location)

Set the location property: The geo-location where the resource lives.

DiskInner withManagedDiskId(String managedDiskId)

Set the managedDiskId property: When backed by managed disk, this is the ID of the compute disk resource.

DiskInner withStorageAccountId(String storageAccountId)

Set the storageAccountId property: When backed by a blob, the storage account where the blob is.

DiskInner withTags(Map<String,String> tags)

Set the tags property: Resource tags.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

DiskInner

public DiskInner()

Creates an instance of DiskInner class.

Method Details

createdDate

public OffsetDateTime createdDate()

Get the createdDate property: The creation date of the disk.

Returns:

the createdDate value.

diskBlobName

public String diskBlobName()

Get the diskBlobName property: When backed by a blob, the name of the VHD blob without extension.

Returns:

the diskBlobName value.

diskSizeGiB

public Integer diskSizeGiB()

Get the diskSizeGiB property: The size of the disk in Gibibytes.

Returns:

the diskSizeGiB value.

diskType

public StorageType diskType()

Get the diskType property: The storage type for the disk (i.e. Standard, Premium).

Returns:

the diskType value.

diskUri

public String diskUri()

Get the diskUri property: When backed by a blob, the URI of underlying blob.

Returns:

the diskUri value.

fromJson

public static DiskInner fromJson(JsonReader jsonReader)

Reads an instance of DiskInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

hostCaching

public String hostCaching()

Get the hostCaching property: The host caching policy of the disk (i.e. None, ReadOnly, ReadWrite).

Returns:

the hostCaching value.

id

public String id()

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

Overrides:

DiskInner.id()

Returns:

the id value.

leasedByLabVmId

public String leasedByLabVmId()

Get the leasedByLabVmId property: The resource ID of the VM to which this disk is leased.

Returns:

the leasedByLabVmId value.

location

public String location()

Get the location property: The geo-location where the resource lives.

Returns:

the location value.

managedDiskId

public String managedDiskId()

Get the managedDiskId property: When backed by managed disk, this is the ID of the compute disk resource.

Returns:

the managedDiskId value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

DiskInner.name()

Returns:

the name value.

provisioningState

public String provisioningState()

Get the provisioningState property: The provisioning status of the resource.

Returns:

the provisioningState value.

storageAccountId

public String storageAccountId()

Get the storageAccountId property: When backed by a blob, the storage account where the blob is.

Returns:

the storageAccountId value.

systemData

public SystemData systemData()

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

Returns:

the systemData value.

tags

public Map<String,String> tags()

Get the tags property: Resource tags.

Returns:

the tags value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

DiskInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

DiskInner.type()

Returns:

the type value.

uniqueIdentifier

public String uniqueIdentifier()

Get the uniqueIdentifier property: The unique immutable identifier of a resource (Guid).

Returns:

the uniqueIdentifier value.

withDiskBlobName

public DiskInner withDiskBlobName(String diskBlobName)

Set the diskBlobName property: When backed by a blob, the name of the VHD blob without extension.

Parameters:

diskBlobName - the diskBlobName value to set.

Returns:

the DiskInner object itself.

withDiskSizeGiB

public DiskInner withDiskSizeGiB(Integer diskSizeGiB)

Set the diskSizeGiB property: The size of the disk in Gibibytes.

Parameters:

diskSizeGiB - the diskSizeGiB value to set.

Returns:

the DiskInner object itself.

withDiskType

public DiskInner withDiskType(StorageType diskType)

Set the diskType property: The storage type for the disk (i.e. Standard, Premium).

Parameters:

diskType - the diskType value to set.

Returns:

the DiskInner object itself.

withDiskUri

public DiskInner withDiskUri(String diskUri)

Set the diskUri property: When backed by a blob, the URI of underlying blob.

Parameters:

diskUri - the diskUri value to set.

Returns:

the DiskInner object itself.

withHostCaching

public DiskInner withHostCaching(String hostCaching)

Set the hostCaching property: The host caching policy of the disk (i.e. None, ReadOnly, ReadWrite).

Parameters:

hostCaching - the hostCaching value to set.

Returns:

the DiskInner object itself.

withLeasedByLabVmId

public DiskInner withLeasedByLabVmId(String leasedByLabVmId)

Set the leasedByLabVmId property: The resource ID of the VM to which this disk is leased.

Parameters:

leasedByLabVmId - the leasedByLabVmId value to set.

Returns:

the DiskInner object itself.

withLocation

public DiskInner withLocation(String location)

Set the location property: The geo-location where the resource lives.

Parameters:

location - the location value to set.

Returns:

the DiskInner object itself.

withManagedDiskId

public DiskInner withManagedDiskId(String managedDiskId)

Set the managedDiskId property: When backed by managed disk, this is the ID of the compute disk resource.

Parameters:

managedDiskId - the managedDiskId value to set.

Returns:

the DiskInner object itself.

withStorageAccountId

public DiskInner withStorageAccountId(String storageAccountId)

Set the storageAccountId property: When backed by a blob, the storage account where the blob is.

Parameters:

storageAccountId - the storageAccountId value to set.

Returns:

the DiskInner object itself.

withTags

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

Set the tags property: Resource tags.

Parameters:

tags - the tags value to set.

Returns:

the DiskInner object itself.

Applies to