Class AlgorithmSpecification.Builder
java.lang.Object
software.amazon.awscdk.services.stepfunctions.tasks.AlgorithmSpecification.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AlgorithmSpecification>
- Enclosing interface:
AlgorithmSpecification
@Stability(Stable)
public static final class AlgorithmSpecification.Builder
extends Object
implements software.amazon.jsii.Builder<AlgorithmSpecification>
A builder for
AlgorithmSpecification
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionalgorithmName
(String algorithmName) Sets the value ofAlgorithmSpecification.getAlgorithmName()
build()
Builds the configured instance.metricDefinitions
(List<? extends MetricDefinition> metricDefinitions) Sets the value ofAlgorithmSpecification.getMetricDefinitions()
trainingImage
(DockerImage trainingImage) Sets the value ofAlgorithmSpecification.getTrainingImage()
trainingInputMode
(InputMode trainingInputMode) Sets the value ofAlgorithmSpecification.getTrainingInputMode()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
algorithmName
Sets the value ofAlgorithmSpecification.getAlgorithmName()
- Parameters:
algorithmName
- Name of the algorithm resource to use for the training job. This must be an algorithm resource that you created or subscribe to on AWS Marketplace. If you specify a value for this parameter, you can't specify a value for TrainingImage.- Returns:
this
-
metricDefinitions
@Stability(Stable) public AlgorithmSpecification.Builder metricDefinitions(List<? extends MetricDefinition> metricDefinitions) Sets the value ofAlgorithmSpecification.getMetricDefinitions()
- Parameters:
metricDefinitions
- List of metric definition objects. Each object specifies the metric name and regular expressions used to parse algorithm logs.- Returns:
this
-
trainingImage
Sets the value ofAlgorithmSpecification.getTrainingImage()
- Parameters:
trainingImage
- Registry path of the Docker image that contains the training algorithm.- Returns:
this
-
trainingInputMode
@Stability(Stable) public AlgorithmSpecification.Builder trainingInputMode(InputMode trainingInputMode) Sets the value ofAlgorithmSpecification.getTrainingInputMode()
- Parameters:
trainingInputMode
- Input mode that the algorithm supports.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<AlgorithmSpecification>
- Returns:
- a new instance of
AlgorithmSpecification
- Throws:
NullPointerException
- if any required attribute was not provided
-