Class VmAffinityRuleCreateRequest

java.lang.Object
com.iland.core.web.rest.request.vm.VmAffinityRuleCreateRequest
All Implemented Interfaces:
Serializable

public class VmAffinityRuleCreateRequest extends Object implements Serializable
Vm Affinity Rule Create Request.
Author:
Nick Kasprzak
See Also:
  • Constructor Details

  • Method Details

    • getName

      public String getName()
      Get the vm affinity rule's name.
      Returns:
      String name
    • isEnabled

      public boolean isEnabled()
      Get whether the rule is enabled or not.
      Returns:
      is enabled
    • getType

      public AffinityRuleType getType()
      Rule type for the affinity rule. Either affinity or anti-affinity.
      Returns:
      AffinityRuleType rule type
    • getVmUuids

      public Set<String> getVmUuids()
      Get the set of vm uuids for the affinity rule.
      Returns:
      Set of String vm uuids
    • isMandatory

      public Boolean isMandatory()
      Get whether the affinity rule is mandatory.

      You can make an affinity rule mandatory to provide a hint to the system that the deployment should fail unless the specified placement objective can be achieved. When a virtual machine is the subject of a mandatory affinity rule, placement requirements dictated by the rule override any placement changes that might be initiated by vSphere services such as High Availability and Storage DRS.

      Returns:
      Boolean is mandatory