public static final class CfnRuleProps.Builder
extends java.lang.Object
CfnRuleProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnRuleProps |
build()
Builds the configured instance.
|
CfnRuleProps.Builder |
metricName(java.lang.String metricName)
Sets the value of
CfnRuleProps.getMetricName() |
CfnRuleProps.Builder |
name(java.lang.String name)
Sets the value of
CfnRuleProps.getName() |
CfnRuleProps.Builder |
predicates(IResolvable predicates)
Sets the value of
CfnRuleProps.getPredicates() |
CfnRuleProps.Builder |
predicates(java.util.List<? extends java.lang.Object> predicates)
Sets the value of
CfnRuleProps.getPredicates() |
public CfnRuleProps.Builder metricName(java.lang.String metricName)
CfnRuleProps.getMetricName()
metricName
- A name for 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
public CfnRuleProps.Builder name(java.lang.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
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
public CfnRuleProps.Builder predicates(java.util.List<? extends java.lang.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
public CfnRuleProps build()
CfnRuleProps
java.lang.NullPointerException
- if any required attribute was not provided