Class ImageOSDisk


  • public final class ImageOSDisk
    extends ImageDisk
    Describes an Operating System disk.
    • Constructor Detail

      • ImageOSDisk

        public ImageOSDisk()
    • Method Detail

      • osType

        public OperatingSystemTypes osType()
        Get the osType property: This property allows you to specify the type of the OS that is included in the disk if creating a VM from a custom image. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**.
        Returns:
        the osType value.
      • withOsType

        public ImageOSDisk withOsType​(OperatingSystemTypes osType)
        Set the osType property: This property allows you to specify the type of the OS that is included in the disk if creating a VM from a custom image. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**.
        Parameters:
        osType - the osType value to set.
        Returns:
        the ImageOSDisk object itself.
      • withOsState

        public ImageOSDisk withOsState​(OperatingSystemStateTypes osState)
        Set the osState property: The OS State.
        Parameters:
        osState - the osState value to set.
        Returns:
        the ImageOSDisk object itself.
      • withSnapshot

        public ImageOSDisk withSnapshot​(com.azure.core.management.SubResource snapshot)
        Set the snapshot property: The snapshot.
        Overrides:
        withSnapshot in class ImageDisk
        Parameters:
        snapshot - the snapshot value to set.
        Returns:
        the ImageDisk object itself.
      • withManagedDisk

        public ImageOSDisk withManagedDisk​(com.azure.core.management.SubResource managedDisk)
        Set the managedDisk property: The managedDisk.
        Overrides:
        withManagedDisk in class ImageDisk
        Parameters:
        managedDisk - the managedDisk value to set.
        Returns:
        the ImageDisk object itself.
      • withBlobUri

        public ImageOSDisk withBlobUri​(String blobUri)
        Set the blobUri property: The Virtual Hard Disk.
        Overrides:
        withBlobUri in class ImageDisk
        Parameters:
        blobUri - the blobUri value to set.
        Returns:
        the ImageDisk object itself.
      • withCaching

        public ImageOSDisk withCaching​(CachingTypes caching)
        Set the caching property: 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**.
        Overrides:
        withCaching in class ImageDisk
        Parameters:
        caching - the caching value to set.
        Returns:
        the ImageDisk object itself.
      • withDiskSizeGB

        public ImageOSDisk withDiskSizeGB​(Integer diskSizeGB)
        Set the diskSizeGB property: 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.
        Overrides:
        withDiskSizeGB in class ImageDisk
        Parameters:
        diskSizeGB - the diskSizeGB value to set.
        Returns:
        the ImageDisk object itself.
      • withStorageAccountType

        public ImageOSDisk withStorageAccountType​(StorageAccountTypes storageAccountType)
        Set the storageAccountType property: 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.
        Overrides:
        withStorageAccountType in class ImageDisk
        Parameters:
        storageAccountType - the storageAccountType value to set.
        Returns:
        the ImageDisk object itself.
      • withDiskEncryptionSet

        public ImageOSDisk withDiskEncryptionSet​(DiskEncryptionSetParameters diskEncryptionSet)
        Set the diskEncryptionSet property: Specifies the customer managed disk encryption set resource id for the managed image disk.
        Overrides:
        withDiskEncryptionSet in class ImageDisk
        Parameters:
        diskEncryptionSet - the diskEncryptionSet value to set.
        Returns:
        the ImageDisk object itself.