Class CfnWebACL.BlockActionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.wafv2.CfnWebACL.BlockActionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWebACL.BlockActionProperty>
- Enclosing interface:
CfnWebACL.BlockActionProperty
@Stability(Stable)
public static final class CfnWebACL.BlockActionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnWebACL.BlockActionProperty>
A builder for
CfnWebACL.BlockActionProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.customResponse
(IResolvable customResponse) Sets the value ofCfnWebACL.BlockActionProperty.getCustomResponse()
customResponse
(CfnWebACL.CustomResponseProperty customResponse) Sets the value ofCfnWebACL.BlockActionProperty.getCustomResponse()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
customResponse
@Stability(Stable) public CfnWebACL.BlockActionProperty.Builder customResponse(IResolvable customResponse) Sets the value ofCfnWebACL.BlockActionProperty.getCustomResponse()
- Parameters:
customResponse
- Defines a custom response for the web request. 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
-
customResponse
@Stability(Stable) public CfnWebACL.BlockActionProperty.Builder customResponse(CfnWebACL.CustomResponseProperty customResponse) Sets the value ofCfnWebACL.BlockActionProperty.getCustomResponse()
- Parameters:
customResponse
- Defines a custom response for the web request. 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.BlockActionProperty>
- Returns:
- a new instance of
CfnWebACL.BlockActionProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-