Class ImageDisk
java.lang.Object
com.microsoft.azure.management.compute.ImageDisk
- Direct Known Subclasses:
ImageDataDisk
,ImageOSDisk
Describes a image disk.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionblobUri()
Get the Virtual Hard Disk.caching()
Get specifies the caching requirements.Get specifies the customer managed disk encryption set resource id for the managed image disk.Get specifies the size of empty data disks in gigabytes.com.microsoft.azure.SubResource
Get the managedDisk.com.microsoft.azure.SubResource
snapshot()
Get the snapshot.Get specifies the storage account type for the managed disk.withBlobUri
(String blobUri) Set the Virtual Hard Disk.withCaching
(CachingTypes caching) Set specifies the caching requirements.withDiskEncryptionSet
(DiskEncryptionSetParameters diskEncryptionSet) Set specifies the customer managed disk encryption set resource id for the managed image disk.withDiskSizeGB
(Integer diskSizeGB) Set specifies the size of empty data disks in gigabytes.withManagedDisk
(com.microsoft.azure.SubResource managedDisk) Set the managedDisk.withSnapshot
(com.microsoft.azure.SubResource snapshot) Set the snapshot.withStorageAccountType
(StorageAccountTypes storageAccountType) Set specifies the storage account type for the managed disk.
-
Constructor Details
-
ImageDisk
public ImageDisk()
-
-
Method Details
-
snapshot
public com.microsoft.azure.SubResource snapshot()Get the snapshot.- Returns:
- the snapshot value
-
withSnapshot
Set the snapshot.- Parameters:
snapshot
- the snapshot value to set- Returns:
- the ImageDisk object itself.
-
managedDisk
public com.microsoft.azure.SubResource managedDisk()Get the managedDisk.- Returns:
- the managedDisk value
-
withManagedDisk
Set the managedDisk.- Parameters:
managedDisk
- the managedDisk value to set- Returns:
- the ImageDisk object itself.
-
blobUri
Get the Virtual Hard Disk.- Returns:
- the blobUri value
-
withBlobUri
Set the Virtual Hard Disk.- Parameters:
blobUri
- the blobUri value to set- Returns:
- the ImageDisk object itself.
-
caching
Get specifies the caching requirements. <br><br> Possible values are: <br><br> **None** <br><br> **ReadOnly** <br><br> **ReadWrite** <br><br> Default: **None for Standard storage. ReadOnly for Premium storage**. Possible values include: 'None', 'ReadOnly', 'ReadWrite'.- Returns:
- the caching value
-
withCaching
Set specifies the caching requirements. <br><br> Possible values are: <br><br> **None** <br><br> **ReadOnly** <br><br> **ReadWrite** <br><br> Default: **None for Standard storage. ReadOnly for Premium storage**. Possible values include: 'None', 'ReadOnly', 'ReadWrite'.- Parameters:
caching
- the caching value to set- Returns:
- the ImageDisk object itself.
-
diskSizeGB
Get specifies the size of empty data disks in gigabytes. This element can be used to overwrite the name of the disk in a virtual machine image. <br><br> This value cannot be larger than 1023 GB.- Returns:
- the diskSizeGB value
-
withDiskSizeGB
Set specifies the size of empty data disks in gigabytes. This element can be used to overwrite the name of the disk in a virtual machine image. <br><br> This value cannot be larger than 1023 GB.- Parameters:
diskSizeGB
- the diskSizeGB value to set- Returns:
- the ImageDisk object itself.
-
storageAccountType
Get specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk. Possible values include: 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS'.- Returns:
- the storageAccountType value
-
withStorageAccountType
Set specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk. Possible values include: 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS'.- Parameters:
storageAccountType
- the storageAccountType value to set- Returns:
- the ImageDisk object itself.
-
diskEncryptionSet
Get specifies the customer managed disk encryption set resource id for the managed image disk.- Returns:
- the diskEncryptionSet value
-
withDiskEncryptionSet
Set specifies the customer managed disk encryption set resource id for the managed image disk.- Parameters:
diskEncryptionSet
- the diskEncryptionSet value to set- Returns:
- the ImageDisk object itself.
-