Class CfnWebACL.ResponseInspectionJsonProperty.Builder
java.lang.Object
software.amazon.awscdk.services.wafv2.CfnWebACL.ResponseInspectionJsonProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWebACL.ResponseInspectionJsonProperty>
- Enclosing interface:
- CfnWebACL.ResponseInspectionJsonProperty
@Stability(Stable)
public static final class CfnWebACL.ResponseInspectionJsonProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnWebACL.ResponseInspectionJsonProperty>
A builder for
CfnWebACL.ResponseInspectionJsonProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.failureValues
(List<String> failureValues) Sets the value ofCfnWebACL.ResponseInspectionJsonProperty.getFailureValues()
identifier
(String identifier) Sets the value ofCfnWebACL.ResponseInspectionJsonProperty.getIdentifier()
successValues
(List<String> successValues) Sets the value ofCfnWebACL.ResponseInspectionJsonProperty.getSuccessValues()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
failureValues
@Stability(Stable) public CfnWebACL.ResponseInspectionJsonProperty.Builder failureValues(List<String> failureValues) Sets the value ofCfnWebACL.ResponseInspectionJsonProperty.getFailureValues()
- Parameters:
failureValues
- Values for the specified identifier in the response JSON that indicate a failed login or account creation attempt. This parameter is required. To be counted as a failure, the value must be an exact match, including case. Each value must be unique among the success and failure values.JSON example:
"FailureValues": [ "False", "Failed" ]
- Returns:
this
-
identifier
@Stability(Stable) public CfnWebACL.ResponseInspectionJsonProperty.Builder identifier(String identifier) Sets the value ofCfnWebACL.ResponseInspectionJsonProperty.getIdentifier()
- Parameters:
identifier
- The identifier for the value to match against in the JSON. This parameter is required. The identifier must be an exact match, including case.JSON examples:
"Identifier": [ "/login/success" ]
and"Identifier": [ "/sign-up/success" ]
- Returns:
this
-
successValues
@Stability(Stable) public CfnWebACL.ResponseInspectionJsonProperty.Builder successValues(List<String> successValues) Sets the value ofCfnWebACL.ResponseInspectionJsonProperty.getSuccessValues()
- Parameters:
successValues
- Values for the specified identifier in the response JSON that indicate a successful login or account creation attempt. This parameter is required. To be counted as a success, the value must be an exact match, including case. Each value must be unique among the success and failure values.JSON example:
"SuccessValues": [ "True", "Succeeded" ]
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnWebACL.ResponseInspectionJsonProperty>
- Returns:
- a new instance of
CfnWebACL.ResponseInspectionJsonProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-