Class AllowRule
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.loadbalancer.model.Rule
-
- com.oracle.bmc.loadbalancer.model.AllowRule
-
@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 theAllowRule.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 theAllowRule.Builder
, which maintain a set of all explicitly set fields calledAllowRule.Builder.__explicitlySet__
. ThehashCode()
andequals(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).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AllowRule.Builder
-
Nested classes/interfaces inherited from class com.oracle.bmc.loadbalancer.model.Rule
Rule.Action
-
-
Constructor Summary
Constructors Constructor Description AllowRule(List<RuleCondition> conditions, String description)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Constructor Detail
-
AllowRule
@Deprecated public AllowRule(List<RuleCondition> conditions, String description)
Deprecated.
-
-
Method Detail
-
builder
public static AllowRule.Builder builder()
Create a new builder.
-
toBuilder
public AllowRule.Builder toBuilder()
-
getConditions
public List<RuleCondition> getConditions()
-
getDescription
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.
- Returns:
- the value
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
-
-