Package org.jclouds.cloudstack.domain
Class IngressRule
- java.lang.Object
-
- org.jclouds.cloudstack.domain.IngressRule
-
- All Implemented Interfaces:
Comparable<IngressRule>
public class IngressRule extends Object implements Comparable<IngressRule>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIngressRule.Builder<T extends IngressRule.Builder<T>>
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IngressRule.Builder<?>builder()intcompareTo(IngressRule o)booleanequals(Object obj)StringgetAccount()StringgetCIDR()intgetEndPort()intgetICMPCode()intgetICMPType()StringgetId()StringgetProtocol()StringgetSecurityGroupName()intgetStartPort()Set<Tag>getTags()inthashCode()protected com.google.common.base.MoreObjects.ToStringHelperstring()IngressRule.Builder<?>toBuilder()StringtoString()
-
-
-
Constructor Detail
-
IngressRule
@ConstructorProperties({"account","cidr","endport","icmpcode","icmptype","protocol","ruleid","securitygroupname","startport","tags"}) protected IngressRule(@Nullable String account, @Nullable String CIDR, int endPort, int ICMPCode, int ICMPType, @Nullable String protocol, String id, @Nullable String securityGroupName, int startPort, @Nullable Set<Tag> tags)
-
-
Method Detail
-
builder
public static IngressRule.Builder<?> builder()
-
toBuilder
public IngressRule.Builder<?> toBuilder()
-
getCIDR
@Nullable public String getCIDR()
- Returns:
- the CIDR notation for the base IP address of the ingress rule
-
getEndPort
public int getEndPort()
- Returns:
- the ending IP of the ingress rule
-
getICMPCode
public int getICMPCode()
- Returns:
- the code for the ICMP message response
-
getICMPType
public int getICMPType()
- Returns:
- the type of the ICMP message response
-
getId
public String getId()
- Returns:
- the id of the ingress rule
-
getStartPort
public int getStartPort()
- Returns:
- the starting IP of the ingress rule
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
-
compareTo
public int compareTo(IngressRule o)
- Specified by:
compareToin interfaceComparable<IngressRule>
-
-