org.jclouds.cloudstack.domain
Class FirewallRule
java.lang.Object
org.jclouds.cloudstack.domain.FirewallRule
- All Implemented Interfaces:
- Comparable<FirewallRule>
public class FirewallRule
- extends Object
- implements Comparable<FirewallRule>
- Author:
- Andrei Savu
FirewallRule
public FirewallRule(long id,
Set<String> CIDRs,
int startPort,
int endPort,
String icmpCode,
String icmpType,
String ipAddress,
long ipAddressId,
FirewallRule.Protocol protocol,
FirewallRule.State state)
builder
public static FirewallRule.Builder builder()
compareTo
public int compareTo(FirewallRule arg0)
- Specified by:
compareTo
in interface Comparable<FirewallRule>
getId
public long getId()
getCIDRs
public Set<String> getCIDRs()
getStartPort
public int getStartPort()
getEndPort
public int getEndPort()
getIcmpCode
public String getIcmpCode()
getIcmpType
public String getIcmpType()
getIpAddress
public String getIpAddress()
getIpAddressId
public long getIpAddressId()
getProtocol
public FirewallRule.Protocol getProtocol()
getState
public FirewallRule.State getState()
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-2012 jclouds. All Rights Reserved.