Interface CreateModelInvocationJobRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,BedrockRequest.Builder
,Buildable
,CopyableBuilder<CreateModelInvocationJobRequest.Builder,
,CreateModelInvocationJobRequest> SdkBuilder<CreateModelInvocationJobRequest.Builder,
,CreateModelInvocationJobRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateModelInvocationJobRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientRequestToken
(String clientRequestToken) A unique, case-sensitive identifier to ensure that the API request completes no more than one time.inputDataConfig
(Consumer<ModelInvocationJobInputDataConfig.Builder> inputDataConfig) Details about the location of the input to the batch inference job.inputDataConfig
(ModelInvocationJobInputDataConfig inputDataConfig) Details about the location of the input to the batch inference job.A name to give the batch inference job.The unique identifier of the foundation model to use for the batch inference job.outputDataConfig
(Consumer<ModelInvocationJobOutputDataConfig.Builder> outputDataConfig) Details about the location of the output of the batch inference job.outputDataConfig
(ModelInvocationJobOutputDataConfig outputDataConfig) Details about the location of the output of the batch inference job.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The Amazon Resource Name (ARN) of the service role with permissions to carry out and manage batch inference.tags
(Collection<Tag> tags) Any tags to associate with the batch inference job.tags
(Consumer<Tag.Builder>... tags) Any tags to associate with the batch inference job.Any tags to associate with the batch inference job.timeoutDurationInHours
(Integer timeoutDurationInHours) The number of hours after which to force the batch inference job to time out.vpcConfig
(Consumer<VpcConfig.Builder> vpcConfig) The configuration of the Virtual Private Cloud (VPC) for the data in the batch inference job.The configuration of the Virtual Private Cloud (VPC) for the data in the batch inference job.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.services.bedrock.model.BedrockRequest.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
-
jobName
A name to give the batch inference job.
- Parameters:
jobName
- A name to give the batch inference job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
roleArn
The Amazon Resource Name (ARN) of the service role with permissions to carry out and manage batch inference. You can use the console to create a default service role or follow the steps at Create a service role for batch inference.
- Parameters:
roleArn
- The Amazon Resource Name (ARN) of the service role with permissions to carry out and manage batch inference. You can use the console to create a default service role or follow the steps at Create a service role for batch inference.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientRequestToken
A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.
- Parameters:
clientRequestToken
- A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modelId
The unique identifier of the foundation model to use for the batch inference job.
- Parameters:
modelId
- The unique identifier of the foundation model to use for the batch inference job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inputDataConfig
CreateModelInvocationJobRequest.Builder inputDataConfig(ModelInvocationJobInputDataConfig inputDataConfig) Details about the location of the input to the batch inference job.
- Parameters:
inputDataConfig
- Details about the location of the input to the batch inference job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inputDataConfig
default CreateModelInvocationJobRequest.Builder inputDataConfig(Consumer<ModelInvocationJobInputDataConfig.Builder> inputDataConfig) Details about the location of the input to the batch inference job.
This is a convenience method that creates an instance of theModelInvocationJobInputDataConfig.Builder
avoiding the need to create one manually viaModelInvocationJobInputDataConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toinputDataConfig(ModelInvocationJobInputDataConfig)
.- Parameters:
inputDataConfig
- a consumer that will call methods onModelInvocationJobInputDataConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
outputDataConfig
CreateModelInvocationJobRequest.Builder outputDataConfig(ModelInvocationJobOutputDataConfig outputDataConfig) Details about the location of the output of the batch inference job.
- Parameters:
outputDataConfig
- Details about the location of the output of the batch inference job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
outputDataConfig
default CreateModelInvocationJobRequest.Builder outputDataConfig(Consumer<ModelInvocationJobOutputDataConfig.Builder> outputDataConfig) Details about the location of the output of the batch inference job.
This is a convenience method that creates an instance of theModelInvocationJobOutputDataConfig.Builder
avoiding the need to create one manually viaModelInvocationJobOutputDataConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tooutputDataConfig(ModelInvocationJobOutputDataConfig)
.- Parameters:
outputDataConfig
- a consumer that will call methods onModelInvocationJobOutputDataConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
vpcConfig
The configuration of the Virtual Private Cloud (VPC) for the data in the batch inference job. For more information, see Protect batch inference jobs using a VPC.
- Parameters:
vpcConfig
- The configuration of the Virtual Private Cloud (VPC) for the data in the batch inference job. For more information, see Protect batch inference jobs using a VPC.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpcConfig
The configuration of the Virtual Private Cloud (VPC) for the data in the batch inference job. For more information, see Protect batch inference jobs using a VPC.
This is a convenience method that creates an instance of theVpcConfig.Builder
avoiding the need to create one manually viaVpcConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tovpcConfig(VpcConfig)
.- Parameters:
vpcConfig
- a consumer that will call methods onVpcConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
timeoutDurationInHours
The number of hours after which to force the batch inference job to time out.
- Parameters:
timeoutDurationInHours
- The number of hours after which to force the batch inference job to time out.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Any tags to associate with the batch inference job. For more information, see Tagging Amazon Bedrock resources.
- Parameters:
tags
- Any tags to associate with the batch inference job. For more information, see Tagging Amazon Bedrock resources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Any tags to associate with the batch inference job. For more information, see Tagging Amazon Bedrock resources.
- Parameters:
tags
- Any tags to associate with the batch inference job. For more information, see Tagging Amazon Bedrock resources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Any tags to associate with the batch inference job. For more information, see Tagging Amazon Bedrock resources.
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
CreateModelInvocationJobRequest.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
CreateModelInvocationJobRequest.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.
-