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) Connection rate limits (per second only).connections(Consumer<RateConfig.Builder>... connections) Connection rate limits (per second only).connections(RateConfig... connections) Connection rate limits (per second only).dimensions(Map<String, String> dimensions) Map of dimension name to dimension value, matching the parent limit's dimensionKeys.requests(Collection<RateConfig> requests) Request rate limits (RPS or RPM).requests(Consumer<RateConfig.Builder>... requests) Request rate limits (RPS or RPM).requests(RateConfig... requests) Request rate limits (RPS or RPM).tokens(Collection<RateConfig> tokens) Token rate limits (TPM).tokens(Consumer<RateConfig.Builder>... tokens) Token rate limits (TPM).tokens(RateConfig... tokens) Token rate limits (TPM).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
Map of dimension name to dimension value, matching the parent limit's dimensionKeys. Keys must exactly match the dimensionKeys. Values may be "" as a wildcard. "" may only appear at trailing positions (based on dimensionKeys ordering).
- Parameters:
dimensions- Map of dimension name to dimension value, matching the parent limit's dimensionKeys. Keys must exactly match the dimensionKeys. Values may be "" as a wildcard. "" may only appear at trailing positions (based on dimensionKeys ordering).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
requests
Request rate limits (RPS or RPM). Limited to 1 entry for now.
- Parameters:
requests- Request rate limits (RPS or RPM). Limited to 1 entry for now.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
requests
Request rate limits (RPS or RPM). Limited to 1 entry for now.
- Parameters:
requests- Request rate limits (RPS or RPM). Limited to 1 entry for now.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
requests
Request rate limits (RPS or RPM). Limited to 1 entry for now.
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
Token rate limits (TPM). Limited to 1 entry for now. — P1
- Parameters:
tokens- Token rate limits (TPM). Limited to 1 entry for now. — P1- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tokens
Token rate limits (TPM). Limited to 1 entry for now. — P1
- Parameters:
tokens- Token rate limits (TPM). Limited to 1 entry for now. — P1- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tokens
Token rate limits (TPM). Limited to 1 entry for now. — P1
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
Connection rate limits (per second only). Limited to 1 entry for now. — P2
- Parameters:
connections- Connection rate limits (per second only). Limited to 1 entry for now. — P2- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
connections
Connection rate limits (per second only). Limited to 1 entry for now. — P2
- Parameters:
connections- Connection rate limits (per second only). Limited to 1 entry for now. — P2- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
connections
Connection rate limits (per second only). Limited to 1 entry for now. — P2
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:
-