Class CfnWebACLPropsMixin.ResponseInspectionBodyContainsProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.wafv2.CfnWebACLPropsMixin.ResponseInspectionBodyContainsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWebACLPropsMixin.ResponseInspectionBodyContainsProperty>
- Enclosing interface:
CfnWebACLPropsMixin.ResponseInspectionBodyContainsProperty
@Stability(Stable)
public static final class CfnWebACLPropsMixin.ResponseInspectionBodyContainsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnWebACLPropsMixin.ResponseInspectionBodyContainsProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.failureStrings(List<String> failureStrings) successStrings(List<String> successStrings)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
failureStrings
@Stability(Stable) public CfnWebACLPropsMixin.ResponseInspectionBodyContainsProperty.Builder failureStrings(List<String> failureStrings) - Parameters:
failureStrings- Strings in the body of the response that indicate a failed login or account creation attempt. To be counted as a failure, the string can be anywhere in the body and must be an exact match, including case. Each string must be unique among the success and failure strings.JSON example:
"FailureStrings": [ "Request failed" ]- Returns:
this
-
successStrings
@Stability(Stable) public CfnWebACLPropsMixin.ResponseInspectionBodyContainsProperty.Builder successStrings(List<String> successStrings) - Parameters:
successStrings- Strings in the body of the response that indicate a successful login or account creation attempt. To be counted as a success, the string can be anywhere in the body and must be an exact match, including case. Each string must be unique among the success and failure strings.JSON examples:
"SuccessStrings": [ "Login successful" ]and"SuccessStrings": [ "Account creation successful", "Welcome to our site!" ]- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnWebACLPropsMixin.ResponseInspectionBodyContainsProperty>- Returns:
- a new instance of
CfnWebACLPropsMixin.ResponseInspectionBodyContainsProperty - Throws:
NullPointerException- if any required attribute was not provided
-