org.jclouds.rackspace.cloudloadbalancers.v1.domain
Class AccessRule
java.lang.Object
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.
AccessRule
public AccessRule(String address,
AccessRule.Type type)
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.