Class ComputeInstanceDataDisk


  • public final class ComputeInstanceDataDisk
    extends Object
    Defines an Aml Instance DataDisk.
    • Constructor Detail

      • ComputeInstanceDataDisk

        public ComputeInstanceDataDisk()
    • Method Detail

      • caching

        public Caching caching()
        Get the caching property: Caching type of Data Disk.
        Returns:
        the caching value.
      • withCaching

        public ComputeInstanceDataDisk withCaching​(Caching caching)
        Set the caching property: Caching type of Data Disk.
        Parameters:
        caching - the caching value to set.
        Returns:
        the ComputeInstanceDataDisk object itself.
      • diskSizeGB

        public Integer diskSizeGB()
        Get the diskSizeGB property: The initial disk size in gigabytes.
        Returns:
        the diskSizeGB value.
      • withDiskSizeGB

        public ComputeInstanceDataDisk withDiskSizeGB​(Integer diskSizeGB)
        Set the diskSizeGB property: The initial disk size in gigabytes.
        Parameters:
        diskSizeGB - the diskSizeGB value to set.
        Returns:
        the ComputeInstanceDataDisk object itself.
      • lun

        public Integer lun()
        Get the lun property: The logical unit number. The lun is used to uniquely identify each data disk. If attaching multiple disks, each should have a distinct lun.
        Returns:
        the lun value.
      • withLun

        public ComputeInstanceDataDisk withLun​(Integer lun)
        Set the lun property: The logical unit number. The lun is used to uniquely identify each data disk. If attaching multiple disks, each should have a distinct lun.
        Parameters:
        lun - the lun value to set.
        Returns:
        the ComputeInstanceDataDisk object itself.
      • storageAccountType

        public StorageAccountType storageAccountType()
        Get the storageAccountType property: type of this storage account.
        Returns:
        the storageAccountType value.
      • withStorageAccountType

        public ComputeInstanceDataDisk withStorageAccountType​(StorageAccountType storageAccountType)
        Set the storageAccountType property: type of this storage account.
        Parameters:
        storageAccountType - the storageAccountType value to set.
        Returns:
        the ComputeInstanceDataDisk object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.