org.jclouds.vcloud.domain.network.firewall
Class FirewallRule
java.lang.Object
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
FirewallRule
public FirewallRule(boolean enabled,
@Nullable
String description,
@Nullable
FirewallPolicy policy,
@Nullable
FirewallProtocols protocols,
int port,
String destinationIp)
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-2011 jclouds. All Rights Reserved.