org.jclouds.vcloud.director.v1_5.domain.network
Class FirewallRule

java.lang.Object
  extended by org.jclouds.vcloud.director.v1_5.domain.network.FirewallRule

public class FirewallRule
extends Object

Represents a firewall rule.

Java class for FirewallRule complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="FirewallRule">
   <complexContent>
     <extension base="{http://www.vmware.com/vcloud/v1.5}VCloudExtensibleType">
       <sequence>
         <element name="IsEnabled" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
         <element name="Description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
         <element name="Policy" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
         <element name="Protocols" minOccurs="0">
           <complexType>
             <complexContent>
               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                 <choice>
                   <sequence>
                     <element name="Tcp" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
                     <element name="Udp" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
                   </sequence>
                   <element name="Icmp" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
                   <element name="Any" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
                 </choice>
               </restriction>
             </complexContent>
           </complexType>
         </element>
         <element name="Port" type="{http://www.w3.org/2001/XMLSchema}int"/>
         <element name="DestinationIp" type="{http://www.vmware.com/vcloud/v1.5}FirewallIpAddressType"/>
         <element name="SourcePort" type="{http://www.w3.org/2001/XMLSchema}int"/>
         <element name="SourceIp" type="{http://www.vmware.com/vcloud/v1.5}FirewallIpAddressType"/>
         <element name="Direction" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
         <element name="EnableLogging" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
       </sequence>
       <anyAttribute processContents='lax' namespace='##other'/>
     </extension>
   </complexContent>
 </complexType>
 


Nested Class Summary
static class FirewallRule.Builder
           
 
Field Summary
protected  String description
           
protected  String destinationIp
           
protected  String direction
           
protected  Boolean enableLogging
           
protected  Boolean isEnabled
           
protected  String policy
           
protected  Integer port
           
protected  FirewallRuleProtocols protocols
           
protected  String sourceIp
           
protected  Integer sourcePort
           
 
Method Summary
static FirewallRule.Builder builder()
           
 boolean equals(Object o)
           
 String getDescription()
          Gets the value of the description property.
 String getDestinationIp()
          Gets the value of the destinationIp property.
 String getDirection()
          Gets the value of the direction property.
 String getPolicy()
          Gets the value of the policy property.
 int getPort()
          Gets the value of the port property.
 FirewallRuleProtocols getProtocols()
          Gets the value of the protocols property.
 String getSourceIp()
          Gets the value of the sourceIp property.
 int getSourcePort()
          Gets the value of the sourcePort property.
 int hashCode()
           
 Boolean isEnabled()
          Gets the value of the isEnabled property.
 Boolean isEnableLogging()
          Gets the value of the enableLogging property.
 FirewallRule.Builder toBuilder()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

isEnabled

protected Boolean isEnabled

description

protected String description

policy

protected String policy

protocols

protected FirewallRuleProtocols protocols

port

protected Integer port

destinationIp

protected String destinationIp

sourcePort

protected Integer sourcePort

sourceIp

protected String sourceIp

direction

protected String direction

enableLogging

protected Boolean enableLogging
Method Detail

builder

public static FirewallRule.Builder builder()

toBuilder

public FirewallRule.Builder toBuilder()

isEnabled

public Boolean isEnabled()
Gets the value of the isEnabled property.

Returns:
possible object is Boolean

getDescription

public String getDescription()
Gets the value of the description property.

Returns:
possible object is String

getPolicy

public String getPolicy()
Gets the value of the policy property.

Returns:
possible object is String

getProtocols

public FirewallRuleProtocols getProtocols()
Gets the value of the protocols property.

Returns:
possible object is FirewallRuleProtocols

getPort

public int getPort()
Gets the value of the port property.


getDestinationIp

public String getDestinationIp()
Gets the value of the destinationIp property.

Returns:
possible object is String

getSourcePort

public int getSourcePort()
Gets the value of the sourcePort property.


getSourceIp

public String getSourceIp()
Gets the value of the sourceIp property.

Returns:
possible object is String

getDirection

public String getDirection()
Gets the value of the direction property.

Returns:
possible object is String

isEnableLogging

public Boolean isEnableLogging()
Gets the value of the enableLogging property.

Returns:
possible object is Boolean

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.