public class DiskInner
extends com.azure.core.management.Resource
Constructor and Description |
---|
DiskInner() |
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.
|
String |
hostCaching()
Get the hostCaching property: The host caching policy of the disk (i.e.
|
String |
leasedByLabVmId()
Get the leasedByLabVmId property: The resource ID of the VM to which this disk is leased.
|
String |
managedDiskId()
Get the managedDiskId property: When backed by managed disk, this is the ID of the compute disk 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.
|
String |
uniqueIdentifier()
Get the uniqueIdentifier property: The unique immutable identifier of a resource (Guid).
|
void |
validate()
Validates the instance.
|
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) |
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) |
public StorageType diskType()
public DiskInner withDiskType(StorageType diskType)
diskType
- the diskType value to set.public Integer diskSizeGiB()
public DiskInner withDiskSizeGiB(Integer diskSizeGiB)
diskSizeGiB
- the diskSizeGiB value to set.public String leasedByLabVmId()
public DiskInner withLeasedByLabVmId(String leasedByLabVmId)
leasedByLabVmId
- the leasedByLabVmId value to set.public String diskBlobName()
public DiskInner withDiskBlobName(String diskBlobName)
diskBlobName
- the diskBlobName value to set.public String diskUri()
public DiskInner withDiskUri(String diskUri)
diskUri
- the diskUri value to set.public String storageAccountId()
public DiskInner withStorageAccountId(String storageAccountId)
storageAccountId
- the storageAccountId value to set.public OffsetDateTime createdDate()
public String hostCaching()
public DiskInner withHostCaching(String hostCaching)
hostCaching
- the hostCaching value to set.public String managedDiskId()
public DiskInner withManagedDiskId(String managedDiskId)
managedDiskId
- the managedDiskId value to set.public String provisioningState()
public String uniqueIdentifier()
public DiskInner withLocation(String location)
withLocation
in class com.azure.core.management.Resource
public DiskInner withTags(Map<String,String> tags)
withTags
in class com.azure.core.management.Resource
public void validate()
IllegalArgumentException
- thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.