Class DataDisksToDetach

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

public final class DataDisksToDetach extends Object
Describes the data disk to be detached.
  • Constructor Details

    • DataDisksToDetach

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

    • diskId

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

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

      public DiskDetachOptionTypes detachOption()
      Get the detachOption property: Supported options available for Detach of a disk from a VM. Refer to DetachOption object reference for more details.
      Returns:
      the detachOption value.
    • withDetachOption

      public DataDisksToDetach withDetachOption(DiskDetachOptionTypes detachOption)
      Set the detachOption property: Supported options available for Detach of a disk from a VM. Refer to DetachOption object reference for more details.
      Parameters:
      detachOption - the detachOption value to set.
      Returns:
      the DataDisksToDetach object itself.
    • validate

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