com.vmware.vim25.DvsTrafficRuleset 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.XmlType;
/**
* Java class for DvsTrafficRuleset complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="DvsTrafficRuleset">
* <complexContent>
* <extension base="{urn:vim25}DynamicData">
* <sequence>
* <element name="key" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="enabled" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
* <element name="precedence" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
* <element name="rules" type="{urn:vim25}DvsTrafficRule" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "DvsTrafficRuleset", propOrder = {
"key",
"enabled",
"precedence",
"rules"
})
public class DvsTrafficRuleset
extends DynamicData
{
protected String key;
protected Boolean enabled;
protected Integer precedence;
protected List rules;
/**
* Gets the value of the key property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getKey() {
return key;
}
/**
* Sets the value of the key property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setKey(String value) {
this.key = value;
}
/**
* Gets the value of the enabled property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isEnabled() {
return enabled;
}
/**
* Sets the value of the enabled property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setEnabled(Boolean value) {
this.enabled = value;
}
/**
* Gets the value of the precedence property.
*
* @return
* possible object is
* {@link Integer }
*
*/
public Integer getPrecedence() {
return precedence;
}
/**
* Sets the value of the precedence property.
*
* @param value
* allowed object is
* {@link Integer }
*
*/
public void setPrecedence(Integer value) {
this.precedence = value;
}
/**
* Gets the value of the rules 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 rules property.
*
*
* For example, to add a new item, do as follows:
*
* getRules().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link DvsTrafficRule }
*
*
*/
public List getRules() {
if (rules == null) {
rules = new ArrayList();
}
return this.rules;
}
}