Class ProtectionCapabilitySettings
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.waf.model.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 theProtectionCapabilitySettings.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 calledProtectionCapabilitySettings.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
ProtectionCapabilitySettings.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ProtectionCapabilitySettings.Builder
builder()
Create a new builder.boolean
equals(Object o)
List<String>
getAllowedHttpMethods()
List of allowed HTTP methods.Integer
getMaxHttpRequestHeaderLength()
Maximum allowed length of headers in an HTTP request.Integer
getMaxHttpRequestHeaders()
Maximum number of headers allowed in an HTTP request.Integer
getMaxNumberOfArguments()
Maximum number of arguments allowed.Integer
getMaxSingleArgumentLength()
Maximum allowed length of a single argument.Integer
getMaxTotalArgumentLength()
Maximum allowed total length of all arguments.int
hashCode()
ProtectionCapabilitySettings.Builder
toBuilder()
String
toString()
String
toString(boolean includeByteArrayContents)
Return a string representation of the object.
-
-
-
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
-
builder
public static ProtectionCapabilitySettings.Builder builder()
Create a new builder.
-
toBuilder
public ProtectionCapabilitySettings.Builder toBuilder()
-
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 classcom.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 classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
-