Class VirtualDiskUpdate

java.lang.Object
com.azure.resourcemanager.connectedvmware.models.VirtualDiskUpdate

public final class VirtualDiskUpdate extends Object
Defines the virtual disk update.
  • Constructor Details

    • VirtualDiskUpdate

      public VirtualDiskUpdate()
  • Method Details

    • name

      public String name()
      Get the name property: Gets or sets the name of the virtual disk.
      Returns:
      the name value.
    • withName

      public VirtualDiskUpdate withName(String name)
      Set the name property: Gets or sets the name of the virtual disk.
      Parameters:
      name - the name value to set.
      Returns:
      the VirtualDiskUpdate object itself.
    • diskSizeGB

      public Integer diskSizeGB()
      Get the diskSizeGB property: Gets or sets the disk total size.
      Returns:
      the diskSizeGB value.
    • withDiskSizeGB

      public VirtualDiskUpdate withDiskSizeGB(Integer diskSizeGB)
      Set the diskSizeGB property: Gets or sets the disk total size.
      Parameters:
      diskSizeGB - the diskSizeGB value to set.
      Returns:
      the VirtualDiskUpdate object itself.
    • deviceKey

      public Integer deviceKey()
      Get the deviceKey property: Gets or sets the device key value.
      Returns:
      the deviceKey value.
    • withDeviceKey

      public VirtualDiskUpdate withDeviceKey(Integer deviceKey)
      Set the deviceKey property: Gets or sets the device key value.
      Parameters:
      deviceKey - the deviceKey value to set.
      Returns:
      the VirtualDiskUpdate object itself.
    • diskMode

      public DiskMode diskMode()
      Get the diskMode property: Gets or sets the disk mode.
      Returns:
      the diskMode value.
    • withDiskMode

      public VirtualDiskUpdate withDiskMode(DiskMode diskMode)
      Set the diskMode property: Gets or sets the disk mode.
      Parameters:
      diskMode - the diskMode value to set.
      Returns:
      the VirtualDiskUpdate object itself.
    • controllerKey

      public Integer controllerKey()
      Get the controllerKey property: Gets or sets the controller id.
      Returns:
      the controllerKey value.
    • withControllerKey

      public VirtualDiskUpdate withControllerKey(Integer controllerKey)
      Set the controllerKey property: Gets or sets the controller id.
      Parameters:
      controllerKey - the controllerKey value to set.
      Returns:
      the VirtualDiskUpdate object itself.
    • unitNumber

      public Integer unitNumber()
      Get the unitNumber property: Gets or sets the unit number of the disk on the controller.
      Returns:
      the unitNumber value.
    • withUnitNumber

      public VirtualDiskUpdate withUnitNumber(Integer unitNumber)
      Set the unitNumber property: Gets or sets the unit number of the disk on the controller.
      Parameters:
      unitNumber - the unitNumber value to set.
      Returns:
      the VirtualDiskUpdate object itself.
    • deviceName

      public String deviceName()
      Get the deviceName property: Gets or sets the device name.
      Returns:
      the deviceName value.
    • withDeviceName

      public VirtualDiskUpdate withDeviceName(String deviceName)
      Set the deviceName property: Gets or sets the device name.
      Parameters:
      deviceName - the deviceName value to set.
      Returns:
      the VirtualDiskUpdate object itself.
    • diskType

      public DiskType diskType()
      Get the diskType property: Gets or sets the disk backing type.
      Returns:
      the diskType value.
    • withDiskType

      public VirtualDiskUpdate withDiskType(DiskType diskType)
      Set the diskType property: Gets or sets the disk backing type.
      Parameters:
      diskType - the diskType value to set.
      Returns:
      the VirtualDiskUpdate object itself.
    • validate

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