@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
).
Modifier and Type | Class and Description |
---|---|
static class |
ProtectionCapabilitySettings.Builder |
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
ProtectionCapabilitySettings(Integer maxNumberOfArguments,
Integer maxSingleArgumentLength,
Integer maxTotalArgumentLength,
Integer maxHttpRequestHeaders,
Integer maxHttpRequestHeaderLength,
List<String> allowedHttpMethods)
Deprecated.
|
Modifier and Type | Method and 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.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"maxNumberOfArguments","maxSingleArgumentLength","maxTotalArgumentLength","maxHttpRequestHeaders","maxHttpRequestHeaderLength","allowedHttpMethods"}) public ProtectionCapabilitySettings(Integer maxNumberOfArguments, Integer maxSingleArgumentLength, Integer maxTotalArgumentLength, Integer maxHttpRequestHeaders, Integer maxHttpRequestHeaderLength, List<String> allowedHttpMethods)
public static ProtectionCapabilitySettings.Builder builder()
Create a new builder.
public ProtectionCapabilitySettings.Builder toBuilder()
public Integer getMaxNumberOfArguments()
Maximum number of arguments allowed. Used in protection capability 920380: Number of Arguments Limits.
public Integer getMaxSingleArgumentLength()
Maximum allowed length of a single argument. Used in protection capability 920370: Limit argument value length.
public Integer getMaxTotalArgumentLength()
Maximum allowed total length of all arguments. Used in protection capability 920390: Limit arguments total length.
public Integer getMaxHttpRequestHeaders()
Maximum number of headers allowed in an HTTP request. Used in protection capability 9200014: Limit Number of Request Headers.
public Integer getMaxHttpRequestHeaderLength()
Maximum allowed length of headers in an HTTP request. Used in protection capability: 9200024: Limit length of request header size.
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.
public String toString()
toString
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2024. All rights reserved.