com.vmware.vim25.HostFirewallConfig 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 HostFirewallConfig complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="HostFirewallConfig">
* <complexContent>
* <extension base="{urn:vim25}DynamicData">
* <sequence>
* <element name="rule" type="{urn:vim25}HostFirewallConfigRuleSetConfig" maxOccurs="unbounded" minOccurs="0"/>
* <element name="defaultBlockingPolicy" type="{urn:vim25}HostFirewallDefaultPolicy"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "HostFirewallConfig", propOrder = {
"rule",
"defaultBlockingPolicy"
})
public class HostFirewallConfig
extends DynamicData
{
protected List rule;
@XmlElement(required = true)
protected HostFirewallDefaultPolicy defaultBlockingPolicy;
/**
* Gets the value of the rule 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 rule property.
*
*
* For example, to add a new item, do as follows:
*
* getRule().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link HostFirewallConfigRuleSetConfig }
*
*
*/
public List getRule() {
if (rule == null) {
rule = new ArrayList();
}
return this.rule;
}
/**
* Gets the value of the defaultBlockingPolicy property.
*
* @return
* possible object is
* {@link HostFirewallDefaultPolicy }
*
*/
public HostFirewallDefaultPolicy getDefaultBlockingPolicy() {
return defaultBlockingPolicy;
}
/**
* Sets the value of the defaultBlockingPolicy property.
*
* @param value
* allowed object is
* {@link HostFirewallDefaultPolicy }
*
*/
public void setDefaultBlockingPolicy(HostFirewallDefaultPolicy value) {
this.defaultBlockingPolicy = value;
}
}