public static final class CfnWebACL.DefaultActionProperty.Builder
extends java.lang.Object
CfnWebACL.DefaultActionProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnWebACL.DefaultActionProperty.Builder |
allow(CfnWebACL.AllowActionProperty allow)
Sets the value of
CfnWebACL.DefaultActionProperty.getAllow() |
CfnWebACL.DefaultActionProperty.Builder |
allow(IResolvable allow)
Sets the value of
CfnWebACL.DefaultActionProperty.getAllow() |
CfnWebACL.DefaultActionProperty.Builder |
block(CfnWebACL.BlockActionProperty block)
Sets the value of
CfnWebACL.DefaultActionProperty.getBlock() |
CfnWebACL.DefaultActionProperty.Builder |
block(IResolvable block)
Sets the value of
CfnWebACL.DefaultActionProperty.getBlock() |
CfnWebACL.DefaultActionProperty |
build()
Builds the configured instance.
|
public CfnWebACL.DefaultActionProperty.Builder allow(IResolvable allow)
CfnWebACL.DefaultActionProperty.getAllow()
allow
- Specifies that AWS WAF should allow requests by default.this
public CfnWebACL.DefaultActionProperty.Builder allow(CfnWebACL.AllowActionProperty allow)
CfnWebACL.DefaultActionProperty.getAllow()
allow
- Specifies that AWS WAF should allow requests by default.this
public CfnWebACL.DefaultActionProperty.Builder block(IResolvable block)
CfnWebACL.DefaultActionProperty.getBlock()
block
- Specifies that AWS WAF should block requests by default.this
public CfnWebACL.DefaultActionProperty.Builder block(CfnWebACL.BlockActionProperty block)
CfnWebACL.DefaultActionProperty.getBlock()
block
- Specifies that AWS WAF should block requests by default.this
public CfnWebACL.DefaultActionProperty build()
CfnWebACL.DefaultActionProperty
java.lang.NullPointerException
- if any required attribute was not provided