Interface CreateModelCustomizationJobRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,BedrockRequest.Builder
,Buildable
,CopyableBuilder<CreateModelCustomizationJobRequest.Builder,
,CreateModelCustomizationJobRequest> SdkBuilder<CreateModelCustomizationJobRequest.Builder,
,CreateModelCustomizationJobRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateModelCustomizationJobRequest
-
Method Summary
Modifier and TypeMethodDescriptionbaseModelIdentifier
(String baseModelIdentifier) Name of the base model.clientRequestToken
(String clientRequestToken) A unique, case-sensitive identifier to ensure that the API request completes no more than one time.customizationConfig
(Consumer<CustomizationConfig.Builder> customizationConfig) The customization configuration for the model customization job.customizationConfig
(CustomizationConfig customizationConfig) The customization configuration for the model customization job.customizationType
(String customizationType) The customization type.customizationType
(CustomizationType customizationType) The customization type.customModelKmsKeyId
(String customModelKmsKeyId) The custom model is encrypted at rest using this key.customModelName
(String customModelName) A name for the resulting custom model.customModelTags
(Collection<Tag> customModelTags) Tags to attach to the resulting custom model.customModelTags
(Consumer<Tag.Builder>... customModelTags) Tags to attach to the resulting custom model.customModelTags
(Tag... customModelTags) Tags to attach to the resulting custom model.hyperParameters
(Map<String, String> hyperParameters) Parameters related to tuning the model.A name for the fine-tuning job.jobTags
(Collection<Tag> jobTags) Tags to attach to the job.jobTags
(Consumer<Tag.Builder>... jobTags) Tags to attach to the job.Tags to attach to the job.outputDataConfig
(Consumer<OutputDataConfig.Builder> outputDataConfig) S3 location for the output data.outputDataConfig
(OutputDataConfig outputDataConfig) S3 location for the output data.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 an IAM service role that Amazon Bedrock can assume to perform tasks on your behalf.trainingDataConfig
(Consumer<TrainingDataConfig.Builder> trainingDataConfig) Information about the training dataset.trainingDataConfig
(TrainingDataConfig trainingDataConfig) Information about the training dataset.validationDataConfig
(Consumer<ValidationDataConfig.Builder> validationDataConfig) Information about the validation dataset.validationDataConfig
(ValidationDataConfig validationDataConfig) Information about the validation dataset.vpcConfig
(Consumer<VpcConfig.Builder> vpcConfig) The configuration of the Virtual Private Cloud (VPC) that contains the resources that you're using for this job.The configuration of the Virtual Private Cloud (VPC) that contains the resources that you're using for this 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 for the fine-tuning job.
- Parameters:
jobName
- A name for the fine-tuning job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customModelName
A name for the resulting custom model.
- Parameters:
customModelName
- A name for the resulting custom model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
roleArn
The Amazon Resource Name (ARN) of an IAM service role that Amazon Bedrock can assume to perform tasks on your behalf. For example, during model training, Amazon Bedrock needs your permission to read input data from an S3 bucket, write model artifacts to an S3 bucket. To pass this role to Amazon Bedrock, the caller of this API must have the
iam:PassRole
permission.- Parameters:
roleArn
- The Amazon Resource Name (ARN) of an IAM service role that Amazon Bedrock can assume to perform tasks on your behalf. For example, during model training, Amazon Bedrock needs your permission to read input data from an S3 bucket, write model artifacts to an S3 bucket. To pass this role to Amazon Bedrock, the caller of this API must have theiam:PassRole
permission.- 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.
-
baseModelIdentifier
Name of the base model.
- Parameters:
baseModelIdentifier
- Name of the base model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customizationType
The customization type.
- Parameters:
customizationType
- The customization type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
customizationType
The customization type.
- Parameters:
customizationType
- The customization type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
customModelKmsKeyId
The custom model is encrypted at rest using this key.
- Parameters:
customModelKmsKeyId
- The custom model is encrypted at rest using this key.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
jobTags
Tags to attach to the job.
- Parameters:
jobTags
- Tags to attach to the job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
jobTags
Tags to attach to the job.
- Parameters:
jobTags
- Tags to attach to the job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
jobTags
Tags to attach to the job.
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 tojobTags(List<Tag>)
.- Parameters:
jobTags
- 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:
-
customModelTags
Tags to attach to the resulting custom model.
- Parameters:
customModelTags
- Tags to attach to the resulting custom model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customModelTags
Tags to attach to the resulting custom model.
- Parameters:
customModelTags
- Tags to attach to the resulting custom model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customModelTags
CreateModelCustomizationJobRequest.Builder customModelTags(Consumer<Tag.Builder>... customModelTags) Tags to attach to the resulting custom model.
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 tocustomModelTags(List<Tag>)
.- Parameters:
customModelTags
- 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:
-
trainingDataConfig
CreateModelCustomizationJobRequest.Builder trainingDataConfig(TrainingDataConfig trainingDataConfig) Information about the training dataset.
- Parameters:
trainingDataConfig
- Information about the training dataset.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
trainingDataConfig
default CreateModelCustomizationJobRequest.Builder trainingDataConfig(Consumer<TrainingDataConfig.Builder> trainingDataConfig) Information about the training dataset.
This is a convenience method that creates an instance of theTrainingDataConfig.Builder
avoiding the need to create one manually viaTrainingDataConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totrainingDataConfig(TrainingDataConfig)
.- Parameters:
trainingDataConfig
- a consumer that will call methods onTrainingDataConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
validationDataConfig
CreateModelCustomizationJobRequest.Builder validationDataConfig(ValidationDataConfig validationDataConfig) Information about the validation dataset.
- Parameters:
validationDataConfig
- Information about the validation dataset.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
validationDataConfig
default CreateModelCustomizationJobRequest.Builder validationDataConfig(Consumer<ValidationDataConfig.Builder> validationDataConfig) Information about the validation dataset.
This is a convenience method that creates an instance of theValidationDataConfig.Builder
avoiding the need to create one manually viaValidationDataConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tovalidationDataConfig(ValidationDataConfig)
.- Parameters:
validationDataConfig
- a consumer that will call methods onValidationDataConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
outputDataConfig
S3 location for the output data.
- Parameters:
outputDataConfig
- S3 location for the output data.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
outputDataConfig
default CreateModelCustomizationJobRequest.Builder outputDataConfig(Consumer<OutputDataConfig.Builder> outputDataConfig) S3 location for the output data.
This is a convenience method that creates an instance of theOutputDataConfig.Builder
avoiding the need to create one manually viaOutputDataConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tooutputDataConfig(OutputDataConfig)
.- Parameters:
outputDataConfig
- a consumer that will call methods onOutputDataConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
hyperParameters
Parameters related to tuning the model. For details on the format for different models, see Custom model hyperparameters.
- Parameters:
hyperParameters
- Parameters related to tuning the model. For details on the format for different models, see Custom model hyperparameters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpcConfig
The configuration of the Virtual Private Cloud (VPC) that contains the resources that you're using for this job. For more information, see Protect your model customization jobs using a VPC.
- Parameters:
vpcConfig
- The configuration of the Virtual Private Cloud (VPC) that contains the resources that you're using for this job. For more information, see Protect your model customization 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) that contains the resources that you're using for this job. For more information, see Protect your model customization 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:
-
customizationConfig
CreateModelCustomizationJobRequest.Builder customizationConfig(CustomizationConfig customizationConfig) The customization configuration for the model customization job.
- Parameters:
customizationConfig
- The customization configuration for the model customization job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customizationConfig
default CreateModelCustomizationJobRequest.Builder customizationConfig(Consumer<CustomizationConfig.Builder> customizationConfig) The customization configuration for the model customization job.
This is a convenience method that creates an instance of theCustomizationConfig.Builder
avoiding the need to create one manually viaCustomizationConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocustomizationConfig(CustomizationConfig)
.- Parameters:
customizationConfig
- a consumer that will call methods onCustomizationConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateModelCustomizationJobRequest.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
CreateModelCustomizationJobRequest.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.
-