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.ExplicitlySetBmcModelSettings 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 classProtectionCapabilitySettings.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ProtectionCapabilitySettings.Builderbuilder()Create a new builder.booleanequals(Object o)List<String>getAllowedHttpMethods()List of allowed HTTP methods.IntegergetMaxHttpRequestHeaderLength()Maximum allowed length of headers in an HTTP request.IntegergetMaxHttpRequestHeaders()Maximum number of headers allowed in an HTTP request.IntegergetMaxNumberOfArguments()Maximum number of arguments allowed.IntegergetMaxSingleArgumentLength()Maximum allowed length of a single argument.IntegergetMaxTotalArgumentLength()Maximum allowed total length of all arguments.inthashCode()ProtectionCapabilitySettings.BuildertoBuilder()StringtoString()StringtoString(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:
toStringin 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:
equalsin classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
hashCode
public int hashCode()
- Overrides:
hashCodein classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
-