Interface CreateModelCustomizationJobRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,BedrockRequest.Builder,Buildable,CopyableBuilder<CreateModelCustomizationJobRequest.Builder,CreateModelCustomizationJobRequest>,SdkBuilder<CreateModelCustomizationJobRequest.Builder,CreateModelCustomizationJobRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateModelCustomizationJobRequest
public static interface CreateModelCustomizationJobRequest.Builder extends BedrockRequest.Builder, SdkPojo, CopyableBuilder<CreateModelCustomizationJobRequest.Builder,CreateModelCustomizationJobRequest>
-
-
Method Summary
-
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, sdkFields
-
-
-
-
Method Detail
-
jobName
CreateModelCustomizationJobRequest.Builder jobName(String 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
CreateModelCustomizationJobRequest.Builder customModelName(String 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
CreateModelCustomizationJobRequest.Builder roleArn(String roleArn)
The Amazon Resource Name (ARN) of an IAM 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:PassRolepermission.- Parameters:
roleArn- The Amazon Resource Name (ARN) of an IAM 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:PassRolepermission.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientRequestToken
CreateModelCustomizationJobRequest.Builder clientRequestToken(String 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
CreateModelCustomizationJobRequest.Builder baseModelIdentifier(String 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
CreateModelCustomizationJobRequest.Builder customizationType(String 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,CustomizationType
-
customizationType
CreateModelCustomizationJobRequest.Builder customizationType(CustomizationType 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,CustomizationType
-
customModelKmsKeyId
CreateModelCustomizationJobRequest.Builder customModelKmsKeyId(String 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
CreateModelCustomizationJobRequest.Builder jobTags(Collection<Tag> 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
CreateModelCustomizationJobRequest.Builder jobTags(Tag... 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
CreateModelCustomizationJobRequest.Builder jobTags(Consumer<Tag.Builder>... 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 to#jobTags(List.) - 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:
#jobTags(java.util.Collection)
-
customModelTags
CreateModelCustomizationJobRequest.Builder customModelTags(Collection<Tag> 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(Tag... 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 to#customModelTags(List.) - 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:
#customModelTags(java.util.Collection)
-
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:
trainingDataConfig(TrainingDataConfig)
-
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:
validationDataConfig(ValidationDataConfig)
-
outputDataConfig
CreateModelCustomizationJobRequest.Builder outputDataConfig(OutputDataConfig 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:
outputDataConfig(OutputDataConfig)
-
hyperParameters
CreateModelCustomizationJobRequest.Builder hyperParameters(Map<String,String> 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
CreateModelCustomizationJobRequest.Builder vpcConfig(VpcConfig 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
default CreateModelCustomizationJobRequest.Builder vpcConfig(Consumer<VpcConfig.Builder> 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:
vpcConfig(VpcConfig)
-
overrideConfiguration
CreateModelCustomizationJobRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateModelCustomizationJobRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-