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
- Author:
- Andrei Savu
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)
builder
public static FirewallRule.Builder<?> builder()
toBuilder
public FirewallRule.Builder<?> toBuilder()
getId
public String getId()
getCIDRs
public Set<String> getCIDRs()
getStartPort
public int getStartPort()
getEndPort
public int getEndPort()
getIcmpCode
@Nullable
public String getIcmpCode()
getIcmpType
@Nullable
public String getIcmpType()
getIpAddress
@Nullable
public String getIpAddress()
getIpAddressId
@Nullable
public String getIpAddressId()
getProtocol
@Nullable
public FirewallRule.Protocol getProtocol()
getState
@Nullable
public FirewallRule.State getState()
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
string
protected com.google.common.base.Objects.ToStringHelper string()
toString
public String toString()
- Overrides:
toString in class Object
compareTo
public int compareTo(FirewallRule other)
- Specified by:
compareTo in interface Comparable<FirewallRule>
Copyright © 2009-2012 jclouds. All Rights Reserved.