Class CfnWebACLPropsMixin.DefaultActionProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.wafv2.CfnWebACLPropsMixin.DefaultActionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWebACLPropsMixin.DefaultActionProperty>
- Enclosing interface:
CfnWebACLPropsMixin.DefaultActionProperty
@Stability(Stable)
public static final class CfnWebACLPropsMixin.DefaultActionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnWebACLPropsMixin.DefaultActionProperty>
A builder for
CfnWebACLPropsMixin.DefaultActionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnWebACLPropsMixin.DefaultActionProperty.getAllow()allow(IResolvable allow) Sets the value ofCfnWebACLPropsMixin.DefaultActionProperty.getAllow()Sets the value ofCfnWebACLPropsMixin.DefaultActionProperty.getBlock()block(IResolvable block) Sets the value ofCfnWebACLPropsMixin.DefaultActionProperty.getBlock()build()Builds the configured instance.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
allow
@Stability(Stable) public CfnWebACLPropsMixin.DefaultActionProperty.Builder allow(IResolvable allow) Sets the value ofCfnWebACLPropsMixin.DefaultActionProperty.getAllow()- Parameters:
allow- Specifies that AWS WAF should allow requests by default.- Returns:
this
-
allow
@Stability(Stable) public CfnWebACLPropsMixin.DefaultActionProperty.Builder allow(CfnWebACLPropsMixin.AllowActionProperty allow) Sets the value ofCfnWebACLPropsMixin.DefaultActionProperty.getAllow()- Parameters:
allow- Specifies that AWS WAF should allow requests by default.- Returns:
this
-
block
@Stability(Stable) public CfnWebACLPropsMixin.DefaultActionProperty.Builder block(IResolvable block) Sets the value ofCfnWebACLPropsMixin.DefaultActionProperty.getBlock()- Parameters:
block- Specifies that AWS WAF should block requests by default.- Returns:
this
-
block
@Stability(Stable) public CfnWebACLPropsMixin.DefaultActionProperty.Builder block(CfnWebACLPropsMixin.BlockActionProperty block) Sets the value ofCfnWebACLPropsMixin.DefaultActionProperty.getBlock()- Parameters:
block- Specifies that AWS WAF should block requests by default.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnWebACLPropsMixin.DefaultActionProperty>- Returns:
- a new instance of
CfnWebACLPropsMixin.DefaultActionProperty - Throws:
NullPointerException- if any required attribute was not provided
-