Class CfnWebACL.OverrideActionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.wafv2.CfnWebACL.OverrideActionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWebACL.OverrideActionProperty>
- Enclosing interface:
- CfnWebACL.OverrideActionProperty
@Stability(Stable)
public static final class CfnWebACL.OverrideActionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnWebACL.OverrideActionProperty>
A builder for
CfnWebACL.OverrideActionProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnWebACL.OverrideActionProperty.getCount()
Sets the value ofCfnWebACL.OverrideActionProperty.getNone()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
count
Sets the value ofCfnWebACL.OverrideActionProperty.getCount()
- Parameters:
count
- Override the rule group evaluation result to count only.This option is usually set to none. It does not affect how the rules in the rule group are evaluated. If you want the rules in the rule group to only count matches, do not use this and instead use the rule action override option, with
Count
action, in your rule group reference statement settings.- Returns:
this
-
none
Sets the value ofCfnWebACL.OverrideActionProperty.getNone()
- Parameters:
none
- Don't override the rule group evaluation result. This is the most common setting.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnWebACL.OverrideActionProperty>
- Returns:
- a new instance of
CfnWebACL.OverrideActionProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-