Class AllowRule


  • @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).

    • Method Detail

      • 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.
        Overrides:
        toString in class Rule
        Parameters:
        includeByteArrayContents - true to include the full contents of byte arrays
        Returns:
        string representation
      • equals

        public boolean equals​(Object o)
        Overrides:
        equals in class Rule
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Rule