Class VirtualMachineRestrictMovement
- java.lang.Object
-
- com.azure.resourcemanager.avs.models.VirtualMachineRestrictMovement
-
public final class VirtualMachineRestrictMovement extends Object
Set VM DRS-driven movement to restricted (enabled) or not (disabled).
-
-
Constructor Summary
Constructors Constructor Description VirtualMachineRestrictMovement()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VirtualMachineRestrictMovementState
restrictMovement()
Get the restrictMovement property: Whether VM DRS-driven movement is restricted (enabled) or not (disabled).void
validate()
Validates the instance.VirtualMachineRestrictMovement
withRestrictMovement(VirtualMachineRestrictMovementState restrictMovement)
Set the restrictMovement property: Whether VM DRS-driven movement is restricted (enabled) or not (disabled).
-
-
-
Method Detail
-
restrictMovement
public VirtualMachineRestrictMovementState 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.
-
-