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
public IngressRule(String account,
String CIDR,
int endPort,
int iCMPCode,
int iCMPType,
String protocol,
long id,
String securityGroupName,
int startPort)
builder
public static IngressRule.Builder builder()
getAccount
public String getAccount()
- Returns:
- account owning the ingress rule
getCIDR
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
public String getProtocol()
- Returns:
- the protocol of the ingress rule
getId
public long getId()
- Returns:
- the id of the ingress rule
getSecurityGroupName
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
toString
public String toString()
- Overrides:
toString
in class Object
compareTo
public int compareTo(IngressRule arg0)
- Specified by:
compareTo
in interface Comparable<IngressRule>
Copyright © 2009-2012 jclouds. All Rights Reserved.