
com.vmware.vim.VirtualMachineAffinityInfo Maven / Gradle / Ivy
Show all versions of vi-api Show documentation
package com.vmware.vim;
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 VirtualMachineAffinityInfo complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="VirtualMachineAffinityInfo">
* <complexContent>
* <extension base="{urn:vim2}DynamicData">
* <sequence>
* <element name="affinitySet" type="{http://www.w3.org/2001/XMLSchema}int" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "VirtualMachineAffinityInfo", propOrder = {
"affinitySet"
})
public class VirtualMachineAffinityInfo
extends DynamicData
{
@XmlElement(type = Integer.class)
protected List affinitySet;
/**
* Gets the value of the affinitySet 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 affinitySet property.
*
*
* For example, to add a new item, do as follows:
*
* getAffinitySet().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Integer }
*
*
*/
public List getAffinitySet() {
if (affinitySet == null) {
affinitySet = new ArrayList();
}
return this.affinitySet;
}
/**
* Sets the value of the affinitySet property.
*
* @param affinitySet
* allowed object is
* {@link Integer }
*
*/
public void setAffinitySet(List affinitySet) {
this.affinitySet = affinitySet;
}
}