Class CfnWebACL.ResponseInspectionStatusCodeProperty.Builder
java.lang.Object
software.amazon.awscdk.services.wafv2.CfnWebACL.ResponseInspectionStatusCodeProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWebACL.ResponseInspectionStatusCodeProperty>
- Enclosing interface:
- CfnWebACL.ResponseInspectionStatusCodeProperty
@Stability(Stable)
public static final class CfnWebACL.ResponseInspectionStatusCodeProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnWebACL.ResponseInspectionStatusCodeProperty>
A builder for
CfnWebACL.ResponseInspectionStatusCodeProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.failureCodes
(List<? extends Number> failureCodes) Sets the value ofCfnWebACL.ResponseInspectionStatusCodeProperty.getFailureCodes()
failureCodes
(IResolvable failureCodes) Sets the value ofCfnWebACL.ResponseInspectionStatusCodeProperty.getFailureCodes()
successCodes
(List<? extends Number> successCodes) Sets the value ofCfnWebACL.ResponseInspectionStatusCodeProperty.getSuccessCodes()
successCodes
(IResolvable successCodes) Sets the value ofCfnWebACL.ResponseInspectionStatusCodeProperty.getSuccessCodes()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
failureCodes
@Stability(Stable) public CfnWebACL.ResponseInspectionStatusCodeProperty.Builder failureCodes(IResolvable failureCodes) Sets the value ofCfnWebACL.ResponseInspectionStatusCodeProperty.getFailureCodes()
- Parameters:
failureCodes
- Status codes in the response that indicate a failed login or account creation attempt. This parameter is required. To be counted as a failure, the response status code must match one of these. Each code must be unique among the success and failure status codes.JSON example:
"FailureCodes": [ 400, 404 ]
- Returns:
this
-
failureCodes
@Stability(Stable) public CfnWebACL.ResponseInspectionStatusCodeProperty.Builder failureCodes(List<? extends Number> failureCodes) Sets the value ofCfnWebACL.ResponseInspectionStatusCodeProperty.getFailureCodes()
- Parameters:
failureCodes
- Status codes in the response that indicate a failed login or account creation attempt. This parameter is required. To be counted as a failure, the response status code must match one of these. Each code must be unique among the success and failure status codes.JSON example:
"FailureCodes": [ 400, 404 ]
- Returns:
this
-
successCodes
@Stability(Stable) public CfnWebACL.ResponseInspectionStatusCodeProperty.Builder successCodes(IResolvable successCodes) Sets the value ofCfnWebACL.ResponseInspectionStatusCodeProperty.getSuccessCodes()
- Parameters:
successCodes
- Status codes in the response that indicate a successful login or account creation attempt. This parameter is required. To be counted as a success, the response status code must match one of these. Each code must be unique among the success and failure status codes.JSON example:
"SuccessCodes": [ 200, 201 ]
- Returns:
this
-
successCodes
@Stability(Stable) public CfnWebACL.ResponseInspectionStatusCodeProperty.Builder successCodes(List<? extends Number> successCodes) Sets the value ofCfnWebACL.ResponseInspectionStatusCodeProperty.getSuccessCodes()
- Parameters:
successCodes
- Status codes in the response that indicate a successful login or account creation attempt. This parameter is required. To be counted as a success, the response status code must match one of these. Each code must be unique among the success and failure status codes.JSON example:
"SuccessCodes": [ 200, 201 ]
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnWebACL.ResponseInspectionStatusCodeProperty>
- Returns:
- a new instance of
CfnWebACL.ResponseInspectionStatusCodeProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-