Interface LimitEntry.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<LimitEntry.Builder,,LimitEntry> SdkBuilder<LimitEntry.Builder,,LimitEntry> SdkPojo
- Enclosing class:
LimitEntry
-
Method Summary
Modifier and TypeMethodDescriptionconnections(Collection<RateConfig> connections) The connection rate limit configuration.connections(Consumer<RateConfig.Builder>... connections) The connection rate limit configuration.connections(RateConfig... connections) The connection rate limit configuration.dimensions(Map<String, String> dimensions) A map of dimension names to dimension values for this rule entry.requests(Collection<RateConfig> requests) The request rate limit configuration.requests(Consumer<RateConfig.Builder>... requests) The request rate limit configuration.requests(RateConfig... requests) The request rate limit configuration.tokens(Collection<RateConfig> tokens) The token rate limit configuration.tokens(Consumer<RateConfig.Builder>... tokens) The token rate limit configuration.tokens(RateConfig... tokens) The token rate limit configuration.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
dimensions
A map of dimension names to dimension values for this rule entry. Keys must match the parent rate limit's dimension keys. Values may use
*as a wildcard, but only in trailing positions based on the dimension keys ordering.- Parameters:
dimensions- A map of dimension names to dimension values for this rule entry. Keys must match the parent rate limit's dimension keys. Values may use*as a wildcard, but only in trailing positions based on the dimension keys ordering.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
requests
The request rate limit configuration. Specifies the maximum number of requests allowed per time period.
- Parameters:
requests- The request rate limit configuration. Specifies the maximum number of requests allowed per time period.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
requests
The request rate limit configuration. Specifies the maximum number of requests allowed per time period.
- Parameters:
requests- The request rate limit configuration. Specifies the maximum number of requests allowed per time period.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
requests
The request rate limit configuration. Specifies the maximum number of requests allowed per time period.
This is a convenience method that creates an instance of theRateConfig.Builderavoiding the need to create one manually viaRateConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torequests(List<RateConfig>).- Parameters:
requests- a consumer that will call methods onRateConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tokens
The token rate limit configuration. Specifies the maximum number of tokens allowed per time period.
- Parameters:
tokens- The token rate limit configuration. Specifies the maximum number of tokens allowed per time period.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tokens
The token rate limit configuration. Specifies the maximum number of tokens allowed per time period.
- Parameters:
tokens- The token rate limit configuration. Specifies the maximum number of tokens allowed per time period.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tokens
The token rate limit configuration. Specifies the maximum number of tokens allowed per time period.
This is a convenience method that creates an instance of theRateConfig.Builderavoiding the need to create one manually viaRateConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totokens(List<RateConfig>).- Parameters:
tokens- a consumer that will call methods onRateConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
connections
The connection rate limit configuration. Specifies the maximum number of concurrent connections allowed.
- Parameters:
connections- The connection rate limit configuration. Specifies the maximum number of concurrent connections allowed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
connections
The connection rate limit configuration. Specifies the maximum number of concurrent connections allowed.
- Parameters:
connections- The connection rate limit configuration. Specifies the maximum number of concurrent connections allowed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
connections
The connection rate limit configuration. Specifies the maximum number of concurrent connections allowed.
This is a convenience method that creates an instance of theRateConfig.Builderavoiding the need to create one manually viaRateConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toconnections(List<RateConfig>).- Parameters:
connections- a consumer that will call methods onRateConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-