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

public final class VirtualDisk extends Object
Virtual disk model.
  • Constructor Details

    • VirtualDisk

      public VirtualDisk()
  • 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 VirtualDisk 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 VirtualDisk object itself.
    • label

      public String label()
      Get the label property: Gets or sets the label of the virtual disk in vCenter.
      Returns:
      the label value.
    • diskObjectId

      public String diskObjectId()
      Get the diskObjectId property: Gets or sets the disk object id.
      Returns:
      the diskObjectId value.
    • diskSizeGB

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

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

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

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

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

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

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

      public VirtualDisk withControllerKey(Integer controllerKey)
      Set the controllerKey property: Gets or sets the controller id.
      Parameters:
      controllerKey - the controllerKey value to set.
      Returns:
      the VirtualDisk 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 VirtualDisk 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 VirtualDisk object itself.
    • deviceName

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

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

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

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

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