Class CfnWebACLPropsMixin.ResponseInspectionProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.wafv2.CfnWebACLPropsMixin.ResponseInspectionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWebACLPropsMixin.ResponseInspectionProperty>
- Enclosing interface:
CfnWebACLPropsMixin.ResponseInspectionProperty
@Stability(Stable)
public static final class CfnWebACLPropsMixin.ResponseInspectionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnWebACLPropsMixin.ResponseInspectionProperty>
A builder for
CfnWebACLPropsMixin.ResponseInspectionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnWebACLPropsMixin.ResponseInspectionProperty.getBodyContains()bodyContains(IResolvable bodyContains) Sets the value ofCfnWebACLPropsMixin.ResponseInspectionProperty.getBodyContains()build()Builds the configured instance.Sets the value ofCfnWebACLPropsMixin.ResponseInspectionProperty.getHeader()header(IResolvable header) Sets the value ofCfnWebACLPropsMixin.ResponseInspectionProperty.getHeader()Sets the value ofCfnWebACLPropsMixin.ResponseInspectionProperty.getJson()json(IResolvable json) Sets the value ofCfnWebACLPropsMixin.ResponseInspectionProperty.getJson()Sets the value ofCfnWebACLPropsMixin.ResponseInspectionProperty.getStatusCode()statusCode(IResolvable statusCode) Sets the value ofCfnWebACLPropsMixin.ResponseInspectionProperty.getStatusCode()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bodyContains
@Stability(Stable) public CfnWebACLPropsMixin.ResponseInspectionProperty.Builder bodyContains(IResolvable bodyContains) Sets the value ofCfnWebACLPropsMixin.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 CfnWebACLPropsMixin.ResponseInspectionProperty.Builder bodyContains(CfnWebACLPropsMixin.ResponseInspectionBodyContainsProperty bodyContains) Sets the value ofCfnWebACLPropsMixin.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
@Stability(Stable) public CfnWebACLPropsMixin.ResponseInspectionProperty.Builder header(IResolvable header) Sets the value ofCfnWebACLPropsMixin.ResponseInspectionProperty.getHeader()- Parameters:
header- Configures inspection of the response header for success and failure indicators.- Returns:
this
-
header
@Stability(Stable) public CfnWebACLPropsMixin.ResponseInspectionProperty.Builder header(CfnWebACLPropsMixin.ResponseInspectionHeaderProperty header) Sets the value ofCfnWebACLPropsMixin.ResponseInspectionProperty.getHeader()- Parameters:
header- Configures inspection of the response header for success and failure indicators.- Returns:
this
-
json
@Stability(Stable) public CfnWebACLPropsMixin.ResponseInspectionProperty.Builder json(IResolvable json) Sets the value ofCfnWebACLPropsMixin.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 CfnWebACLPropsMixin.ResponseInspectionProperty.Builder json(CfnWebACLPropsMixin.ResponseInspectionJsonProperty json) Sets the value ofCfnWebACLPropsMixin.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 CfnWebACLPropsMixin.ResponseInspectionProperty.Builder statusCode(IResolvable statusCode) Sets the value ofCfnWebACLPropsMixin.ResponseInspectionProperty.getStatusCode()- Parameters:
statusCode- Configures inspection of the response status code for success and failure indicators.- Returns:
this
-
statusCode
@Stability(Stable) public CfnWebACLPropsMixin.ResponseInspectionProperty.Builder statusCode(CfnWebACLPropsMixin.ResponseInspectionStatusCodeProperty statusCode) Sets the value ofCfnWebACLPropsMixin.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:
buildin interfacesoftware.amazon.jsii.Builder<CfnWebACLPropsMixin.ResponseInspectionProperty>- Returns:
- a new instance of
CfnWebACLPropsMixin.ResponseInspectionProperty - Throws:
NullPointerException- if any required attribute was not provided
-