Class CfnWebACL.ResponseInspectionHeaderProperty.Builder
java.lang.Object
software.amazon.awscdk.services.wafv2.CfnWebACL.ResponseInspectionHeaderProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWebACL.ResponseInspectionHeaderProperty>
- Enclosing interface:
CfnWebACL.ResponseInspectionHeaderProperty
@Stability(Stable)
public static final class CfnWebACL.ResponseInspectionHeaderProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnWebACL.ResponseInspectionHeaderProperty>
A builder for
CfnWebACL.ResponseInspectionHeaderProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.failureValues(List<String> failureValues) Sets the value ofCfnWebACL.ResponseInspectionHeaderProperty.getFailureValues()Sets the value ofCfnWebACL.ResponseInspectionHeaderProperty.getName()successValues(List<String> successValues) Sets the value ofCfnWebACL.ResponseInspectionHeaderProperty.getSuccessValues()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
failureValues
@Stability(Stable) public CfnWebACL.ResponseInspectionHeaderProperty.Builder failureValues(List<String> failureValues) Sets the value ofCfnWebACL.ResponseInspectionHeaderProperty.getFailureValues()- Parameters:
failureValues- Values in the response header with the specified name 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 examples:
"FailureValues": [ "LoginFailed", "Failed login" ]and"FailureValues": [ "AccountCreationFailed" ]- Returns:
this
-
name
Sets the value ofCfnWebACL.ResponseInspectionHeaderProperty.getName()- Parameters:
name- The name of the header to match against. The name must be an exact match, including case. This parameter is required. JSON example:"Name": [ "RequestResult" ]- Returns:
this
-
successValues
@Stability(Stable) public CfnWebACL.ResponseInspectionHeaderProperty.Builder successValues(List<String> successValues) Sets the value ofCfnWebACL.ResponseInspectionHeaderProperty.getSuccessValues()- Parameters:
successValues- Values in the response header with the specified name 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 examples:
"SuccessValues": [ "LoginPassed", "Successful login" ]and"SuccessValues": [ "AccountCreated", "Successful account creation" ]- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnWebACL.ResponseInspectionHeaderProperty>- Returns:
- a new instance of
CfnWebACL.ResponseInspectionHeaderProperty - Throws:
NullPointerException- if any required attribute was not provided
-