public class HostFirewallRule extends DynamicData
Java class for HostFirewallRule complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="HostFirewallRule">
<complexContent>
<extension base="{urn:vim25}DynamicData">
<sequence>
<element name="port" type="{http://www.w3.org/2001/XMLSchema}int"/>
<element name="endPort" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
<element name="direction" type="{urn:vim25}HostFirewallRuleDirection"/>
<element name="portType" type="{urn:vim25}HostFirewallRulePortType" minOccurs="0"/>
<element name="protocol" type="{http://www.w3.org/2001/XMLSchema}string"/>
</sequence>
</extension>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected HostFirewallRuleDirection |
direction |
protected Integer |
endPort |
protected int |
port |
protected HostFirewallRulePortType |
portType |
protected String |
protocol |
| Constructor and Description |
|---|
HostFirewallRule() |
| Modifier and Type | Method and Description |
|---|---|
HostFirewallRuleDirection |
getDirection()
Gets the value of the direction property.
|
Integer |
getEndPort()
Gets the value of the endPort property.
|
int |
getPort()
Gets the value of the port property.
|
HostFirewallRulePortType |
getPortType()
Gets the value of the portType property.
|
String |
getProtocol()
Gets the value of the protocol property.
|
void |
setDirection(HostFirewallRuleDirection value)
Sets the value of the direction property.
|
void |
setEndPort(Integer value)
Sets the value of the endPort property.
|
void |
setPort(int value)
Sets the value of the port property.
|
void |
setPortType(HostFirewallRulePortType value)
Sets the value of the portType property.
|
void |
setProtocol(String value)
Sets the value of the protocol property.
|
protected int port
protected Integer endPort
protected HostFirewallRuleDirection direction
protected HostFirewallRulePortType portType
protected String protocol
public int getPort()
public void setPort(int value)
public Integer getEndPort()
Integerpublic void setEndPort(Integer value)
value - allowed object is
Integerpublic HostFirewallRuleDirection getDirection()
HostFirewallRuleDirectionpublic void setDirection(HostFirewallRuleDirection value)
value - allowed object is
HostFirewallRuleDirectionpublic HostFirewallRulePortType getPortType()
HostFirewallRulePortTypepublic void setPortType(HostFirewallRulePortType value)
value - allowed object is
HostFirewallRulePortTypepublic String getProtocol()
StringCopyright © 2018. All rights reserved.