Class VmAffinityRuleResponse
java.lang.Object
com.iland.core.web.rest.response.vdc.VmAffinityRuleResponse
- All Implemented Interfaces:
Serializable
Vdc Vm Affinity Rule Response.
- Author:
- Nick Kasprzak
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionVmAffinityRuleResponse(Set<String> vmUuids, boolean enabled, String name, String uuid, AffinityRuleType type, boolean isMandatory) -
Method Summary
-
Constructor Details
-
VmAffinityRuleResponse
public VmAffinityRuleResponse(Set<String> vmUuids, boolean enabled, String name, String uuid, AffinityRuleType type, boolean isMandatory)
-
-
Method Details
-
getVmUuids
Get the list ofStringvm uuids for the affinity rule. -
isEnabled
public boolean isEnabled()Whether the rule is enabled.- Returns:
- enabled
-
getName
Get the rule name.- Returns:
Stringname
-
getUUID
Get the rule uuid.- Returns:
Stringrule uuid
-
getType
Get the rule type.Can be one of 'affinity' or 'anti-affinity'
- Returns:
AffinityRuleTyperule 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
-
hashCode
public int hashCode()
-