Class DetachDiskProperties

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

public final class DetachDiskProperties extends Object
Properties of the disk to detach.
  • Constructor Details

    • DetachDiskProperties

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

    • leasedByLabVmId

      public String leasedByLabVmId()
      Get the leasedByLabVmId property: The resource ID of the Lab VM to which the disk is attached.
      Returns:
      the leasedByLabVmId value.
    • withLeasedByLabVmId

      public DetachDiskProperties withLeasedByLabVmId(String leasedByLabVmId)
      Set the leasedByLabVmId property: The resource ID of the Lab VM to which the disk is attached.
      Parameters:
      leasedByLabVmId - the leasedByLabVmId value to set.
      Returns:
      the DetachDiskProperties object itself.
    • validate

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