Class CfnWebACL.ChallengeActionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.wafv2.CfnWebACL.ChallengeActionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWebACL.ChallengeActionProperty>
- Enclosing interface:
CfnWebACL.ChallengeActionProperty
@Stability(Stable)
public static final class CfnWebACL.ChallengeActionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnWebACL.ChallengeActionProperty>
A builder for
CfnWebACL.ChallengeActionProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.customRequestHandling
(IResolvable customRequestHandling) Sets the value ofCfnWebACL.ChallengeActionProperty.getCustomRequestHandling()
customRequestHandling
(CfnWebACL.CustomRequestHandlingProperty customRequestHandling) Sets the value ofCfnWebACL.ChallengeActionProperty.getCustomRequestHandling()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
customRequestHandling
@Stability(Stable) public CfnWebACL.ChallengeActionProperty.Builder customRequestHandling(IResolvable customRequestHandling) Sets the value ofCfnWebACL.ChallengeActionProperty.getCustomRequestHandling()
- Parameters:
customRequestHandling
- Defines custom handling for the web request, used when the challenge inspection determines that the request's token is valid and unexpired. For information about customizing web requests and responses, see Customizing web requests and responses in AWS WAF in the AWS WAF developer guide .- Returns:
this
-
customRequestHandling
@Stability(Stable) public CfnWebACL.ChallengeActionProperty.Builder customRequestHandling(CfnWebACL.CustomRequestHandlingProperty customRequestHandling) Sets the value ofCfnWebACL.ChallengeActionProperty.getCustomRequestHandling()
- Parameters:
customRequestHandling
- Defines custom handling for the web request, used when the challenge inspection determines that the request's token is valid and unexpired. For information about customizing web requests and responses, see Customizing web requests and responses in AWS WAF in the AWS WAF developer guide .- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnWebACL.ChallengeActionProperty>
- Returns:
- a new instance of
CfnWebACL.ChallengeActionProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-