Class VirtualMachineRestrictMovement


  • public final class VirtualMachineRestrictMovement
    extends Object
    Set VM DRS-driven movement to restricted (enabled) or not (disabled).
    • Constructor Detail

      • VirtualMachineRestrictMovement

        public VirtualMachineRestrictMovement()
    • 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.