ImageDisk (Azure SDK for Java Reference Documentation)

ImageDisk (Azure SDK for Java Reference Documentation)
    • Constructor Detail

      • ImageDisk

        public ImageDisk()
    • Method Detail

      • withSnapshot

        public ImageDisk withSnapshot(com.azure.core.management.SubResource snapshot)

        Set the snapshot property: The snapshot.

        Parameters: snapshot - the snapshot value to set. Returns: the ImageDisk object itself.
      • withManagedDisk

        public ImageDisk withManagedDisk(com.azure.core.management.SubResource managedDisk)

        Set the managedDisk property: The managedDisk.

        Parameters: managedDisk - the managedDisk value to set. Returns: the ImageDisk object itself.
      • blobUri

        public String blobUri()

        Get the blobUri property: The Virtual Hard Disk.

        Returns: the blobUri value.
      • withBlobUri

        public ImageDisk withBlobUri(String blobUri)

        Set the blobUri property: The Virtual Hard Disk.

        Parameters: blobUri - the blobUri value to set. Returns: the ImageDisk object itself.
      • caching

        public CachingTypes caching()

        Get 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**.

        Returns: the caching value.
      • withCaching

        public ImageDisk 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**.

        Parameters: caching - the caching value to set. Returns: the ImageDisk object itself.
      • diskSizeGB

        public Integer diskSizeGB()

        Get 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.

        Returns: the diskSizeGB value.
      • withDiskSizeGB

        public ImageDisk 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.

        Parameters: diskSizeGB - the diskSizeGB value to set. Returns: the ImageDisk object itself.
      • storageAccountType

        public StorageAccountTypes storageAccountType()

        Get 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.

        Returns: the storageAccountType value.
      • withStorageAccountType

        public ImageDisk 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.

        Parameters: storageAccountType - the storageAccountType value to set. Returns: the ImageDisk object itself.
      • diskEncryptionSet

        public DiskEncryptionSetParameters diskEncryptionSet()

        Get the diskEncryptionSet property: 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 the diskEncryptionSet property: 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.
      • validate

        public void validate()

        Validates the instance.

        Throws: IllegalArgumentException - thrown if the instance is not valid.

Copyright © 2021 Microsoft Corporation. All rights reserved.

ncG1vNJzZmiZqqq%2Fpr%2FDpJuom6Njr627wWeaqKqVY8SqusOorqxmnprBcHDWnploopGrrnCt2a6pnmWimsCwwdGcnKaZnpa0pr6MnKamqKWpsnB%2BjW9laWeTpLpwrdmuqZ5noprAsMHRnJymmZ6WtKa%2BjpympqilqbJwuc6dnKWrX366orPEfaCso16dwa64