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.Builder
outputDataConfig
(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
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.services.bedrockruntime.model.BedrockRuntimeRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods 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.Builder
avoiding the need to create one manually viaAsyncInvokeOutputDataConfig.builder()
.When the
Consumer
completes,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.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,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.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in 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.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-