Interface StartAsyncInvokeRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,BedrockRuntimeRequest.Builder,Buildable,CopyableBuilder<StartAsyncInvokeRequest.Builder,,StartAsyncInvokeRequest> SdkBuilder<StartAsyncInvokeRequest.Builder,,StartAsyncInvokeRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
StartAsyncInvokeRequest
@Mutable
@NotThreadSafe
public static interface StartAsyncInvokeRequest.Builder
extends BedrockRuntimeRequest.Builder, SdkPojo, CopyableBuilder<StartAsyncInvokeRequest.Builder,StartAsyncInvokeRequest>
-
Method Summary
Modifier and TypeMethodDescriptionclientRequestToken(String clientRequestToken) Specify idempotency token to ensure that requests are not duplicated.The model to invoke.modelInput(Document modelInput) Input to send to the model.default StartAsyncInvokeRequest.BuilderoutputDataConfig(Consumer<AsyncInvokeOutputDataConfig.Builder> outputDataConfig) Where to store the output.outputDataConfig(AsyncInvokeOutputDataConfig outputDataConfig) Where to store the output.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.tags(Collection<Tag> tags) Tags to apply to the invocation.tags(Consumer<Tag.Builder>... tags) Tags to apply to the invocation.Tags to apply to the invocation.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.bedrockruntime.model.BedrockRuntimeRequest.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
-
clientRequestToken
Specify idempotency token to ensure that requests are not duplicated.
- Parameters:
clientRequestToken- Specify idempotency token to ensure that requests are not duplicated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modelId
The model to invoke.
- Parameters:
modelId- The model to invoke.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modelInput
Input to send to the model.
- Parameters:
modelInput- Input to send to the model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
outputDataConfig
Where to store the output.
- Parameters:
outputDataConfig- Where to store the output.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
outputDataConfig
default StartAsyncInvokeRequest.Builder outputDataConfig(Consumer<AsyncInvokeOutputDataConfig.Builder> outputDataConfig) Where to store the output.
This is a convenience method that creates an instance of theAsyncInvokeOutputDataConfig.Builderavoiding the need to create one manually viaAsyncInvokeOutputDataConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tooutputDataConfig(AsyncInvokeOutputDataConfig).- Parameters:
outputDataConfig- a consumer that will call methods onAsyncInvokeOutputDataConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
Tags to apply to the invocation.
- Parameters:
tags- Tags to apply to the invocation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Tags to apply to the invocation.
- Parameters:
tags- Tags to apply to the invocation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Tags to apply to the invocation.
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 totags(List<Tag>).- 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:
-
overrideConfiguration
StartAsyncInvokeRequest.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
StartAsyncInvokeRequest.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.
-