Interface CreateModelCustomizationJobRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,BedrockRequest.Builder,Buildable,CopyableBuilder<CreateModelCustomizationJobRequest.Builder,CreateModelCustomizationJobRequest>,SdkBuilder<CreateModelCustomizationJobRequest.Builder,CreateModelCustomizationJobRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateModelCustomizationJobRequest
@Mutable @NotThreadSafe 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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
jobName
CreateModelCustomizationJobRequest.Builder jobName(String 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
CreateModelCustomizationJobRequest.Builder customModelName(String 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
CreateModelCustomizationJobRequest.Builder roleArn(String 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:PassRolepermission.- 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:PassRolepermission.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientRequestToken
CreateModelCustomizationJobRequest.Builder clientRequestToken(String 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
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)
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
CreateModelCustomizationJobRequest.Builder jobTags(Tag... 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
CreateModelCustomizationJobRequest.Builder jobTags(Consumer<Tag.Builder>... jobTags)
Tags to attach 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)
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(Tag... 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.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. 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
CreateModelCustomizationJobRequest.Builder vpcConfig(VpcConfig 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
default CreateModelCustomizationJobRequest.Builder vpcConfig(Consumer<VpcConfig.Builder> 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.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)
-
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.Builderavoiding the need to create one manually viaCustomizationConfig.builder().When the
Consumercompletes,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:
customizationConfig(CustomizationConfig)
-
overrideConfiguration
CreateModelCustomizationJobRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateModelCustomizationJobRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-