public static interface AwsWafRateBasedRuleDetails.Builder extends SdkPojo, CopyableBuilder<AwsWafRateBasedRuleDetails.Builder,AwsWafRateBasedRuleDetails>
| Modifier and Type | Method and Description |
|---|---|
AwsWafRateBasedRuleDetails.Builder |
matchPredicates(AwsWafRateBasedRuleMatchPredicate... matchPredicates)
The predicates to include in the rate-based rule.
|
AwsWafRateBasedRuleDetails.Builder |
matchPredicates(Collection<AwsWafRateBasedRuleMatchPredicate> matchPredicates)
The predicates to include in the rate-based rule.
|
AwsWafRateBasedRuleDetails.Builder |
matchPredicates(Consumer<AwsWafRateBasedRuleMatchPredicate.Builder>... matchPredicates)
The predicates to include in the rate-based rule.
|
AwsWafRateBasedRuleDetails.Builder |
metricName(String metricName)
The name of the metrics for the rate-based rule.
|
AwsWafRateBasedRuleDetails.Builder |
name(String name)
The name of the rate-based rule.
|
AwsWafRateBasedRuleDetails.Builder |
rateKey(String rateKey)
The field that WAF uses to determine whether requests are likely arriving from single source and are subject
to rate monitoring.
|
AwsWafRateBasedRuleDetails.Builder |
rateLimit(Long rateLimit)
The maximum number of requests that have an identical value for the field specified in
RateKey
that are allowed within a five-minute period. |
AwsWafRateBasedRuleDetails.Builder |
ruleId(String ruleId)
The unique identifier for the rate-based rule.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildAwsWafRateBasedRuleDetails.Builder metricName(String metricName)
The name of the metrics for the rate-based rule.
metricName - The name of the metrics for the rate-based rule.AwsWafRateBasedRuleDetails.Builder name(String name)
The name of the rate-based rule.
name - The name of the rate-based rule.AwsWafRateBasedRuleDetails.Builder rateKey(String rateKey)
The field that WAF uses to determine whether requests are likely arriving from single source and are subject to rate monitoring.
rateKey - The field that WAF uses to determine whether requests are likely arriving from single source and are
subject to rate monitoring.AwsWafRateBasedRuleDetails.Builder rateLimit(Long rateLimit)
The maximum number of requests that have an identical value for the field specified in RateKey
that are allowed within a five-minute period. If the number of requests exceeds RateLimit and
the other predicates specified in the rule are met, WAF triggers the action for the rule.
rateLimit - The maximum number of requests that have an identical value for the field specified in
RateKey that are allowed within a five-minute period. If the number of requests exceeds
RateLimit and the other predicates specified in the rule are met, WAF triggers the action
for the rule.AwsWafRateBasedRuleDetails.Builder ruleId(String ruleId)
The unique identifier for the rate-based rule.
ruleId - The unique identifier for the rate-based rule.AwsWafRateBasedRuleDetails.Builder matchPredicates(Collection<AwsWafRateBasedRuleMatchPredicate> matchPredicates)
The predicates to include in the rate-based rule.
matchPredicates - The predicates to include in the rate-based rule.AwsWafRateBasedRuleDetails.Builder matchPredicates(AwsWafRateBasedRuleMatchPredicate... matchPredicates)
The predicates to include in the rate-based rule.
matchPredicates - The predicates to include in the rate-based rule.AwsWafRateBasedRuleDetails.Builder matchPredicates(Consumer<AwsWafRateBasedRuleMatchPredicate.Builder>... matchPredicates)
The predicates to include in the rate-based rule.
This is a convenience method that creates an instance of theAwsWafRateBasedRuleMatchPredicate.Builder avoiding
the need to create one manually via
AwsWafRateBasedRuleMatchPredicate.builder().
When the Consumer completes,
SdkBuilder.build()
is called immediately and its result is passed to #matchPredicates(List.
matchPredicates - a consumer that will call methods on
AwsWafRateBasedRuleMatchPredicate.Builder#matchPredicates(java.util.Collection) Copyright © 2023. All rights reserved.