public class ClusterAffinityRuleSpec extends ClusterRuleInfo
Java class for ClusterAffinityRuleSpec complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="ClusterAffinityRuleSpec">
<complexContent>
<extension base="{urn:vim25}ClusterRuleInfo">
<sequence>
<element name="vm" type="{urn:vim25}ManagedObjectReference" maxOccurs="unbounded"/>
</sequence>
</extension>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected List<ManagedObjectReference> |
vm |
enabled, inCompliance, key, mandatory, name, ruleUuid, status, userCreated| Constructor and Description |
|---|
ClusterAffinityRuleSpec() |
| Modifier and Type | Method and Description |
|---|---|
List<ManagedObjectReference> |
getVm()
Gets the value of the vm property.
|
getKey, getName, getRuleUuid, getStatus, isEnabled, isInCompliance, isMandatory, isUserCreated, setEnabled, setInCompliance, setKey, setMandatory, setName, setRuleUuid, setStatus, setUserCreatedprotected List<ManagedObjectReference> vm
public List<ManagedObjectReference> getVm()
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 vm property.
For example, to add a new item, do as follows:
getVm().add(newItem);
Objects of the following type(s) are allowed in the list
ManagedObjectReference
Copyright © 2018. All rights reserved.