Interface CreateRateBasedRuleRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateRateBasedRuleRequest.Builder,CreateRateBasedRuleRequest>,SdkBuilder<CreateRateBasedRuleRequest.Builder,CreateRateBasedRuleRequest>,SdkPojo,SdkRequest.Builder,WafRequest.Builder
- Enclosing class:
- CreateRateBasedRuleRequest
public static interface CreateRateBasedRuleRequest.Builder extends WafRequest.Builder, SdkPojo, CopyableBuilder<CreateRateBasedRuleRequest.Builder,CreateRateBasedRuleRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CreateRateBasedRuleRequest.BuilderchangeToken(String changeToken)TheChangeTokenthat you used to submit theCreateRateBasedRulerequest.CreateRateBasedRuleRequest.BuildermetricName(String metricName)A friendly name or description for the metrics for thisRateBasedRule.CreateRateBasedRuleRequest.Buildername(String name)A friendly name or description of the RateBasedRule.CreateRateBasedRuleRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateRateBasedRuleRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)CreateRateBasedRuleRequest.BuilderrateKey(String rateKey)The field that AWS WAF uses to determine if requests are likely arriving from a single source and thus subject to rate monitoring.CreateRateBasedRuleRequest.BuilderrateKey(RateKey rateKey)The field that AWS WAF uses to determine if requests are likely arriving from a single source and thus subject to rate monitoring.CreateRateBasedRuleRequest.BuilderrateLimit(Long rateLimit)The maximum number of requests, which have an identical value in the field that is specified byRateKey, allowed in a five-minute period.CreateRateBasedRuleRequest.Buildertags(Collection<Tag> tags)CreateRateBasedRuleRequest.Buildertags(Consumer<Tag.Builder>... tags)This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().CreateRateBasedRuleRequest.Buildertags(Tag... tags)-
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 Detail
-
name
CreateRateBasedRuleRequest.Builder name(String name)
A friendly name or description of the RateBasedRule. You can't change the name of a
RateBasedRuleafter you create it.- Parameters:
name- A friendly name or description of the RateBasedRule. 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
CreateRateBasedRuleRequest.Builder metricName(String 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
CreateRateBasedRuleRequest.Builder rateKey(String 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
RateKeyisIP.IPindicates that requests that arrive 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 a single source and thus subject to rate monitoring. The only valid value forRateKeyisIP.IPindicates that requests that arrive 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
CreateRateBasedRuleRequest.Builder rateKey(RateKey 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
RateKeyisIP.IPindicates that requests that arrive 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 a single source and thus subject to rate monitoring. The only valid value forRateKeyisIP.IPindicates that requests that arrive 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
CreateRateBasedRuleRequest.Builder rateLimit(Long 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 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 that is specified byRateKey, 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.
-
changeToken
CreateRateBasedRuleRequest.Builder changeToken(String changeToken)
The
ChangeTokenthat you used to submit theCreateRateBasedRulerequest. You can also use this value to query the status of the request. For more information, see GetChangeTokenStatus.- Parameters:
changeToken- TheChangeTokenthat you used to submit theCreateRateBasedRulerequest. 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
CreateRateBasedRuleRequest.Builder tags(Collection<Tag> tags)
- Parameters:
tags-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateRateBasedRuleRequest.Builder tags(Tag... tags)
- Parameters:
tags-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateRateBasedRuleRequest.Builder tags(Consumer<Tag.Builder>... tags)
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tags(List.) - 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:
#tags(java.util.Collection)
-
overrideConfiguration
CreateRateBasedRuleRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateRateBasedRuleRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-