Class AttachNewDataDiskOptions

java.lang.Object
com.azure.resourcemanager.devtestlabs.models.AttachNewDataDiskOptions

public final class AttachNewDataDiskOptions extends Object
Properties to attach new disk to the Virtual Machine.
  • Constructor Details

    • AttachNewDataDiskOptions

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

    • diskSizeGiB

      public Integer diskSizeGiB()
      Get the diskSizeGiB property: Size of the disk to be attached in Gibibytes.
      Returns:
      the diskSizeGiB value.
    • withDiskSizeGiB

      public AttachNewDataDiskOptions withDiskSizeGiB(Integer diskSizeGiB)
      Set the diskSizeGiB property: Size of the disk to be attached in Gibibytes.
      Parameters:
      diskSizeGiB - the diskSizeGiB value to set.
      Returns:
      the AttachNewDataDiskOptions object itself.
    • diskName

      public String diskName()
      Get the diskName property: The name of the disk to be attached.
      Returns:
      the diskName value.
    • withDiskName

      public AttachNewDataDiskOptions withDiskName(String diskName)
      Set the diskName property: The name of the disk to be attached.
      Parameters:
      diskName - the diskName value to set.
      Returns:
      the AttachNewDataDiskOptions object itself.
    • diskType

      public StorageType diskType()
      Get the diskType property: The storage type for the disk (i.e. Standard, Premium).
      Returns:
      the diskType value.
    • withDiskType

      public AttachNewDataDiskOptions withDiskType(StorageType diskType)
      Set the diskType property: The storage type for the disk (i.e. Standard, Premium).
      Parameters:
      diskType - the diskType value to set.
      Returns:
      the AttachNewDataDiskOptions object itself.
    • validate

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