Interface CreateModelCopyJobRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,BedrockRequest.Builder,Buildable,CopyableBuilder<CreateModelCopyJobRequest.Builder,,CreateModelCopyJobRequest> SdkBuilder<CreateModelCopyJobRequest.Builder,,CreateModelCopyJobRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateModelCopyJobRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientRequestToken(String clientRequestToken) A unique, case-sensitive identifier to ensure that the API request completes no more than one time.modelKmsKeyId(String modelKmsKeyId) The ARN of the KMS key that you use to encrypt the model copy.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.sourceModelArn(String sourceModelArn) The Amazon Resource Name (ARN) of the model to be copied.targetModelName(String targetModelName) A name for the copied model.targetModelTags(Collection<Tag> targetModelTags) Tags to associate with the target model.targetModelTags(Consumer<Tag.Builder>... targetModelTags) Tags to associate with the target model.targetModelTags(Tag... targetModelTags) Tags to associate with the target model.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.bedrock.model.BedrockRequest.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, sdkFields
-
Method Details
-
sourceModelArn
The Amazon Resource Name (ARN) of the model to be copied.
- Parameters:
sourceModelArn- The Amazon Resource Name (ARN) of the model to be copied.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetModelName
A name for the copied model.
- Parameters:
targetModelName- A name for the copied model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modelKmsKeyId
The ARN of the KMS key that you use to encrypt the model copy.
- Parameters:
modelKmsKeyId- The ARN of the KMS key that you use to encrypt the model copy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetModelTags
Tags to associate with the target model. For more information, see Tag resources in the Amazon Bedrock User Guide.
- Parameters:
targetModelTags- Tags to associate with the target model. For more information, see Tag resources in the Amazon Bedrock User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetModelTags
Tags to associate with the target model. For more information, see Tag resources in the Amazon Bedrock User Guide.
- Parameters:
targetModelTags- Tags to associate with the target model. For more information, see Tag resources in the Amazon Bedrock User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetModelTags
Tags to associate with the target model. For more information, see Tag resources in the Amazon Bedrock User Guide.
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 totargetModelTags(List<Tag>).- Parameters:
targetModelTags- 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:
-
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.
-
overrideConfiguration
CreateModelCopyJobRequest.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
CreateModelCopyJobRequest.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.
-