com.vmware.vim25.ClusterAffinityRuleSpec Maven / Gradle / Ivy
package com.vmware.vim25;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* 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>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ClusterAffinityRuleSpec", propOrder = {
"vm"
})
public class ClusterAffinityRuleSpec
extends ClusterRuleInfo
{
@XmlElement(required = true)
protected List vm;
/**
* Gets the value of the vm property.
*
*
* 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
* {@link ManagedObjectReference }
*
*
*/
public List getVm() {
if (vm == null) {
vm = new ArrayList();
}
return this.vm;
}
}