@Generated(value="OracleSDKGenerator", comments="API Version: 20170115") public final class AllowRule extends Rule
An object that represents the action of configuring an access control rule. Access control rules permit access to application resources based on user-specified match conditions. This rule applies only to HTTP listeners.
*NOTES:**
* If you do not specify any access control rules, the default rule is to allow all traffic.
* If you add access control rules, the load balancer denies any traffic that does not match the rules.
* Maximum of two match conditions can be specified in a rule.
* You can specify this rule only with the following `RuleCondition` combinations:
* `SOURCE_IP_ADDRESS`
* `SOURCE_VCN_ID`
* `SOURCE_VCN_ID\", \"SOURCE_VCN_IP_ADDRESS`
Note: Objects should always be created or deserialized using the AllowRule.Builder. This model distinguishes fields
that are null because they are unset from fields that are explicitly set to null. This is done in
the setter methods of the AllowRule.Builder, which maintain a set of all explicitly set fields called
__explicitlySet__. The hashCode() and equals(Object) methods are implemented to take
__explicitlySet__ into account. The constructor, on the other hand, does not set __explicitlySet__
(since the constructor cannot distinguish explicit null from unset null).
| Modifier and Type | Class and Description |
|---|---|
static class |
AllowRule.Builder |
Rule.Action| Constructor and Description |
|---|
AllowRule(List<RuleCondition> conditions,
String description)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static AllowRule.Builder |
builder()
Create a new builder.
|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
Set<String> |
get__explicitlySet__() |
List<RuleCondition> |
getConditions() |
String |
getDescription()
A brief description of the access control rule.
|
int |
hashCode() |
AllowRule.Builder |
toBuilder() |
String |
toString() |
@Deprecated public AllowRule(List<RuleCondition> conditions, String description)
public static AllowRule.Builder builder()
Create a new builder.
public AllowRule.Builder toBuilder()
public List<RuleCondition> getConditions()
public String getDescription()
A brief description of the access control rule. Avoid entering confidential information.
example: `192.168.0.0/16 and 2001:db8::/32 are trusted clients. Whitelist them.`
Copyright © 2016–2021. All rights reserved.