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 Details

    • VirtualMachineRestrictMovement

      public VirtualMachineRestrictMovement()
      Creates an instance of VirtualMachineRestrictMovement class.
  • Method Details

    • 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.