Interface CreateTrainingSessionRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateTrainingSessionRequest.Builder,,CreateTrainingSessionRequest> SageMakerRequest.Builder,SdkBuilder<CreateTrainingSessionRequest.Builder,,CreateTrainingSessionRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateTrainingSessionRequest
-
Method Summary
Modifier and TypeMethodDescriptionloraConfig(Consumer<LoraConfig.Builder> loraConfig) The Low-Rank Adaptation (LoRA) configuration for the training session, including the rank and alpha parameters.loraConfig(LoraConfig loraConfig) The Low-Rank Adaptation (LoRA) configuration for the training session, including the rank and alpha parameters.modelConfig(Consumer<TrainingSessionModelConfig.Builder> modelConfig) The configuration for the base model, including the model ARN and end-user license agreement (EULA) acceptance.modelConfig(TrainingSessionModelConfig modelConfig) The configuration for the base model, including the model ARN and end-user license agreement (EULA) acceptance.modelPackageGroupArn(String modelPackageGroupArn) The Amazon Resource Name (ARN) of the model package group where checkpoints and fine-tuned model artifacts are published.outputConfig(Consumer<TrainingSessionOutputConfig.Builder> outputConfig) The output configuration for the training session, including the S3 location and optional encryption settings.outputConfig(TrainingSessionOutputConfig outputConfig) The output configuration for the training session, including the S3 location and optional encryption settings.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 the IAM role that Amazon SageMaker assumes to access resources on your behalf.tags(Collection<Tag> tags) An array of key-value pairs to apply to the training session as tags.tags(Consumer<Tag.Builder>... tags) An array of key-value pairs to apply to the training session as tags.An array of key-value pairs to apply to the training session as tags.trainingSessionName(String trainingSessionName) The name of the training session.vpcConfig(Consumer<VpcConfig.Builder> vpcConfig) The Virtual Private Cloud (VPC) configuration for the training session.The Virtual Private Cloud (VPC) configuration for the training session.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.sagemaker.model.SageMakerRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
trainingSessionName
The name of the training session.
- Parameters:
trainingSessionName- The name of the training session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modelPackageGroupArn
The Amazon Resource Name (ARN) of the model package group where checkpoints and fine-tuned model artifacts are published.
- Parameters:
modelPackageGroupArn- The Amazon Resource Name (ARN) of the model package group where checkpoints and fine-tuned model artifacts are published.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
loraConfig
The Low-Rank Adaptation (LoRA) configuration for the training session, including the rank and alpha parameters.
- Parameters:
loraConfig- The Low-Rank Adaptation (LoRA) configuration for the training session, including the rank and alpha parameters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
loraConfig
The Low-Rank Adaptation (LoRA) configuration for the training session, including the rank and alpha parameters.
This is a convenience method that creates an instance of theLoraConfig.Builderavoiding the need to create one manually viaLoraConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toloraConfig(LoraConfig).- Parameters:
loraConfig- a consumer that will call methods onLoraConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
roleArn
The Amazon Resource Name (ARN) of the IAM role that Amazon SageMaker assumes to access resources on your behalf. The role must have permissions to access the output S3 path and model package group.
- Parameters:
roleArn- The Amazon Resource Name (ARN) of the IAM role that Amazon SageMaker assumes to access resources on your behalf. The role must have permissions to access the output S3 path and model package group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpcConfig
The Virtual Private Cloud (VPC) configuration for the training session. Specify subnets and security groups to run the training session in your VPC.
- Parameters:
vpcConfig- The Virtual Private Cloud (VPC) configuration for the training session. Specify subnets and security groups to run the training session in your VPC.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpcConfig
The Virtual Private Cloud (VPC) configuration for the training session. Specify subnets and security groups to run the training session in your 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:
-
modelConfig
The configuration for the base model, including the model ARN and end-user license agreement (EULA) acceptance.
- Parameters:
modelConfig- The configuration for the base model, including the model ARN and end-user license agreement (EULA) acceptance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modelConfig
default CreateTrainingSessionRequest.Builder modelConfig(Consumer<TrainingSessionModelConfig.Builder> modelConfig) The configuration for the base model, including the model ARN and end-user license agreement (EULA) acceptance.
This is a convenience method that creates an instance of theTrainingSessionModelConfig.Builderavoiding the need to create one manually viaTrainingSessionModelConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomodelConfig(TrainingSessionModelConfig).- Parameters:
modelConfig- a consumer that will call methods onTrainingSessionModelConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
outputConfig
The output configuration for the training session, including the S3 location and optional encryption settings.
- Parameters:
outputConfig- The output configuration for the training session, including the S3 location and optional encryption settings.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
outputConfig
default CreateTrainingSessionRequest.Builder outputConfig(Consumer<TrainingSessionOutputConfig.Builder> outputConfig) The output configuration for the training session, including the S3 location and optional encryption settings.
This is a convenience method that creates an instance of theTrainingSessionOutputConfig.Builderavoiding the need to create one manually viaTrainingSessionOutputConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tooutputConfig(TrainingSessionOutputConfig).- Parameters:
outputConfig- a consumer that will call methods onTrainingSessionOutputConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
An array of key-value pairs to apply to the training session as tags. For more information, see Tagging Amazon Web Services Resources.
- Parameters:
tags- An array of key-value pairs to apply to the training session as tags. For more information, see Tagging Amazon Web Services Resources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
An array of key-value pairs to apply to the training session as tags. For more information, see Tagging Amazon Web Services Resources.
- Parameters:
tags- An array of key-value pairs to apply to the training session as tags. For more information, see Tagging Amazon Web Services Resources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
An array of key-value pairs to apply to the training session as tags. For more information, see Tagging Amazon Web Services Resources.
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 totags(List<Tag>).- Parameters:
tags- 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:
-
overrideConfiguration
CreateTrainingSessionRequest.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
CreateTrainingSessionRequest.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.
-