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