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