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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AccessRule.Type
-
Constructor Summary
Constructors Constructor Description AccessRule(String address, AccessRule.Type type)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AccessRule
allow(String address)
Use this method to easily constructAccessRule.Type.ALLOW
rules for the address.static AccessRule
deny(String address)
Use this method to easily constructAccessRule.Type.DENY
rules for the address.boolean
equals(Object obj)
String
getAddress()
AccessRule.Type
getType()
int
hashCode()
protected com.google.common.base.MoreObjects.ToStringHelper
string()
String
toString()
-
-
-
Constructor Detail
-
AccessRule
public AccessRule(String address, AccessRule.Type type)
-
-
Method Detail
-
allow
public static AccessRule allow(String address)
Use this method to easily constructAccessRule.Type.ALLOW
rules for the address.
-
deny
public static AccessRule deny(String address)
Use this method to easily constructAccessRule.Type.DENY
rules for the address.
-
getAddress
public String getAddress()
-
getType
public AccessRule.Type getType()
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
-
-