Class CfnAlgorithm.HyperParameterTuningJobObjectiveProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnAlgorithm.HyperParameterTuningJobObjectiveProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAlgorithm.HyperParameterTuningJobObjectiveProperty>
- Enclosing interface:
CfnAlgorithm.HyperParameterTuningJobObjectiveProperty
@Stability(Stable)
public static final class CfnAlgorithm.HyperParameterTuningJobObjectiveProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAlgorithm.HyperParameterTuningJobObjectiveProperty>
A builder for
CfnAlgorithm.HyperParameterTuningJobObjectiveProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.metricName(String metricName) Sets the value ofCfnAlgorithm.HyperParameterTuningJobObjectiveProperty.getMetricName()Sets the value ofCfnAlgorithm.HyperParameterTuningJobObjectiveProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
metricName
@Stability(Stable) public CfnAlgorithm.HyperParameterTuningJobObjectiveProperty.Builder metricName(String metricName) Sets the value ofCfnAlgorithm.HyperParameterTuningJobObjectiveProperty.getMetricName()- Parameters:
metricName- the value to be set. This parameter is required.- Returns:
this
-
type
@Stability(Stable) public CfnAlgorithm.HyperParameterTuningJobObjectiveProperty.Builder type(String type) Sets the value ofCfnAlgorithm.HyperParameterTuningJobObjectiveProperty.getType()- Parameters:
type- the value to be set. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAlgorithm.HyperParameterTuningJobObjectiveProperty>- Returns:
- a new instance of
CfnAlgorithm.HyperParameterTuningJobObjectiveProperty - Throws:
NullPointerException- if any required attribute was not provided
-