Class AttachDiskProperties
java.lang.Object
com.azure.resourcemanager.devtestlabs.models.AttachDiskProperties
Properties of the disk to attach.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the leasedByLabVmId property: The resource ID of the Lab virtual machine to which the disk is attached.void
validate()
Validates the instance.withLeasedByLabVmId
(String leasedByLabVmId) Set the leasedByLabVmId property: The resource ID of the Lab virtual machine to which the disk is attached.
-
Constructor Details
-
AttachDiskProperties
public AttachDiskProperties()Creates an instance of AttachDiskProperties class.
-
-
Method Details
-
leasedByLabVmId
Get the leasedByLabVmId property: The resource ID of the Lab virtual machine to which the disk is attached.- Returns:
- the leasedByLabVmId value.
-
withLeasedByLabVmId
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.
-