![JAR search and dependency download from the Maven repository](/logo.png)
com.vmware.vim25.HostFirewallRuleset 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 HostFirewallRuleset complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="HostFirewallRuleset">
* <complexContent>
* <extension base="{urn:vim25}DynamicData">
* <sequence>
* <element name="key" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="label" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="required" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
* <element name="rule" type="{urn:vim25}HostFirewallRule" maxOccurs="unbounded"/>
* <element name="service" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="enabled" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
* <element name="allowedHosts" type="{urn:vim25}HostFirewallRulesetIpList" minOccurs="0"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "HostFirewallRuleset", propOrder = {
"key",
"label",
"required",
"rule",
"service",
"enabled",
"allowedHosts"
})
public class HostFirewallRuleset
extends DynamicData
{
@XmlElement(required = true)
protected String key;
@XmlElement(required = true)
protected String label;
protected boolean required;
@XmlElement(required = true)
protected List rule;
protected String service;
protected boolean enabled;
protected HostFirewallRulesetIpList allowedHosts;
/**
* 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 label property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getLabel() {
return label;
}
/**
* Sets the value of the label property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setLabel(String value) {
this.label = value;
}
/**
* Gets the value of the required property.
*
*/
public boolean isRequired() {
return required;
}
/**
* Sets the value of the required property.
*
*/
public void setRequired(boolean value) {
this.required = value;
}
/**
* 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 HostFirewallRule }
*
*
*/
public List getRule() {
if (rule == null) {
rule = new ArrayList();
}
return this.rule;
}
/**
* Gets the value of the service property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getService() {
return service;
}
/**
* Sets the value of the service property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setService(String value) {
this.service = value;
}
/**
* Gets the value of the enabled property.
*
*/
public boolean isEnabled() {
return enabled;
}
/**
* Sets the value of the enabled property.
*
*/
public void setEnabled(boolean value) {
this.enabled = value;
}
/**
* Gets the value of the allowedHosts property.
*
* @return
* possible object is
* {@link HostFirewallRulesetIpList }
*
*/
public HostFirewallRulesetIpList getAllowedHosts() {
return allowedHosts;
}
/**
* Sets the value of the allowedHosts property.
*
* @param value
* allowed object is
* {@link HostFirewallRulesetIpList }
*
*/
public void setAllowedHosts(HostFirewallRulesetIpList value) {
this.allowedHosts = value;
}
}