Interface CreateRateBasedRuleRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateRateBasedRuleRequest.Builder,
,CreateRateBasedRuleRequest> SdkBuilder<CreateRateBasedRuleRequest.Builder,
,CreateRateBasedRuleRequest> SdkPojo
,SdkRequest.Builder
,WafRequest.Builder
- Enclosing class:
CreateRateBasedRuleRequest
-
Method Summary
Modifier and TypeMethodDescriptionchangeToken
(String changeToken) TheChangeToken
that you used to submit theCreateRateBasedRule
request.metricName
(String metricName) A friendly name or description for the metrics for thisRateBasedRule
.A friendly name or description of the RateBasedRule.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The field that AWS WAF uses to determine if requests are likely arriving from a single source and thus subject to rate monitoring.The field that AWS WAF uses to determine if requests are likely arriving from a single source and thus subject to rate monitoring.The maximum number of requests, which have an identical value in the field that is specified byRateKey
, allowed in a five-minute period.tags
(Collection<Tag> tags) tags
(Consumer<Tag.Builder>... tags) This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
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
Methods inherited from interface software.amazon.awssdk.services.waf.model.WafRequest.Builder
build
-
Method Details
-
name
A friendly name or description of the RateBasedRule. You can't change the name of a
RateBasedRule
after you create it.- Parameters:
name
- A friendly name or description of the RateBasedRule. You can't change the name of aRateBasedRule
after you create it.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricName
A friendly name or description for the metrics for this
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 thisRateBasedRule
. 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.
-
rateKey
The field that AWS WAF uses to determine if requests are likely arriving from a single source and thus subject to rate monitoring. The only valid value for
RateKey
isIP
.IP
indicates that requests that arrive from the same IP address are subject to theRateLimit
that is specified in theRateBasedRule
.- Parameters:
rateKey
- The field that AWS WAF uses to determine if requests are likely arriving from a single source and thus subject to rate monitoring. The only valid value forRateKey
isIP
.IP
indicates that requests that arrive from the same IP address are subject to theRateLimit
that is specified in theRateBasedRule
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
rateKey
The field that AWS WAF uses to determine if requests are likely arriving from a single source and thus subject to rate monitoring. The only valid value for
RateKey
isIP
.IP
indicates that requests that arrive from the same IP address are subject to theRateLimit
that is specified in theRateBasedRule
.- Parameters:
rateKey
- The field that AWS WAF uses to determine if requests are likely arriving from a single source and thus subject to rate monitoring. The only valid value forRateKey
isIP
.IP
indicates that requests that arrive from the same IP address are subject to theRateLimit
that is specified in theRateBasedRule
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
rateLimit
The maximum number of requests, which have an identical value in the field that is specified by
RateKey
, allowed in a five-minute period. If the number of requests exceeds theRateLimit
and 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 that is specified byRateKey
, allowed in a five-minute period. If the number of requests exceeds theRateLimit
and 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.
-
changeToken
The
ChangeToken
that you used to submit theCreateRateBasedRule
request. You can also use this value to query the status of the request. For more information, see GetChangeTokenStatus.- Parameters:
changeToken
- TheChangeToken
that you used to submit theCreateRateBasedRule
request. You can also use this value to query the status of the request. For more information, see GetChangeTokenStatus.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
- Parameters:
tags
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
- Parameters:
tags
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateRateBasedRuleRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateRateBasedRuleRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-