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 class
IngressRule.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()
int
compareTo(IngressRule o)
boolean
equals(Object obj)
String
getAccount()
String
getCIDR()
int
getEndPort()
int
getICMPCode()
int
getICMPType()
String
getId()
String
getProtocol()
String
getSecurityGroupName()
int
getStartPort()
Set<Tag>
getTags()
int
hashCode()
protected com.google.common.base.MoreObjects.ToStringHelper
string()
IngressRule.Builder<?>
toBuilder()
String
toString()
-
-
-
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:
compareTo
in interfaceComparable<IngressRule>
-
-