org.jclouds.openstack.nova.v2_0.domain
Class Ingress

java.lang.Object
  extended by org.jclouds.openstack.nova.v2_0.domain.Ingress
Direct Known Subclasses:
SecurityGroupRule

@Beta
public class Ingress
extends Object

Ingress access to a destination protocol on particular ports

Author:
Adrian Cole

Nested Class Summary
static class Ingress.Builder<T extends Ingress.Builder<T>>
           
 
Constructor Summary
protected Ingress(IpProtocol ipProtocol, int fromPort, int toPort)
           
 
Method Summary
static Ingress.Builder<?> builder()
           
 boolean equals(Object obj)
           
 int getFromPort()
          Start of destination port range for the TCP and UDP protocols, or an ICMP type number.
 IpProtocol getIpProtocol()
          destination IP protocol
 int getToPort()
          End of destination port range for the TCP and UDP protocols, or an ICMP code.
 int hashCode()
           
protected  com.google.common.base.Objects.ToStringHelper string()
           
 Ingress.Builder<?> toBuilder()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Ingress

@ConstructorProperties(value={"ip_protocol","from_port","to_port"})
protected Ingress(@Nullable
                                             IpProtocol ipProtocol,
                                             int fromPort,
                                             int toPort)
Method Detail

builder

public static Ingress.Builder<?> builder()

toBuilder

public Ingress.Builder<?> toBuilder()

getIpProtocol

public IpProtocol getIpProtocol()
destination IP protocol


getFromPort

public int getFromPort()
Start of destination port range for the TCP and UDP protocols, or an ICMP type number. An ICMP type number of -1 indicates a wildcard (i.e., any ICMP type number).


getToPort

public int getToPort()
End of destination port range for the TCP and UDP protocols, or an ICMP code. An ICMP code of -1 indicates a wildcard (i.e., any ICMP code).


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


Copyright © 2009-2012 jclouds. All Rights Reserved.