public class VmAffinityRuleResponse extends Object implements Serializable
| Constructor and Description | 
|---|
| VmAffinityRuleResponse(Set<String> vmUuids,
                      boolean enabled,
                      String name,
                      String uuid,
                      AffinityRuleType type,
                      boolean isMandatory) | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(Object o) | 
| String | getName()Get the rule name. | 
| AffinityRuleType | getType()Get the rule type. | 
| String | getUUID()Get the rule uuid. | 
| Set<String> | getVmUuids()Get the list of  Stringvm uuids for the affinity rule. | 
| int | hashCode() | 
| boolean | isEnabled()Whether the rule is enabled. | 
| boolean | isMandatory()Is the rule mandatory. | 
public VmAffinityRuleResponse(Set<String> vmUuids, boolean enabled, String name, String uuid, AffinityRuleType type, boolean isMandatory)
public boolean isEnabled()
public AffinityRuleType getType()
Can be one of 'affinity' or 'anti-affinity'
AffinityRuleType rule typepublic boolean isMandatory()
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.
Copyright © 2020 iland Internet Solutions, Corp. All rights reserved.