Class VmAffinityRuleResponse

java.lang.Object
com.iland.core.web.rest.response.vdc.VmAffinityRuleResponse
All Implemented Interfaces:
Serializable

public class VmAffinityRuleResponse extends Object implements Serializable
Vdc Vm Affinity Rule Response.
Author:
Nick Kasprzak
See Also:
  • Constructor Details

  • Method Details

    • getVmUuids

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

      public boolean isEnabled()
      Whether the rule is enabled.
      Returns:
      enabled
    • getName

      public String getName()
      Get the rule name.
      Returns:
      String name
    • getUUID

      public String getUUID()
      Get the rule uuid.
      Returns:
      String rule uuid
    • getType

      public AffinityRuleType getType()
      Get the rule type.

      Can be one of 'affinity' or 'anti-affinity'

      Returns:
      AffinityRuleType rule type
    • isMandatory

      public boolean isMandatory()
      Is the rule 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:
      is mandatory
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object