Interface UpdateRateBasedRuleRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<UpdateRateBasedRuleRequest.Builder,
,UpdateRateBasedRuleRequest> SdkBuilder<UpdateRateBasedRuleRequest.Builder,
,UpdateRateBasedRuleRequest> SdkPojo
,SdkRequest.Builder
,WafRequest.Builder
- Enclosing class:
UpdateRateBasedRuleRequest
-
Method Summary
Modifier and TypeMethodDescriptionchangeToken
(String changeToken) The value returned by the most recent call to GetChangeToken.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The maximum number of requests, which have an identical value in the field specified by theRateKey
, allowed in a five-minute period.TheRuleId
of theRateBasedRule
that you want to update.updates
(Collection<RuleUpdate> updates) An array ofRuleUpdate
objects that you want to insert into or delete from a RateBasedRule.updates
(Consumer<RuleUpdate.Builder>... updates) An array ofRuleUpdate
objects that you want to insert into or delete from a RateBasedRule.updates
(RuleUpdate... updates) An array ofRuleUpdate
objects that you want to insert into or delete from a RateBasedRule.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
-
ruleId
The
RuleId
of theRateBasedRule
that you want to update.RuleId
is returned byCreateRateBasedRule
and by ListRateBasedRules.- Parameters:
ruleId
- TheRuleId
of theRateBasedRule
that you want to update.RuleId
is returned byCreateRateBasedRule
and by ListRateBasedRules.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
changeToken
The value returned by the most recent call to GetChangeToken.
- Parameters:
changeToken
- The value returned by the most recent call to GetChangeToken.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updates
An array of
RuleUpdate
objects that you want to insert into or delete from a RateBasedRule.- Parameters:
updates
- An array ofRuleUpdate
objects that you want to insert into or delete from a RateBasedRule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updates
An array of
RuleUpdate
objects that you want to insert into or delete from a RateBasedRule.- Parameters:
updates
- An array ofRuleUpdate
objects that you want to insert into or delete from a RateBasedRule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updates
An array of
This is a convenience method that creates an instance of theRuleUpdate
objects that you want to insert into or delete from a RateBasedRule.RuleUpdate.Builder
avoiding the need to create one manually viaRuleUpdate.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toupdates(List<RuleUpdate>)
.- Parameters:
updates
- a consumer that will call methods onRuleUpdate.Builder
- 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 specified by the
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 specified by theRateKey
, 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.
-
overrideConfiguration
UpdateRateBasedRuleRequest.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
UpdateRateBasedRuleRequest.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.
-