Class CfnWebACL.RuleActionOverrideProperty.Builder
java.lang.Object
software.amazon.awscdk.services.wafv2.CfnWebACL.RuleActionOverrideProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWebACL.RuleActionOverrideProperty>
- Enclosing interface:
- CfnWebACL.RuleActionOverrideProperty
@Stability(Stable)
public static final class CfnWebACL.RuleActionOverrideProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnWebACL.RuleActionOverrideProperty>
A builder for
CfnWebACL.RuleActionOverrideProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionactionToUse
(IResolvable actionToUse) Sets the value ofCfnWebACL.RuleActionOverrideProperty.getActionToUse()
actionToUse
(CfnWebACL.RuleActionProperty actionToUse) Sets the value ofCfnWebACL.RuleActionOverrideProperty.getActionToUse()
build()
Builds the configured instance.Sets the value ofCfnWebACL.RuleActionOverrideProperty.getName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
actionToUse
@Stability(Stable) public CfnWebACL.RuleActionOverrideProperty.Builder actionToUse(IResolvable actionToUse) Sets the value ofCfnWebACL.RuleActionOverrideProperty.getActionToUse()
- Parameters:
actionToUse
- The override action to use, in place of the configured action of the rule in the rule group. This parameter is required.- Returns:
this
-
actionToUse
@Stability(Stable) public CfnWebACL.RuleActionOverrideProperty.Builder actionToUse(CfnWebACL.RuleActionProperty actionToUse) Sets the value ofCfnWebACL.RuleActionOverrideProperty.getActionToUse()
- Parameters:
actionToUse
- The override action to use, in place of the configured action of the rule in the rule group. This parameter is required.- Returns:
this
-
name
Sets the value ofCfnWebACL.RuleActionOverrideProperty.getName()
- Parameters:
name
- The name of the rule to override. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnWebACL.RuleActionOverrideProperty>
- Returns:
- a new instance of
CfnWebACL.RuleActionOverrideProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-