Class ImageDisk

java.lang.Object
com.microsoft.azure.management.compute.ImageDisk
Direct Known Subclasses:
ImageDataDisk, ImageOSDisk

public class ImageDisk extends Object
Describes a image disk.
  • Constructor Details

    • ImageDisk

      public ImageDisk()
  • Method Details

    • snapshot

      public com.microsoft.azure.SubResource snapshot()
      Get the snapshot.
      Returns:
      the snapshot value
    • withSnapshot

      public ImageDisk withSnapshot(com.microsoft.azure.SubResource snapshot)
      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

      public ImageDisk withManagedDisk(com.microsoft.azure.SubResource managedDisk)
      Set the managedDisk.
      Parameters:
      managedDisk - the managedDisk value to set
      Returns:
      the ImageDisk object itself.
    • blobUri

      public String blobUri()
      Get the Virtual Hard Disk.
      Returns:
      the blobUri value
    • withBlobUri

      public ImageDisk withBlobUri(String blobUri)
      Set the Virtual Hard Disk.
      Parameters:
      blobUri - the blobUri value to set
      Returns:
      the ImageDisk object itself.
    • caching

      public CachingTypes 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

      public ImageDisk withCaching(CachingTypes caching)
      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

      public Integer 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

      public ImageDisk withDiskSizeGB(Integer diskSizeGB)
      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

      public StorageAccountTypes 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

      public ImageDisk withStorageAccountType(StorageAccountTypes storageAccountType)
      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

      public DiskEncryptionSetParameters diskEncryptionSet()
      Get specifies the customer managed disk encryption set resource id for the managed image disk.
      Returns:
      the diskEncryptionSet value
    • withDiskEncryptionSet

      public ImageDisk withDiskEncryptionSet(DiskEncryptionSetParameters diskEncryptionSet)
      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.