Package 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>
Class FirewallRule
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FirewallRule.Builder<T extends FirewallRule.Builder<T>>
static class
FirewallRule.Protocol
static class
FirewallRule.State
-
Constructor Summary
Constructors Modifier Constructor Description protected
FirewallRule(String id, Iterable<String> CIDRs, int startPort, int endPort, String icmpCode, String icmpType, String ipAddress, String ipAddressId, FirewallRule.Protocol protocol, FirewallRule.State state, Set<Tag> tags)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FirewallRule.Builder<?>
builder()
int
compareTo(FirewallRule other)
boolean
equals(Object obj)
Set<String>
getCIDRs()
int
getEndPort()
String
getIcmpCode()
String
getIcmpType()
String
getId()
String
getIpAddress()
String
getIpAddressId()
FirewallRule.Protocol
getProtocol()
int
getStartPort()
FirewallRule.State
getState()
Set<Tag>
getTags()
int
hashCode()
protected com.google.common.base.MoreObjects.ToStringHelper
string()
FirewallRule.Builder<?>
toBuilder()
String
toString()
-
-
-
Constructor Detail
-
FirewallRule
protected FirewallRule(String id, @Nullable Iterable<String> CIDRs, int startPort, int endPort, @Nullable String icmpCode, @Nullable String icmpType, @Nullable String ipAddress, @Nullable String ipAddressId, @Nullable FirewallRule.Protocol protocol, @Nullable FirewallRule.State state, @Nullable Set<Tag> tags)
-
-
Method Detail
-
builder
public static FirewallRule.Builder<?> builder()
-
toBuilder
public FirewallRule.Builder<?> toBuilder()
-
getId
public String getId()
-
getStartPort
public int getStartPort()
-
getEndPort
public int getEndPort()
-
getProtocol
@Nullable public FirewallRule.Protocol getProtocol()
-
getState
@Nullable public FirewallRule.State getState()
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
-
compareTo
public int compareTo(FirewallRule other)
- Specified by:
compareTo
in interfaceComparable<FirewallRule>
-
-