Class CfnRuleMixinProps.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.wafregional.mixins.CfnRuleMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRuleMixinProps>
- Enclosing interface:
CfnRuleMixinProps
@Stability(Stable)
public static final class CfnRuleMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRuleMixinProps>
A builder for
CfnRuleMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.metricName(String metricName) Sets the value ofCfnRuleMixinProps.getMetricName()Sets the value ofCfnRuleMixinProps.getName()predicates(List<? extends Object> predicates) Sets the value ofCfnRuleMixinProps.getPredicates()predicates(IResolvable predicates) Sets the value ofCfnRuleMixinProps.getPredicates()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
metricName
Sets the value ofCfnRuleMixinProps.getMetricName()- Parameters:
metricName- A name for the metrics for thisRule. The name can contain only alphanumeric characters (A-Z, a-z, 0-9), with maximum length 128 and minimum length one. It can't contain whitespace or metric names reserved for AWS WAF, including "All" and "Default_Action." You can't changeMetricNameafter you create theRule.- Returns:
this
-
name
Sets the value ofCfnRuleMixinProps.getName()- Parameters:
name- The friendly name or description for theRule. You can't change the name of aRuleafter you create it.- Returns:
this
-
predicates
Sets the value ofCfnRuleMixinProps.getPredicates()- Parameters:
predicates- ThePredicatesobject contains onePredicateelement for eachByteMatchSet,IPSet, orSqlInjectionMatchSetobject that you want to include in aRule.- Returns:
this
-
predicates
Sets the value ofCfnRuleMixinProps.getPredicates()- Parameters:
predicates- ThePredicatesobject contains onePredicateelement for eachByteMatchSet,IPSet, orSqlInjectionMatchSetobject that you want to include in aRule.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRuleMixinProps>- Returns:
- a new instance of
CfnRuleMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-