Class AttachDiskProperties

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

public final class AttachDiskProperties extends Object
Properties of the disk to attach.
  • Constructor Details

    • AttachDiskProperties

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

    • leasedByLabVmId

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

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

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