Class CfnAlgorithmPropsMixin.TrainingSpecificationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.sagemaker.CfnAlgorithmPropsMixin.TrainingSpecificationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAlgorithmPropsMixin.TrainingSpecificationProperty>
- Enclosing interface:
CfnAlgorithmPropsMixin.TrainingSpecificationProperty
@Stability(Stable)
public static final class CfnAlgorithmPropsMixin.TrainingSpecificationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAlgorithmPropsMixin.TrainingSpecificationProperty>
A builder for
CfnAlgorithmPropsMixin.TrainingSpecificationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.metricDefinitions(List<? extends Object> metricDefinitions) metricDefinitions(IResolvable metricDefinitions) supportedHyperParameters(List<? extends Object> supportedHyperParameters) supportedHyperParameters(IResolvable supportedHyperParameters) supportedTrainingInstanceTypes(List<String> supportedTrainingInstanceTypes) supportedTuningJobObjectiveMetrics(List<? extends Object> supportedTuningJobObjectiveMetrics) supportedTuningJobObjectiveMetrics(IResolvable supportedTuningJobObjectiveMetrics) supportsDistributedTraining(Boolean supportsDistributedTraining) supportsDistributedTraining(IResolvable supportsDistributedTraining) trainingChannels(List<? extends Object> trainingChannels) trainingChannels(IResolvable trainingChannels) trainingImage(String trainingImage) Sets the value ofCfnAlgorithmPropsMixin.TrainingSpecificationProperty.getTrainingImage()trainingImageDigest(String trainingImageDigest)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
metricDefinitions
@Stability(Stable) public CfnAlgorithmPropsMixin.TrainingSpecificationProperty.Builder metricDefinitions(IResolvable metricDefinitions) - Parameters:
metricDefinitions- the value to be set.- Returns:
this
-
metricDefinitions
@Stability(Stable) public CfnAlgorithmPropsMixin.TrainingSpecificationProperty.Builder metricDefinitions(List<? extends Object> metricDefinitions) - Parameters:
metricDefinitions- the value to be set.- Returns:
this
-
supportedHyperParameters
@Stability(Stable) public CfnAlgorithmPropsMixin.TrainingSpecificationProperty.Builder supportedHyperParameters(IResolvable supportedHyperParameters) Sets the value ofCfnAlgorithmPropsMixin.TrainingSpecificationProperty.getSupportedHyperParameters()- Parameters:
supportedHyperParameters- the value to be set.- Returns:
this
-
supportedHyperParameters
@Stability(Stable) public CfnAlgorithmPropsMixin.TrainingSpecificationProperty.Builder supportedHyperParameters(List<? extends Object> supportedHyperParameters) Sets the value ofCfnAlgorithmPropsMixin.TrainingSpecificationProperty.getSupportedHyperParameters()- Parameters:
supportedHyperParameters- the value to be set.- Returns:
this
-
supportedTrainingInstanceTypes
@Stability(Stable) public CfnAlgorithmPropsMixin.TrainingSpecificationProperty.Builder supportedTrainingInstanceTypes(List<String> supportedTrainingInstanceTypes) Sets the value ofCfnAlgorithmPropsMixin.TrainingSpecificationProperty.getSupportedTrainingInstanceTypes()- Parameters:
supportedTrainingInstanceTypes- the value to be set.- Returns:
this
-
supportedTuningJobObjectiveMetrics
@Stability(Stable) public CfnAlgorithmPropsMixin.TrainingSpecificationProperty.Builder supportedTuningJobObjectiveMetrics(IResolvable supportedTuningJobObjectiveMetrics) Sets the value ofCfnAlgorithmPropsMixin.TrainingSpecificationProperty.getSupportedTuningJobObjectiveMetrics()- Parameters:
supportedTuningJobObjectiveMetrics- the value to be set.- Returns:
this
-
supportedTuningJobObjectiveMetrics
@Stability(Stable) public CfnAlgorithmPropsMixin.TrainingSpecificationProperty.Builder supportedTuningJobObjectiveMetrics(List<? extends Object> supportedTuningJobObjectiveMetrics) Sets the value ofCfnAlgorithmPropsMixin.TrainingSpecificationProperty.getSupportedTuningJobObjectiveMetrics()- Parameters:
supportedTuningJobObjectiveMetrics- the value to be set.- Returns:
this
-
supportsDistributedTraining
@Stability(Stable) public CfnAlgorithmPropsMixin.TrainingSpecificationProperty.Builder supportsDistributedTraining(Boolean supportsDistributedTraining) Sets the value ofCfnAlgorithmPropsMixin.TrainingSpecificationProperty.getSupportsDistributedTraining()- Parameters:
supportsDistributedTraining- the value to be set.- Returns:
this
-
supportsDistributedTraining
@Stability(Stable) public CfnAlgorithmPropsMixin.TrainingSpecificationProperty.Builder supportsDistributedTraining(IResolvable supportsDistributedTraining) Sets the value ofCfnAlgorithmPropsMixin.TrainingSpecificationProperty.getSupportsDistributedTraining()- Parameters:
supportsDistributedTraining- the value to be set.- Returns:
this
-
trainingChannels
@Stability(Stable) public CfnAlgorithmPropsMixin.TrainingSpecificationProperty.Builder trainingChannels(IResolvable trainingChannels) - Parameters:
trainingChannels- the value to be set.- Returns:
this
-
trainingChannels
@Stability(Stable) public CfnAlgorithmPropsMixin.TrainingSpecificationProperty.Builder trainingChannels(List<? extends Object> trainingChannels) - Parameters:
trainingChannels- the value to be set.- Returns:
this
-
trainingImage
@Stability(Stable) public CfnAlgorithmPropsMixin.TrainingSpecificationProperty.Builder trainingImage(String trainingImage) Sets the value ofCfnAlgorithmPropsMixin.TrainingSpecificationProperty.getTrainingImage()- Parameters:
trainingImage- the value to be set.- Returns:
this
-
trainingImageDigest
@Stability(Stable) public CfnAlgorithmPropsMixin.TrainingSpecificationProperty.Builder trainingImageDigest(String trainingImageDigest) - Parameters:
trainingImageDigest- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAlgorithmPropsMixin.TrainingSpecificationProperty>- Returns:
- a new instance of
CfnAlgorithmPropsMixin.TrainingSpecificationProperty - Throws:
NullPointerException- if any required attribute was not provided
-