Interface CreateGatewayRateLimitRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,BedrockAgentCoreControlRequest.Builder,Buildable,CopyableBuilder<CreateGatewayRateLimitRequest.Builder,,CreateGatewayRateLimitRequest> SdkBuilder<CreateGatewayRateLimitRequest.Builder,,CreateGatewayRateLimitRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateGatewayRateLimitRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientToken(String clientToken) A unique, case-sensitive identifier to ensure that the API request completes no more than one time.description(String description) Optional human-readable description for this limit.dimensionKeys(String... dimensionKeys) Ordered list of dimension names defining the scope of this limit.dimensionKeys(Collection<String> dimensionKeys) Ordered list of dimension names defining the scope of this limit.entries(Collection<LimitEntry> entries) Rule entries mapping dimension values to rate configurations.entries(Consumer<LimitEntry.Builder>... entries) Rule entries mapping dimension values to rate configurations.entries(LimitEntry... entries) Rule entries mapping dimension values to rate configurations.gatewayIdentifier(String gatewayIdentifier) The unique identifier of the gateway to create the rate limit for.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.rateLimitId(String rateLimitId) Optional customer-defined limit ID.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.bedrockagentcorecontrol.model.BedrockAgentCoreControlRequest.Builder
buildMethods 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
-
gatewayIdentifier
The unique identifier of the gateway to create the rate limit for.
- Parameters:
gatewayIdentifier- The unique identifier of the gateway to create the rate limit for.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientToken
A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If you don't specify this field, a value is randomly generated for you. If this token matches a previous request, the service ignores the request, but doesn't return an error. For more information, see Ensuring idempotency.
- Parameters:
clientToken- A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If you don't specify this field, a value is randomly generated for you. If this token matches a previous request, the service ignores the request, but doesn't return an error. For more information, see Ensuring idempotency.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rateLimitId
Optional customer-defined limit ID. If not provided, system generates one.
- Parameters:
rateLimitId- Optional customer-defined limit ID. If not provided, system generates one.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
Optional human-readable description for this limit.
- Parameters:
description- Optional human-readable description for this limit.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensionKeys
Ordered list of dimension names defining the scope of this limit. Unique per gateway — no two limits can share the same dimensionKeys.
- Parameters:
dimensionKeys- Ordered list of dimension names defining the scope of this limit. Unique per gateway — no two limits can share the same dimensionKeys.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensionKeys
Ordered list of dimension names defining the scope of this limit. Unique per gateway — no two limits can share the same dimensionKeys.
- Parameters:
dimensionKeys- Ordered list of dimension names defining the scope of this limit. Unique per gateway — no two limits can share the same dimensionKeys.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
entries
Rule entries mapping dimension values to rate configurations.
- Parameters:
entries- Rule entries mapping dimension values to rate configurations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
entries
Rule entries mapping dimension values to rate configurations.
- Parameters:
entries- Rule entries mapping dimension values to rate configurations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
entries
Rule entries mapping dimension values to rate configurations.
This is a convenience method that creates an instance of theLimitEntry.Builderavoiding the need to create one manually viaLimitEntry.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toentries(List<LimitEntry>).- Parameters:
entries- a consumer that will call methods onLimitEntry.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateGatewayRateLimitRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateGatewayRateLimitRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-