org.jclouds.vcloud.domain.network.firewall
Class FirewallRule

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

public class FirewallRule
extends Object

The FirewallRule element defines a single firewall rule.

Since:
vcloud api 0.8
Author:
Adrian Cole

Constructor Summary
FirewallRule(boolean enabled, String description, FirewallPolicy policy, FirewallProtocols protocols, int port, String destinationIp)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getDescription()
           
 String getDestinationIp()
           
 FirewallPolicy getPolicy()
           
 int getPort()
           
 FirewallProtocols getProtocols()
           
 int hashCode()
           
 boolean isEnabled()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FirewallRule

public FirewallRule(boolean enabled,
                    @Nullable
                    String description,
                    @Nullable
                    FirewallPolicy policy,
                    @Nullable
                    FirewallProtocols protocols,
                    int port,
                    String destinationIp)
Method Detail

isEnabled

public boolean isEnabled()
Returns:
true if the rule is enabled

getDescription

@Nullable
public String getDescription()
Returns:
description of the rule

getPolicy

@Nullable
public FirewallPolicy getPolicy()
Returns:
specifies how packets are handled by the firewall

getProtocols

@Nullable
public FirewallProtocols getProtocols()
Returns:
specifies the protocols to which this firewall rule applies

getPort

public int getPort()
Returns:
specifies the network port to which this firewall rule applies. A value of ‐1 matches any port.

getDestinationIp

public String getDestinationIp()
Returns:
specifies the destination IP address, inside the firewall, to which this firewall rule applies

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2012 jclouds. All Rights Reserved.