Class ProtectionCapabilitySettings


  • @Generated(value="OracleSDKGenerator",
               comments="API Version: 20210930")
    public final class ProtectionCapabilitySettings
    extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
    Settings for protection capabilities
    Note: Objects should always be created or deserialized using the ProtectionCapabilitySettings.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 ProtectionCapabilitySettings.Builder, which maintain a set of all explicitly set fields called ProtectionCapabilitySettings.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).

    • Constructor Detail

      • ProtectionCapabilitySettings

        @Deprecated
        @ConstructorProperties({"maxNumberOfArguments","maxSingleArgumentLength","maxTotalArgumentLength","maxHttpRequestHeaders","maxHttpRequestHeaderLength","allowedHttpMethods"})
        public ProtectionCapabilitySettings​(Integer maxNumberOfArguments,
                                            Integer maxSingleArgumentLength,
                                            Integer maxTotalArgumentLength,
                                            Integer maxHttpRequestHeaders,
                                            Integer maxHttpRequestHeaderLength,
                                            List<String> allowedHttpMethods)
        Deprecated.
    • Method Detail

      • getMaxNumberOfArguments

        public Integer getMaxNumberOfArguments()
        Maximum number of arguments allowed.

        Used in protection capability 920380: Number of Arguments Limits.

        Returns:
        the value
      • getMaxSingleArgumentLength

        public Integer getMaxSingleArgumentLength()
        Maximum allowed length of a single argument.

        Used in protection capability 920370: Limit argument value length.

        Returns:
        the value
      • getMaxTotalArgumentLength

        public Integer getMaxTotalArgumentLength()
        Maximum allowed total length of all arguments.

        Used in protection capability 920390: Limit arguments total length.

        Returns:
        the value
      • getMaxHttpRequestHeaders

        public Integer getMaxHttpRequestHeaders()
        Maximum number of headers allowed in an HTTP request.

        Used in protection capability 9200014: Limit Number of Request Headers.

        Returns:
        the value
      • getMaxHttpRequestHeaderLength

        public Integer getMaxHttpRequestHeaderLength()
        Maximum allowed length of headers in an HTTP request.

        Used in protection capability: 9200024: Limit length of request header size.

        Returns:
        the value
      • getAllowedHttpMethods

        public List<String> getAllowedHttpMethods()
        List of allowed HTTP methods.

        Each value as a RFC7230 formated token string. Used in protection capability 911100: Restrict HTTP Request Methods.

        Returns:
        the value
      • toString

        public String toString()
        Overrides:
        toString in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • toString

        public String toString​(boolean includeByteArrayContents)
        Return a string representation of the object.
        Parameters:
        includeByteArrayContents - true to include the full contents of byte arrays
        Returns:
        string representation
      • equals

        public boolean equals​(Object o)
        Overrides:
        equals in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel