Interface StartAsyncInvokeRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,BedrockRuntimeRequest.Builder,Buildable,CopyableBuilder<StartAsyncInvokeRequest.Builder,StartAsyncInvokeRequest>,SdkBuilder<StartAsyncInvokeRequest.Builder,StartAsyncInvokeRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- StartAsyncInvokeRequest
public static interface StartAsyncInvokeRequest.Builder extends BedrockRuntimeRequest.Builder, SdkPojo, CopyableBuilder<StartAsyncInvokeRequest.Builder,StartAsyncInvokeRequest>
-
-
Method Summary
-
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 Detail
-
clientRequestToken
StartAsyncInvokeRequest.Builder clientRequestToken(String 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
StartAsyncInvokeRequest.Builder modelId(String 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
StartAsyncInvokeRequest.Builder modelInput(Document 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
StartAsyncInvokeRequest.Builder outputDataConfig(AsyncInvokeOutputDataConfig 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:
outputDataConfig(AsyncInvokeOutputDataConfig)
-
tags
StartAsyncInvokeRequest.Builder tags(Collection<Tag> 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
StartAsyncInvokeRequest.Builder tags(Tag... 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
StartAsyncInvokeRequest.Builder tags(Consumer<Tag.Builder>... 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 to#tags(List.) - 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:
#tags(java.util.Collection)
-
overrideConfiguration
StartAsyncInvokeRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
StartAsyncInvokeRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-