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) An optional human-readable description for this rate limit.dimensionKeys(String... dimensionKeys) The ordered list of dimension key names that define the scope of this rate limit.dimensionKeys(Collection<String> dimensionKeys) The ordered list of dimension key names that define the scope of this rate limit.entries(Collection<LimitEntry> entries) The rule entries that map dimension values to rate configurations.entries(Consumer<LimitEntry.Builder>... entries) The rule entries that map dimension values to rate configurations.entries(LimitEntry... entries) The rule entries that map 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) An optional customer-defined identifier for the rate limit.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
An optional customer-defined identifier for the rate limit. If not provided, the system generates one.
- Parameters:
rateLimitId- An optional customer-defined identifier for the rate limit. If not provided, the system generates one.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
An optional human-readable description for this rate limit. If not provided, the rate limit is created without a description.
- Parameters:
description- An optional human-readable description for this rate limit. If not provided, the rate limit is created without a description.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensionKeys
The ordered list of dimension key names that define the scope of this rate limit. Must be unique per gateway—no two rate limits can share the same dimension keys.
- Parameters:
dimensionKeys- The ordered list of dimension key names that define the scope of this rate limit. Must be unique per gateway—no two rate limits can share the same dimension keys.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensionKeys
The ordered list of dimension key names that define the scope of this rate limit. Must be unique per gateway—no two rate limits can share the same dimension keys.
- Parameters:
dimensionKeys- The ordered list of dimension key names that define the scope of this rate limit. Must be unique per gateway—no two rate limits can share the same dimension keys.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
entries
The rule entries that map dimension values to rate configurations.
- Parameters:
entries- The rule entries that map dimension values to rate configurations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
entries
The rule entries that map dimension values to rate configurations.
- Parameters:
entries- The rule entries that map dimension values to rate configurations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
entries
The rule entries that map 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.
-