Interface RateBasedRule.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<RateBasedRule.Builder,RateBasedRule>,SdkBuilder<RateBasedRule.Builder,RateBasedRule>,SdkPojo
- Enclosing class:
- RateBasedRule
public static interface RateBasedRule.Builder extends SdkPojo, CopyableBuilder<RateBasedRule.Builder,RateBasedRule>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RateBasedRule.BuildermatchPredicates(Collection<Predicate> matchPredicates)ThePredicatesobject contains onePredicateelement for each ByteMatchSet, IPSet, or SqlInjectionMatchSet object that you want to include in aRateBasedRule.RateBasedRule.BuildermatchPredicates(Consumer<Predicate.Builder>... matchPredicates)ThePredicatesobject contains onePredicateelement for each ByteMatchSet, IPSet, or SqlInjectionMatchSet object that you want to include in aRateBasedRule.RateBasedRule.BuildermatchPredicates(Predicate... matchPredicates)ThePredicatesobject contains onePredicateelement for each ByteMatchSet, IPSet, or SqlInjectionMatchSet object that you want to include in aRateBasedRule.RateBasedRule.BuildermetricName(String metricName)A friendly name or description for the metrics for aRateBasedRule.RateBasedRule.Buildername(String name)A friendly name or description for aRateBasedRule.RateBasedRule.BuilderrateKey(String rateKey)The field that AWS WAF uses to determine if requests are likely arriving from single source and thus subject to rate monitoring.RateBasedRule.BuilderrateKey(RateKey rateKey)The field that AWS WAF uses to determine if requests are likely arriving from single source and thus subject to rate monitoring.RateBasedRule.BuilderrateLimit(Long rateLimit)The maximum number of requests, which have an identical value in the field specified by theRateKey, allowed in a five-minute period.RateBasedRule.BuilderruleId(String ruleId)A unique identifier for aRateBasedRule.-
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
RateBasedRule.Builder ruleId(String ruleId)
A unique identifier for a
RateBasedRule. You useRuleIdto get more information about aRateBasedRule(see GetRateBasedRule), update aRateBasedRule(see UpdateRateBasedRule), insert aRateBasedRuleinto aWebACLor delete one from aWebACL(see UpdateWebACL), or delete aRateBasedRulefrom AWS WAF (see DeleteRateBasedRule).- Parameters:
ruleId- A unique identifier for aRateBasedRule. You useRuleIdto get more information about aRateBasedRule(see GetRateBasedRule), update aRateBasedRule(see UpdateRateBasedRule), insert aRateBasedRuleinto aWebACLor delete one from aWebACL(see UpdateWebACL), or delete aRateBasedRulefrom AWS WAF (see DeleteRateBasedRule).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
RateBasedRule.Builder name(String name)
A friendly name or description for a
RateBasedRule. You can't change the name of aRateBasedRuleafter you create it.- Parameters:
name- A friendly name or description for aRateBasedRule. You can't change the name of aRateBasedRuleafter you create it.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricName
RateBasedRule.Builder metricName(String metricName)
A friendly name or description for the metrics for a
RateBasedRule. 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 the name of the metric after you create theRateBasedRule.- Parameters:
metricName- A friendly name or description for the metrics for aRateBasedRule. 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 the name of the metric after you create theRateBasedRule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
matchPredicates
RateBasedRule.Builder matchPredicates(Collection<Predicate> matchPredicates)
The
Predicatesobject contains onePredicateelement for each ByteMatchSet, IPSet, or SqlInjectionMatchSet object that you want to include in aRateBasedRule.- Parameters:
matchPredicates- ThePredicatesobject contains onePredicateelement for each ByteMatchSet, IPSet, or SqlInjectionMatchSet object that you want to include in aRateBasedRule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
matchPredicates
RateBasedRule.Builder matchPredicates(Predicate... matchPredicates)
The
Predicatesobject contains onePredicateelement for each ByteMatchSet, IPSet, or SqlInjectionMatchSet object that you want to include in aRateBasedRule.- Parameters:
matchPredicates- ThePredicatesobject contains onePredicateelement for each ByteMatchSet, IPSet, or SqlInjectionMatchSet object that you want to include in aRateBasedRule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
matchPredicates
RateBasedRule.Builder matchPredicates(Consumer<Predicate.Builder>... matchPredicates)
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 aRateBasedRule.Predicate.Builderavoiding the need to create one manually viaPredicate.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#matchPredicates(List.) - Parameters:
matchPredicates- 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:
#matchPredicates(java.util.Collection)
-
rateKey
RateBasedRule.Builder rateKey(String rateKey)
The field that AWS WAF uses to determine if requests are likely arriving from single source and thus subject to rate monitoring. The only valid value for
RateKeyisIP.IPindicates that requests arriving from the same IP address are subject to theRateLimitthat is specified in theRateBasedRule.- Parameters:
rateKey- The field that AWS WAF uses to determine if requests are likely arriving from single source and thus subject to rate monitoring. The only valid value forRateKeyisIP.IPindicates that requests arriving from the same IP address are subject to theRateLimitthat is specified in theRateBasedRule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
RateKey,RateKey
-
rateKey
RateBasedRule.Builder rateKey(RateKey rateKey)
The field that AWS WAF uses to determine if requests are likely arriving from single source and thus subject to rate monitoring. The only valid value for
RateKeyisIP.IPindicates that requests arriving from the same IP address are subject to theRateLimitthat is specified in theRateBasedRule.- Parameters:
rateKey- The field that AWS WAF uses to determine if requests are likely arriving from single source and thus subject to rate monitoring. The only valid value forRateKeyisIP.IPindicates that requests arriving from the same IP address are subject to theRateLimitthat is specified in theRateBasedRule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
RateKey,RateKey
-
rateLimit
RateBasedRule.Builder rateLimit(Long rateLimit)
The maximum number of requests, which have an identical value in the field specified by the
RateKey, allowed in a five-minute period. If the number of requests exceeds theRateLimitand the other predicates specified in the rule are also met, AWS WAF triggers the action that is specified for this rule.- Parameters:
rateLimit- The maximum number of requests, which have an identical value in the field specified by theRateKey, allowed in a five-minute period. If the number of requests exceeds theRateLimitand the other predicates specified in the rule are also met, AWS WAF triggers the action that is specified for this rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-