Class CfnWebACL.ResponseInspectionBodyContainsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.wafv2.CfnWebACL.ResponseInspectionBodyContainsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWebACL.ResponseInspectionBodyContainsProperty>
- Enclosing interface:
- CfnWebACL.ResponseInspectionBodyContainsProperty
@Stability(Stable)
public static final class CfnWebACL.ResponseInspectionBodyContainsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnWebACL.ResponseInspectionBodyContainsProperty>
A builder for
CfnWebACL.ResponseInspectionBodyContainsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.failureStrings(List<String> failureStrings) Sets the value ofCfnWebACL.ResponseInspectionBodyContainsProperty.getFailureStrings()successStrings(List<String> successStrings) Sets the value ofCfnWebACL.ResponseInspectionBodyContainsProperty.getSuccessStrings()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
failureStrings
@Stability(Stable) public CfnWebACL.ResponseInspectionBodyContainsProperty.Builder failureStrings(List<String> failureStrings) Sets the value ofCfnWebACL.ResponseInspectionBodyContainsProperty.getFailureStrings()- Parameters:
failureStrings- Strings in the body of the response that indicate a failed login or account creation attempt. This parameter is required. 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 CfnWebACL.ResponseInspectionBodyContainsProperty.Builder successStrings(List<String> successStrings) Sets the value ofCfnWebACL.ResponseInspectionBodyContainsProperty.getSuccessStrings()- Parameters:
successStrings- Strings in the body of the response that indicate a successful login or account creation attempt. This parameter is required. 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<CfnWebACL.ResponseInspectionBodyContainsProperty>- Returns:
- a new instance of
CfnWebACL.ResponseInspectionBodyContainsProperty - Throws:
NullPointerException- if any required attribute was not provided
-