public class VmAffinityRuleCreateRequest extends Object implements Serializable
Constructor and Description |
---|
VmAffinityRuleCreateRequest(String name,
boolean isEnabled,
AffinityRuleType type,
Set<String> vmUuids,
Boolean isMandatory) |
Modifier and Type | Method and Description |
---|---|
String |
getName()
Get the vm affinity rule's name.
|
AffinityRuleType |
getType()
Rule type for the affinity rule.
|
Set<String> |
getVmUuids()
Get the set of vm uuids for the affinity rule.
|
boolean |
isEnabled()
Get whether the rule is enabled or not.
|
Boolean |
isMandatory()
Get whether the affinity rule is mandatory.
|
public VmAffinityRuleCreateRequest(String name, boolean isEnabled, AffinityRuleType type, Set<String> vmUuids, Boolean isMandatory)
public boolean isEnabled()
public AffinityRuleType getType()
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.
Boolean
is mandatoryCopyright © 2023 iland Internet Solutions, Corp. All rights reserved.