Class CfnWebACLPropsMixin.RuleProperty.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.wafregional.mixins.CfnWebACLPropsMixin.RuleProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWebACLPropsMixin.RuleProperty>
- Enclosing interface:
CfnWebACLPropsMixin.RuleProperty
@Stability(Stable)
public static final class CfnWebACLPropsMixin.RuleProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnWebACLPropsMixin.RuleProperty>
A builder for
CfnWebACLPropsMixin.RuleProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaction(IResolvable action) Sets the value ofCfnWebACLPropsMixin.RuleProperty.getAction()Sets the value ofCfnWebACLPropsMixin.RuleProperty.getAction()build()Builds the configured instance.Sets the value ofCfnWebACLPropsMixin.RuleProperty.getPriority()Sets the value ofCfnWebACLPropsMixin.RuleProperty.getRuleId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
action
Sets the value ofCfnWebACLPropsMixin.RuleProperty.getAction()- Parameters:
action- The action that AWS WAF takes when a web request matches all conditions in the rule, such as allow, block, or count the request.- Returns:
this
-
action
@Stability(Stable) public CfnWebACLPropsMixin.RuleProperty.Builder action(CfnWebACLPropsMixin.ActionProperty action) Sets the value ofCfnWebACLPropsMixin.RuleProperty.getAction()- Parameters:
action- The action that AWS WAF takes when a web request matches all conditions in the rule, such as allow, block, or count the request.- Returns:
this
-
priority
Sets the value ofCfnWebACLPropsMixin.RuleProperty.getPriority()- Parameters:
priority- The order in which AWS WAF evaluates the rules in a web ACL. AWS WAF evaluates rules with a lower value before rules with a higher value. The value must be a unique integer. If you have multiple rules in a web ACL, the priority numbers do not need to be consecutive.- Returns:
this
-
ruleId
Sets the value ofCfnWebACLPropsMixin.RuleProperty.getRuleId()- Parameters:
ruleId- The ID of an AWS WAF Regional rule to associate with a web ACL.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnWebACLPropsMixin.RuleProperty>- Returns:
- a new instance of
CfnWebACLPropsMixin.RuleProperty - Throws:
NullPointerException- if any required attribute was not provided
-