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) Unique token value that you can provide.customModelKmsKeyId(String customModelKmsKeyId) The custom model is encrypted at rest using this key.customModelName(String customModelName) Enter a name for the custom model.customModelTags(Collection<Tag> customModelTags) Assign tags to the custom model.customModelTags(Consumer<Tag.Builder>... customModelTags) Assign tags to the custom model.customModelTags(Tag... customModelTags) Assign tags to the custom model.hyperParameters(Map<String, String> hyperParameters) Parameters related to tuning the model.Enter a unique name for the fine-tuning job.jobTags(Collection<Tag> jobTags) Assign tags to the job.jobTags(Consumer<Tag.Builder>... jobTags) Assign tags to the job.Assign tags 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 role that 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) VPC configuration (optional).VPC configuration (optional).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
-
jobName
Enter a unique name for the fine-tuning job.
- Parameters:
jobName- Enter a unique name for the fine-tuning job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customModelName
Enter a name for the custom model.
- Parameters:
customModelName- Enter a name for the 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 role that Bedrock can assume to perform tasks on your behalf. For example, during model training, Bedrock needs your permission to read input data from an S3 bucket, write model artifacts to an S3 bucket. To pass this role to Bedrock, the caller of this API must have the
iam:PassRolepermission.- Parameters:
roleArn- The Amazon Resource Name (ARN) of an IAM role that Bedrock can assume to perform tasks on your behalf. For example, during model training, Bedrock needs your permission to read input data from an S3 bucket, write model artifacts to an S3 bucket. To pass this role to Bedrock, the caller of this API must have theiam:PassRolepermission.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientRequestToken
Unique token value that you can provide. The GetModelCustomizationJob response includes the same token value.
- Parameters:
clientRequestToken- Unique token value that you can provide. The GetModelCustomizationJob response includes the same token value.- 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.
-
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
Assign tags to the job.
- Parameters:
jobTags- Assign tags to the job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
jobTags
Assign tags to the job.
- Parameters:
jobTags- Assign tags to the job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
jobTags
Assign tags to the job.
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 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
Assign tags to the custom model.
- Parameters:
customModelTags- Assign tags to the custom model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customModelTags
Assign tags to the custom model.
- Parameters:
customModelTags- Assign tags to the 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) Assign tags to the custom model.
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 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.Builderavoiding the need to create one manually viaTrainingDataConfig.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaValidationDataConfig.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaOutputDataConfig.builder().When the
Consumercompletes,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.
- Parameters:
hyperParameters- Parameters related to tuning the model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpcConfig
VPC configuration (optional). Configuration parameters for the private Virtual Private Cloud (VPC) that contains the resources you are using for this job.
- Parameters:
vpcConfig- VPC configuration (optional). Configuration parameters for the private Virtual Private Cloud (VPC) that contains the resources you are using for this job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpcConfig
VPC configuration (optional). Configuration parameters for the private Virtual Private Cloud (VPC) that contains the resources you are using for this job.
This is a convenience method that creates an instance of theVpcConfig.Builderavoiding the need to create one manually viaVpcConfig.builder().When the
Consumercompletes,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:
-
overrideConfiguration
CreateModelCustomizationJobRequest.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
CreateModelCustomizationJobRequest.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.
-