Class DataDisksToDetach
java.lang.Object
com.azure.resourcemanager.compute.models.DataDisksToDetach
Describes the data disk to be detached.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the detachOption property: Supported options available for Detach of a disk from a VM.diskId()Get the diskId property: ID of the managed data disk.voidvalidate()Validates the instance.withDetachOption(DiskDetachOptionTypes detachOption) Set the detachOption property: Supported options available for Detach of a disk from a VM.withDiskId(String diskId) Set the diskId property: ID of the managed data disk.
-
Constructor Details
-
DataDisksToDetach
public DataDisksToDetach()Creates an instance of DataDisksToDetach class.
-
-
Method Details
-
diskId
Get the diskId property: ID of the managed data disk.- Returns:
- the diskId value.
-
withDiskId
Set the diskId property: ID of the managed data disk.- Parameters:
diskId- the diskId value to set.- Returns:
- the DataDisksToDetach object itself.
-
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
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.
-