Class DetachDataDiskProperties
java.lang.Object
com.azure.resourcemanager.devtestlabs.models.DetachDataDiskProperties
Request body for detaching data disk from a virtual machine.
-
Constructor Summary
ConstructorDescriptionCreates an instance of DetachDataDiskProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the existingLabDiskId property: Specifies the disk resource ID to detach from virtual machine.void
validate()
Validates the instance.withExistingLabDiskId
(String existingLabDiskId) Set the existingLabDiskId property: Specifies the disk resource ID to detach from virtual machine.
-
Constructor Details
-
DetachDataDiskProperties
public DetachDataDiskProperties()Creates an instance of DetachDataDiskProperties class.
-
-
Method Details
-
existingLabDiskId
Get the existingLabDiskId property: Specifies the disk resource ID to detach from virtual machine.- Returns:
- the existingLabDiskId value.
-
withExistingLabDiskId
Set the existingLabDiskId property: Specifies the disk resource ID to detach from virtual machine.- Parameters:
existingLabDiskId
- the existingLabDiskId value to set.- Returns:
- the DetachDataDiskProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-