org.jclouds.cloudstack.domain
Class IngressRule

java.lang.Object
  extended by org.jclouds.cloudstack.domain.IngressRule
All Implemented Interfaces:
Comparable<IngressRule>

public class IngressRule
extends Object
implements Comparable<IngressRule>

Author:
Adrian Cole

Nested Class Summary
static class IngressRule.Builder
           
 
Constructor Summary
IngressRule(String account, String CIDR, int endPort, int iCMPCode, int iCMPType, String protocol, long id, String securityGroupName, int startPort)
           
 
Method Summary
static IngressRule.Builder builder()
           
 int compareTo(IngressRule arg0)
           
 boolean equals(Object obj)
           
 String getAccount()
           
 String getCIDR()
           
 int getEndPort()
           
 int getICMPCode()
           
 int getICMPType()
           
 long getId()
           
 String getProtocol()
           
 String getSecurityGroupName()
           
 int getStartPort()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IngressRule

public IngressRule(String account,
                   String CIDR,
                   int endPort,
                   int iCMPCode,
                   int iCMPType,
                   String protocol,
                   long id,
                   String securityGroupName,
                   int startPort)
Method Detail

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.