Class DataDisksToAttach

java.lang.Object
com.azure.resourcemanager.compute.models.DataDisksToAttach

public final class DataDisksToAttach extends Object
Describes the data disk to be attached.
  • Constructor Details

    • DataDisksToAttach

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

    • diskId

      public String diskId()
      Get the diskId property: ID of the managed data disk.
      Returns:
      the diskId value.
    • withDiskId

      public DataDisksToAttach withDiskId(String diskId)
      Set the diskId property: ID of the managed data disk.
      Parameters:
      diskId - the diskId value to set.
      Returns:
      the DataDisksToAttach object itself.
    • lun

      public Integer lun()
      Get the lun property: 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. If not specified, lun would be auto assigned.
      Returns:
      the lun value.
    • withLun

      public DataDisksToAttach withLun(Integer lun)
      Set the lun property: 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. If not specified, lun would be auto assigned.
      Parameters:
      lun - the lun value to set.
      Returns:
      the DataDisksToAttach object itself.
    • validate

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