org.jclouds.rackspace.cloudloadbalancers.v1.domain
Class AccessRule

java.lang.Object
  extended by org.jclouds.rackspace.cloudloadbalancers.v1.domain.AccessRule
Direct Known Subclasses:
AccessRuleWithId

public class AccessRule
extends Object

The access rule management feature allows fine-grained network access controls to be applied to the load balancer's virtual IP address. A single IP address, multiple IP addresses, or entire network subnets can be added as an access rule. Rules that are configured with the ALLOW type will always take precedence over rules with the DENY type. To reject traffic from all rules except for those with the ALLOW type, add an access rule with an address of "0.0.0.0/0" and a DENY type.


Nested Class Summary
static class AccessRule.Type
           
 
Constructor Summary
AccessRule(String address, AccessRule.Type type)
           
 
Method Summary
static AccessRule allow(String address)
          Use this method to easily construct AccessRule.Type.ALLOW rules for the address.
static AccessRule deny(String address)
          Use this method to easily construct AccessRule.Type.DENY rules for the address.
 boolean equals(Object obj)
           
 String getAddress()
           
 AccessRule.Type getType()
           
 int hashCode()
           
protected  com.google.common.base.Objects.ToStringHelper string()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AccessRule

public AccessRule(String address,
                  AccessRule.Type type)
Method Detail

allow

public static AccessRule allow(String address)
Use this method to easily construct AccessRule.Type.ALLOW rules for the address.


deny

public static AccessRule deny(String address)
Use this method to easily construct AccessRule.Type.DENY rules for the address.


getAddress

public String getAddress()

getType

public AccessRule.Type getType()

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-2014 The Apache Software Foundation. All Rights Reserved.