@Generated(value="OracleSDKGenerator", comments="API Version: 20211201") 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 AllowRule.Builder.__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take the explicitly set
fields into account. The constructor, on the other hand, does not take the explicitly set fields
into account (since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
AllowRule.Builder |
Rule.Action
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
AllowRule(List<RuleCondition> conditions,
String description)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static AllowRule.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
List<RuleCondition> |
getConditions() |
String |
getDescription()
A brief description of the access control rule.
|
int |
hashCode() |
AllowRule.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@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.
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
Copyright © 2016–2024. All rights reserved.