Class VirtualMachineRestrictMovement
java.lang.Object
com.azure.resourcemanager.avs.models.VirtualMachineRestrictMovement
Set VM DRS-driven movement to restricted (enabled) or not (disabled).
-
Constructor Summary
ConstructorDescriptionCreates an instance of VirtualMachineRestrictMovement class. -
Method Summary
Modifier and TypeMethodDescriptionGet the restrictMovement property: Whether VM DRS-driven movement is restricted (enabled) or not (disabled).void
validate()
Validates the instance.withRestrictMovement
(VirtualMachineRestrictMovementState restrictMovement) Set the restrictMovement property: Whether VM DRS-driven movement is restricted (enabled) or not (disabled).
-
Constructor Details
-
VirtualMachineRestrictMovement
public VirtualMachineRestrictMovement()Creates an instance of VirtualMachineRestrictMovement class.
-
-
Method Details
-
restrictMovement
Get the restrictMovement property: Whether VM DRS-driven movement is restricted (enabled) or not (disabled).- Returns:
- the restrictMovement value.
-
withRestrictMovement
public VirtualMachineRestrictMovement withRestrictMovement(VirtualMachineRestrictMovementState restrictMovement) Set the restrictMovement property: Whether VM DRS-driven movement is restricted (enabled) or not (disabled).- Parameters:
restrictMovement
- the restrictMovement value to set.- Returns:
- the VirtualMachineRestrictMovement object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-