public class PlacementAffinityRule extends DynamicData
Java class for PlacementAffinityRule complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="PlacementAffinityRule">
<complexContent>
<extension base="{urn:vim25}DynamicData">
<sequence>
<element name="ruleType" type="{http://www.w3.org/2001/XMLSchema}string"/>
<element name="ruleScope" type="{http://www.w3.org/2001/XMLSchema}string"/>
<element name="vms" type="{urn:vim25}ManagedObjectReference" maxOccurs="unbounded" minOccurs="0"/>
<element name="keys" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
</sequence>
</extension>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected List<String> |
keys |
protected String |
ruleScope |
protected String |
ruleType |
protected List<ManagedObjectReference> |
vms |
| Constructor and Description |
|---|
PlacementAffinityRule() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getKeys()
Gets the value of the keys property.
|
String |
getRuleScope()
Gets the value of the ruleScope property.
|
String |
getRuleType()
Gets the value of the ruleType property.
|
List<ManagedObjectReference> |
getVms()
Gets the value of the vms property.
|
void |
setRuleScope(String value)
Sets the value of the ruleScope property.
|
void |
setRuleType(String value)
Sets the value of the ruleType property.
|
protected String ruleType
protected String ruleScope
protected List<ManagedObjectReference> vms
public String getRuleType()
Stringpublic void setRuleType(String value)
value - allowed object is
Stringpublic String getRuleScope()
Stringpublic void setRuleScope(String value)
value - allowed object is
Stringpublic List<ManagedObjectReference> getVms()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the vms property.
For example, to add a new item, do as follows:
getVms().add(newItem);
Objects of the following type(s) are allowed in the list
ManagedObjectReference
public List<String> getKeys()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the keys property.
For example, to add a new item, do as follows:
getKeys().add(newItem);
Objects of the following type(s) are allowed in the list
String
Copyright © 2018. All rights reserved.