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<T extends IngressRule.Builder<T>>
           
 
Constructor Summary
protected IngressRule(String account, String CIDR, int endPort, int ICMPCode, int ICMPType, String protocol, String id, String securityGroupName, int startPort)
           
 
Method Summary
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()
           
 int hashCode()
           
protected  com.google.common.base.Objects.ToStringHelper string()
           
 IngressRule.Builder<?> toBuilder()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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-2012 jclouds. All Rights Reserved.