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>
- Author:
- Adrian Cole
IngressRule
@ConstructorProperties(value={"account","cidr","endport","icmpcode","icmptype","protocol","ruleid","securitygroupname","startport"})
protected IngressRule(@Nullable
String account,
@Nullable
String CIDR,
int endPort,
int ICMPCode,
int ICMPType,
@Nullable
String protocol,
String id,
@Nullable
String securityGroupName,
int startPort)
builder
public static IngressRule.Builder<?> builder()
toBuilder
public IngressRule.Builder<?> toBuilder()
getAccount
@Nullable
public String getAccount()
- Returns:
- account owning the ingress rule
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
getProtocol
@Nullable
public String getProtocol()
- Returns:
- the protocol of the ingress rule
getId
public String getId()
- Returns:
- the id of the ingress rule
getSecurityGroupName
@Nullable
public String getSecurityGroupName()
- Returns:
- security group name
getStartPort
public int getStartPort()
- Returns:
- the starting IP of the ingress rule
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(IngressRule o)
- Specified by:
compareTo in interface Comparable<IngressRule>
Copyright © 2009-2013 jclouds. All Rights Reserved.