com.vmware.vim25.PlacementAffinityRule 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 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>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "PlacementAffinityRule", propOrder = {
"ruleType",
"ruleScope",
"vms",
"keys"
})
public class PlacementAffinityRule
extends DynamicData
{
@XmlElement(required = true)
protected String ruleType;
@XmlElement(required = true)
protected String ruleScope;
protected List vms;
protected List keys;
/**
* Gets the value of the ruleType property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRuleType() {
return ruleType;
}
/**
* Sets the value of the ruleType property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRuleType(String value) {
this.ruleType = value;
}
/**
* Gets the value of the ruleScope property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRuleScope() {
return ruleScope;
}
/**
* Sets the value of the ruleScope property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRuleScope(String value) {
this.ruleScope = value;
}
/**
* Gets the value of the vms 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 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
* {@link ManagedObjectReference }
*
*
*/
public List getVms() {
if (vms == null) {
vms = new ArrayList();
}
return this.vms;
}
/**
* Gets the value of the keys 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 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
* {@link String }
*
*
*/
public List getKeys() {
if (keys == null) {
keys = new ArrayList();
}
return this.keys;
}
}