java.lang.Object
com.azure.resourcemanager.hanaonazure.models.Disk

public final class Disk extends Object
Specifies the disk information for the HANA instance.
  • Constructor Details

    • Disk

      public Disk()
      Creates an instance of Disk class.
  • Method Details

    • name

      public String name()
      Get the name property: The disk name.
      Returns:
      the name value.
    • withName

      public Disk withName(String name)
      Set the name property: The disk name.
      Parameters:
      name - the name value to set.
      Returns:
      the Disk object itself.
    • diskSizeGB

      public Integer diskSizeGB()
      Get the diskSizeGB property: Specifies the size of an empty data disk in gigabytes.
      Returns:
      the diskSizeGB value.
    • withDiskSizeGB

      public Disk withDiskSizeGB(Integer diskSizeGB)
      Set the diskSizeGB property: Specifies the size of an empty data disk in gigabytes.
      Parameters:
      diskSizeGB - the diskSizeGB value to set.
      Returns:
      the Disk object itself.
    • lun

      public Integer lun()
      Get the lun property: Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM.
      Returns:
      the lun value.
    • validate

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