Class CfnWebACL.ResponseInspectionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.wafv2.CfnWebACL.ResponseInspectionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWebACL.ResponseInspectionProperty>
- Enclosing interface:
CfnWebACL.ResponseInspectionProperty
@Stability(Stable)
public static final class CfnWebACL.ResponseInspectionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnWebACL.ResponseInspectionProperty>
A builder for
CfnWebACL.ResponseInspectionProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbodyContains
(IResolvable bodyContains) Sets the value ofCfnWebACL.ResponseInspectionProperty.getBodyContains()
bodyContains
(CfnWebACL.ResponseInspectionBodyContainsProperty bodyContains) Sets the value ofCfnWebACL.ResponseInspectionProperty.getBodyContains()
build()
Builds the configured instance.header
(IResolvable header) Sets the value ofCfnWebACL.ResponseInspectionProperty.getHeader()
Sets the value ofCfnWebACL.ResponseInspectionProperty.getHeader()
json
(IResolvable json) Sets the value ofCfnWebACL.ResponseInspectionProperty.getJson()
Sets the value ofCfnWebACL.ResponseInspectionProperty.getJson()
statusCode
(IResolvable statusCode) Sets the value ofCfnWebACL.ResponseInspectionProperty.getStatusCode()
Sets the value ofCfnWebACL.ResponseInspectionProperty.getStatusCode()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bodyContains
@Stability(Stable) public CfnWebACL.ResponseInspectionProperty.Builder bodyContains(IResolvable bodyContains) Sets the value ofCfnWebACL.ResponseInspectionProperty.getBodyContains()
- Parameters:
bodyContains
- Configures inspection of the response body for success and failure indicators. AWS WAF can inspect the first 65,536 bytes (64 KB) of the response body.- Returns:
this
-
bodyContains
@Stability(Stable) public CfnWebACL.ResponseInspectionProperty.Builder bodyContains(CfnWebACL.ResponseInspectionBodyContainsProperty bodyContains) Sets the value ofCfnWebACL.ResponseInspectionProperty.getBodyContains()
- Parameters:
bodyContains
- Configures inspection of the response body for success and failure indicators. AWS WAF can inspect the first 65,536 bytes (64 KB) of the response body.- Returns:
this
-
header
Sets the value ofCfnWebACL.ResponseInspectionProperty.getHeader()
- Parameters:
header
- Configures inspection of the response header for success and failure indicators.- Returns:
this
-
header
@Stability(Stable) public CfnWebACL.ResponseInspectionProperty.Builder header(CfnWebACL.ResponseInspectionHeaderProperty header) Sets the value ofCfnWebACL.ResponseInspectionProperty.getHeader()
- Parameters:
header
- Configures inspection of the response header for success and failure indicators.- Returns:
this
-
json
Sets the value ofCfnWebACL.ResponseInspectionProperty.getJson()
- Parameters:
json
- Configures inspection of the response JSON for success and failure indicators. AWS WAF can inspect the first 65,536 bytes (64 KB) of the response JSON.- Returns:
this
-
json
@Stability(Stable) public CfnWebACL.ResponseInspectionProperty.Builder json(CfnWebACL.ResponseInspectionJsonProperty json) Sets the value ofCfnWebACL.ResponseInspectionProperty.getJson()
- Parameters:
json
- Configures inspection of the response JSON for success and failure indicators. AWS WAF can inspect the first 65,536 bytes (64 KB) of the response JSON.- Returns:
this
-
statusCode
@Stability(Stable) public CfnWebACL.ResponseInspectionProperty.Builder statusCode(IResolvable statusCode) Sets the value ofCfnWebACL.ResponseInspectionProperty.getStatusCode()
- Parameters:
statusCode
- Configures inspection of the response status code for success and failure indicators.- Returns:
this
-
statusCode
@Stability(Stable) public CfnWebACL.ResponseInspectionProperty.Builder statusCode(CfnWebACL.ResponseInspectionStatusCodeProperty statusCode) Sets the value ofCfnWebACL.ResponseInspectionProperty.getStatusCode()
- Parameters:
statusCode
- Configures inspection of the response status code for success and failure indicators.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnWebACL.ResponseInspectionProperty>
- Returns:
- a new instance of
CfnWebACL.ResponseInspectionProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-