public class HostFirewallRuleset extends DynamicData
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>
| Modifier and Type | Field and Description |
|---|---|
protected HostFirewallRulesetIpList |
allowedHosts |
protected boolean |
enabled |
protected String |
key |
protected String |
label |
protected boolean |
required |
protected List<HostFirewallRule> |
rule |
protected String |
service |
| Constructor and Description |
|---|
HostFirewallRuleset() |
| Modifier and Type | Method and Description |
|---|---|
HostFirewallRulesetIpList |
getAllowedHosts()
Gets the value of the allowedHosts property.
|
String |
getKey()
Gets the value of the key property.
|
String |
getLabel()
Gets the value of the label property.
|
List<HostFirewallRule> |
getRule()
Gets the value of the rule property.
|
String |
getService()
Gets the value of the service property.
|
boolean |
isEnabled()
Gets the value of the enabled property.
|
boolean |
isRequired()
Gets the value of the required property.
|
void |
setAllowedHosts(HostFirewallRulesetIpList value)
Sets the value of the allowedHosts property.
|
void |
setEnabled(boolean value)
Sets the value of the enabled property.
|
void |
setKey(String value)
Sets the value of the key property.
|
void |
setLabel(String value)
Sets the value of the label property.
|
void |
setRequired(boolean value)
Sets the value of the required property.
|
void |
setService(String value)
Sets the value of the service property.
|
protected String key
protected String label
protected boolean required
protected List<HostFirewallRule> rule
protected String service
protected boolean enabled
protected HostFirewallRulesetIpList allowedHosts
public String getKey()
Stringpublic void setKey(String value)
value - allowed object is
Stringpublic String getLabel()
Stringpublic void setLabel(String value)
value - allowed object is
Stringpublic boolean isRequired()
public void setRequired(boolean value)
public List<HostFirewallRule> getRule()
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
HostFirewallRule
public String getService()
Stringpublic void setService(String value)
value - allowed object is
Stringpublic boolean isEnabled()
public void setEnabled(boolean value)
public HostFirewallRulesetIpList getAllowedHosts()
HostFirewallRulesetIpListpublic void setAllowedHosts(HostFirewallRulesetIpList value)
value - allowed object is
HostFirewallRulesetIpListCopyright © 2018. All rights reserved.