@Stability(value=Stable) public static final class CfnRuleProps.Builder extends Object implements software.amazon.jsii.Builder<CfnRuleProps>
CfnRuleProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnRuleProps |
build()
Builds the configured instance.
|
CfnRuleProps.Builder |
metricName(String metricName)
Sets the value of
CfnRuleProps.getMetricName() |
CfnRuleProps.Builder |
name(String name)
Sets the value of
CfnRuleProps.getName() |
CfnRuleProps.Builder |
predicates(IResolvable predicates)
Sets the value of
CfnRuleProps.getPredicates() |
CfnRuleProps.Builder |
predicates(List<? extends Object> predicates)
Sets the value of
CfnRuleProps.getPredicates() |
@Stability(value=Stable) public CfnRuleProps.Builder metricName(String metricName)
CfnRuleProps.getMetricName()metricName - The name of the metrics for this `Rule` . This parameter is required.
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 change MetricName after you create the Rule .this@Stability(value=Stable) public CfnRuleProps.Builder name(String name)
CfnRuleProps.getName()name - The friendly name or description for the `Rule` . This parameter is required.
You can't change the name of a Rule after you create it.this@Stability(value=Stable) public CfnRuleProps.Builder predicates(IResolvable predicates)
CfnRuleProps.getPredicates()predicates - The `Predicates` object contains one `Predicate` element for each `ByteMatchSet` , `IPSet` , or `SqlInjectionMatchSet` object that you want to include in a `Rule` .this@Stability(value=Stable) public CfnRuleProps.Builder predicates(List<? extends Object> predicates)
CfnRuleProps.getPredicates()predicates - The `Predicates` object contains one `Predicate` element for each `ByteMatchSet` , `IPSet` , or `SqlInjectionMatchSet` object that you want to include in a `Rule` .this@Stability(value=Stable) public CfnRuleProps build()
build in interface software.amazon.jsii.Builder<CfnRuleProps>CfnRulePropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.