CopyableBuilder<Rule.Builder,Rule>, SdkBuilder<Rule.Builder,Rule>public static interface Rule.Builder extends CopyableBuilder<Rule.Builder,Rule>
| Modifier and Type | Method | Description |
|---|---|---|
Rule.Builder |
metricName(String metricName) |
A friendly name or description for the metrics for this
Rule. |
Rule.Builder |
name(String name) |
The friendly name or description for the
Rule. |
Rule.Builder |
predicates(Collection<Predicate> predicates) |
The
Predicates object contains one Predicate element for each ByteMatchSet,
IPSet, or SqlInjectionMatchSet object that you want to include in a Rule. |
Rule.Builder |
predicates(Predicate... predicates) |
The
Predicates object contains one Predicate element for each ByteMatchSet,
IPSet, or SqlInjectionMatchSet object that you want to include in a Rule. |
Rule.Builder |
ruleId(String ruleId) |
A unique identifier for a
Rule. |
copyapply, buildRule.Builder ruleId(String ruleId)
A unique identifier for a Rule. You use RuleId to get more information about a
Rule (see GetRule), update a Rule (see UpdateRule), insert a
Rule into a WebACL or delete a one from a WebACL (see
UpdateWebACL), or delete a Rule from AWS WAF (see DeleteRule).
RuleId is returned by CreateRule and by ListRules.
ruleId - A unique identifier for a Rule. You use RuleId to get more information about
a Rule (see GetRule), update a Rule (see UpdateRule), insert a
Rule into a WebACL or delete a one from a WebACL (see
UpdateWebACL), or delete a Rule from AWS WAF (see DeleteRule).
RuleId is returned by CreateRule and by ListRules.
Rule.Builder name(String name)
The friendly name or description for the Rule. You can't change the name of a Rule
after you create it.
name - The friendly name or description for the Rule. You can't change the name of a
Rule after you create it.Rule.Builder metricName(String metricName)
A friendly name or description for the metrics for this Rule. The name can contain only
alphanumeric characters (A-Z, a-z, 0-9); the name can't contain whitespace. You can't change
MetricName after you create the Rule.
metricName - A friendly name or description for the metrics for this Rule. The name can contain only
alphanumeric characters (A-Z, a-z, 0-9); the name can't contain whitespace. You can't change
MetricName after you create the Rule.Rule.Builder predicates(Collection<Predicate> predicates)
The Predicates object contains one Predicate element for each ByteMatchSet,
IPSet, or SqlInjectionMatchSet object that you want to include in a Rule.
predicates - The Predicates object contains one Predicate element for each
ByteMatchSet, IPSet, or SqlInjectionMatchSet object that you want to include in a
Rule.Rule.Builder predicates(Predicate... predicates)
The Predicates object contains one Predicate element for each ByteMatchSet,
IPSet, or SqlInjectionMatchSet object that you want to include in a Rule.
NOTE: This method appends the values to the existing list (if any). Use
#setPredicates(java.util.Collection) or #withPredicates(java.util.Collection) if you want to
override the existing values.
predicates - The Predicates object contains one Predicate element for each
ByteMatchSet, IPSet, or SqlInjectionMatchSet object that you want to include in a
Rule.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.