Class DiskProperties
java.lang.Object
com.azure.resourcemanager.devtestlabs.fluent.models.DiskProperties
Properties of a disk.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the createdDate property: The creation date of the disk.Get the diskBlobName property: When backed by a blob, the name of the VHD blob without extension.Get the diskSizeGiB property: The size of the disk in Gibibytes.diskType()
Get the diskType property: The storage type for the disk (i.e.diskUri()
Get the diskUri property: When backed by a blob, the URI of underlying blob.Get the hostCaching property: The host caching policy of the disk (i.e.Get the leasedByLabVmId property: The resource ID of the VM to which this disk is leased.Get the managedDiskId property: When backed by managed disk, this is the ID of the compute disk resource.Get the provisioningState property: The provisioning status of the resource.Get the storageAccountId property: When backed by a blob, the storage account where the blob is.Get the uniqueIdentifier property: The unique immutable identifier of a resource (Guid).void
validate()
Validates the instance.withDiskBlobName
(String diskBlobName) Set the diskBlobName property: When backed by a blob, the name of the VHD blob without extension.withDiskSizeGiB
(Integer diskSizeGiB) Set the diskSizeGiB property: The size of the disk in Gibibytes.withDiskType
(StorageType diskType) Set the diskType property: The storage type for the disk (i.e.withDiskUri
(String diskUri) Set the diskUri property: When backed by a blob, the URI of underlying blob.withHostCaching
(String hostCaching) Set the hostCaching property: The host caching policy of the disk (i.e.withLeasedByLabVmId
(String leasedByLabVmId) Set the leasedByLabVmId property: The resource ID of the VM to which this disk is leased.withManagedDiskId
(String managedDiskId) Set the managedDiskId property: When backed by managed disk, this is the ID of the compute disk resource.withStorageAccountId
(String storageAccountId) Set the storageAccountId property: When backed by a blob, the storage account where the blob is.
-
Constructor Details
-
DiskProperties
public DiskProperties()Creates an instance of DiskProperties class.
-
-
Method Details
-
diskType
Get the diskType property: The storage type for the disk (i.e. Standard, Premium).- Returns:
- the diskType value.
-
withDiskType
Set the diskType property: The storage type for the disk (i.e. Standard, Premium).- Parameters:
diskType
- the diskType value to set.- Returns:
- the DiskProperties object itself.
-
diskSizeGiB
Get the diskSizeGiB property: The size of the disk in Gibibytes.- Returns:
- the diskSizeGiB value.
-
withDiskSizeGiB
Set the diskSizeGiB property: The size of the disk in Gibibytes.- Parameters:
diskSizeGiB
- the diskSizeGiB value to set.- Returns:
- the DiskProperties object itself.
-
leasedByLabVmId
Get the leasedByLabVmId property: The resource ID of the VM to which this disk is leased.- Returns:
- the leasedByLabVmId value.
-
withLeasedByLabVmId
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 DiskProperties object itself.
-
diskBlobName
Get the diskBlobName property: When backed by a blob, the name of the VHD blob without extension.- Returns:
- the diskBlobName value.
-
withDiskBlobName
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 DiskProperties object itself.
-
diskUri
Get the diskUri property: When backed by a blob, the URI of underlying blob.- Returns:
- the diskUri value.
-
withDiskUri
Set the diskUri property: When backed by a blob, the URI of underlying blob.- Parameters:
diskUri
- the diskUri value to set.- Returns:
- the DiskProperties object itself.
-
storageAccountId
Get the storageAccountId property: When backed by a blob, the storage account where the blob is.- Returns:
- the storageAccountId value.
-
withStorageAccountId
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 DiskProperties object itself.
-
createdDate
Get the createdDate property: The creation date of the disk.- Returns:
- the createdDate value.
-
hostCaching
Get the hostCaching property: The host caching policy of the disk (i.e. None, ReadOnly, ReadWrite).- Returns:
- the hostCaching value.
-
withHostCaching
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 DiskProperties object itself.
-
managedDiskId
Get the managedDiskId property: When backed by managed disk, this is the ID of the compute disk resource.- Returns:
- the managedDiskId value.
-
withManagedDiskId
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 DiskProperties object itself.
-
provisioningState
Get the provisioningState property: The provisioning status of the resource.- Returns:
- the provisioningState value.
-
uniqueIdentifier
Get the uniqueIdentifier property: The unique immutable identifier of a resource (Guid).- Returns:
- the uniqueIdentifier value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-