Package com.oracle.bmc.waf.model
Class RequestProtection.Builder
- java.lang.Object
-
- com.oracle.bmc.waf.model.RequestProtection.Builder
-
- Enclosing class:
- RequestProtection
public static class RequestProtection.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RequestProtection.Builder
bodyInspectionSizeLimitExceededActionName(String bodyInspectionSizeLimitExceededActionName)
References action by name from actions defined in WebAppFirewallPolicy.RequestProtection.Builder
bodyInspectionSizeLimitInBytes(Integer bodyInspectionSizeLimitInBytes)
Maximum size of inspected HTTP message body in bytes.RequestProtection
build()
RequestProtection.Builder
copy(RequestProtection model)
RequestProtection.Builder
rules(List<ProtectionRule> rules)
Ordered list of ProtectionRules.
-
-
-
Method Detail
-
rules
public RequestProtection.Builder rules(List<ProtectionRule> rules)
Ordered list of ProtectionRules.Rules are executed in order of appearance in this array. ProtectionRules in this array can only use protection Capabilities of REQUEST_PROTECTION_CAPABILITY type.
- Parameters:
rules
- the value to set- Returns:
- this builder
-
bodyInspectionSizeLimitInBytes
public RequestProtection.Builder bodyInspectionSizeLimitInBytes(Integer bodyInspectionSizeLimitInBytes)
Maximum size of inspected HTTP message body in bytes.Actions to take if this limit is exceeded are defined in bodyInspectionSizeLimitExceededActionName.
Body inspection maximum size allowed is defined with per-tenancy limit: 8192 bytes.
- Parameters:
bodyInspectionSizeLimitInBytes
- the value to set- Returns:
- this builder
-
bodyInspectionSizeLimitExceededActionName
public RequestProtection.Builder bodyInspectionSizeLimitExceededActionName(String bodyInspectionSizeLimitExceededActionName)
References action by name from actions defined in WebAppFirewallPolicy.Executed if HTTP message body size exceeds limit set in field bodyInspectionSizeLimitInBytes.
If this field is null HTTP message body will inspected up to bodyInspectionSizeLimitInBytes and the rest will not be inspected by Protection Capabilities.
Allowed action types: * **RETURN_HTTP_RESPONSE** terminates further execution of modules and rules and returns defined HTTP response.
- Parameters:
bodyInspectionSizeLimitExceededActionName
- the value to set- Returns:
- this builder
-
build
public RequestProtection build()
-
copy
public RequestProtection.Builder copy(RequestProtection model)
-
-