Class CfnModelCard.TrainingDetailsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnModelCard.TrainingDetailsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnModelCard.TrainingDetailsProperty>
- Enclosing interface:
CfnModelCard.TrainingDetailsProperty
@Stability(Stable)
public static final class CfnModelCard.TrainingDetailsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnModelCard.TrainingDetailsProperty>
A builder for
CfnModelCard.TrainingDetailsProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.objectiveFunction
(IResolvable objectiveFunction) Sets the value ofCfnModelCard.TrainingDetailsProperty.getObjectiveFunction()
objectiveFunction
(CfnModelCard.ObjectiveFunctionProperty objectiveFunction) Sets the value ofCfnModelCard.TrainingDetailsProperty.getObjectiveFunction()
trainingJobDetails
(IResolvable trainingJobDetails) Sets the value ofCfnModelCard.TrainingDetailsProperty.getTrainingJobDetails()
trainingJobDetails
(CfnModelCard.TrainingJobDetailsProperty trainingJobDetails) Sets the value ofCfnModelCard.TrainingDetailsProperty.getTrainingJobDetails()
trainingObservations
(String trainingObservations) Sets the value ofCfnModelCard.TrainingDetailsProperty.getTrainingObservations()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
objectiveFunction
@Stability(Stable) public CfnModelCard.TrainingDetailsProperty.Builder objectiveFunction(IResolvable objectiveFunction) Sets the value ofCfnModelCard.TrainingDetailsProperty.getObjectiveFunction()
- Parameters:
objectiveFunction
- The function that is optimized during model training.- Returns:
this
-
objectiveFunction
@Stability(Stable) public CfnModelCard.TrainingDetailsProperty.Builder objectiveFunction(CfnModelCard.ObjectiveFunctionProperty objectiveFunction) Sets the value ofCfnModelCard.TrainingDetailsProperty.getObjectiveFunction()
- Parameters:
objectiveFunction
- The function that is optimized during model training.- Returns:
this
-
trainingJobDetails
@Stability(Stable) public CfnModelCard.TrainingDetailsProperty.Builder trainingJobDetails(IResolvable trainingJobDetails) Sets the value ofCfnModelCard.TrainingDetailsProperty.getTrainingJobDetails()
- Parameters:
trainingJobDetails
- Details about any associated training jobs.- Returns:
this
-
trainingJobDetails
@Stability(Stable) public CfnModelCard.TrainingDetailsProperty.Builder trainingJobDetails(CfnModelCard.TrainingJobDetailsProperty trainingJobDetails) Sets the value ofCfnModelCard.TrainingDetailsProperty.getTrainingJobDetails()
- Parameters:
trainingJobDetails
- Details about any associated training jobs.- Returns:
this
-
trainingObservations
@Stability(Stable) public CfnModelCard.TrainingDetailsProperty.Builder trainingObservations(String trainingObservations) Sets the value ofCfnModelCard.TrainingDetailsProperty.getTrainingObservations()
- Parameters:
trainingObservations
- Any observations about training.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnModelCard.TrainingDetailsProperty>
- Returns:
- a new instance of
CfnModelCard.TrainingDetailsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-