Interface Rule.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Rule.Builder,Rule>,SdkBuilder<Rule.Builder,Rule>,SdkPojo
- Enclosing class:
- Rule
public static interface Rule.Builder extends SdkPojo, CopyableBuilder<Rule.Builder,Rule>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Rule.BuildermetricName(String metricName)A friendly name or description for the metrics for thisRule.Rule.Buildername(String name)The friendly name or description for theRule.Rule.Builderpredicates(Collection<Predicate> predicates)ThePredicatesobject contains onePredicateelement for each ByteMatchSet, IPSet, or SqlInjectionMatchSet object that you want to include in aRule.Rule.Builderpredicates(Consumer<Predicate.Builder>... predicates)ThePredicatesobject contains onePredicateelement for each ByteMatchSet, IPSet, or SqlInjectionMatchSet object that you want to include in aRule.Rule.Builderpredicates(Predicate... predicates)ThePredicatesobject contains onePredicateelement for each ByteMatchSet, IPSet, or SqlInjectionMatchSet object that you want to include in aRule.Rule.BuilderruleId(String ruleId)A unique identifier for aRule.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
ruleId
Rule.Builder ruleId(String ruleId)
A unique identifier for a
Rule. You useRuleIdto get more information about aRule(see GetRule), update aRule(see UpdateRule), insert aRuleinto aWebACLor delete a one from aWebACL(see UpdateWebACL), or delete aRulefrom AWS WAF (see DeleteRule).RuleIdis returned by CreateRule and by ListRules.- Parameters:
ruleId- A unique identifier for aRule. You useRuleIdto get more information about aRule(see GetRule), update aRule(see UpdateRule), insert aRuleinto aWebACLor delete a one from aWebACL(see UpdateWebACL), or delete aRulefrom AWS WAF (see DeleteRule).RuleIdis returned by CreateRule and by ListRules.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
Rule.Builder name(String name)
The friendly name or description for the
Rule. You can't change the name of aRuleafter you create it.- Parameters:
name- The friendly name or description for theRule. You can't change the name of aRuleafter you create it.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricName
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), 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.- Parameters:
metricName- A friendly name or description 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:
- Returns a reference to this object so that method calls can be chained together.
-
predicates
Rule.Builder predicates(Collection<Predicate> predicates)
The
Predicatesobject contains onePredicateelement for each ByteMatchSet, IPSet, or SqlInjectionMatchSet object that you want to include in aRule.- Parameters:
predicates- ThePredicatesobject contains onePredicateelement for each ByteMatchSet, IPSet, or SqlInjectionMatchSet object that you want to include in aRule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
predicates
Rule.Builder predicates(Predicate... predicates)
The
Predicatesobject contains onePredicateelement for each ByteMatchSet, IPSet, or SqlInjectionMatchSet object that you want to include in aRule.- Parameters:
predicates- ThePredicatesobject contains onePredicateelement for each ByteMatchSet, IPSet, or SqlInjectionMatchSet object that you want to include in aRule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
predicates
Rule.Builder predicates(Consumer<Predicate.Builder>... predicates)
The
This is a convenience method that creates an instance of thePredicatesobject contains onePredicateelement for each ByteMatchSet, IPSet, or SqlInjectionMatchSet object that you want to include in aRule.Predicate.Builderavoiding the need to create one manually viaPredicate.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#predicates(List.) - Parameters:
predicates- a consumer that will call methods onPredicate.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#predicates(java.util.Collection)
-
-