Class ImageDisk
java.lang.Object
com.microsoft.azure.management.compute.ImageDisk
- Direct Known Subclasses:
- ImageDataDisk,- ImageOSDisk
Describes a image disk.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.SubResourceGet the managedDisk.com.microsoft.azure.SubResourcesnapshot()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- 
ImageDiskpublic ImageDisk()
 
- 
- 
Method Details- 
snapshotpublic com.microsoft.azure.SubResource snapshot()Get the snapshot.- Returns:
- the snapshot value
 
- 
withSnapshotSet the snapshot.- Parameters:
- snapshot- the snapshot value to set
- Returns:
- the ImageDisk object itself.
 
- 
managedDiskpublic com.microsoft.azure.SubResource managedDisk()Get the managedDisk.- Returns:
- the managedDisk value
 
- 
withManagedDiskSet the managedDisk.- Parameters:
- managedDisk- the managedDisk value to set
- Returns:
- the ImageDisk object itself.
 
- 
blobUriGet the Virtual Hard Disk.- Returns:
- the blobUri value
 
- 
withBlobUriSet the Virtual Hard Disk.- Parameters:
- blobUri- the blobUri value to set
- Returns:
- the ImageDisk object itself.
 
- 
cachingGet 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
 
- 
withCachingSet 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.
 
- 
diskSizeGBGet 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
 
- 
withDiskSizeGBSet 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.
 
- 
storageAccountTypeGet 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
 
- 
withStorageAccountTypeSet 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.
 
- 
diskEncryptionSetGet specifies the customer managed disk encryption set resource id for the managed image disk.- Returns:
- the diskEncryptionSet value
 
- 
withDiskEncryptionSetSet 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.
 
 
-