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 SummaryConstructors
- 
Method SummaryModifier 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- 
Builderpublic Builder()
 
- 
- 
Method Details- 
algorithmNameSets 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
 
- 
trainingImageSets 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
 
- 
buildBuilds the configured instance.- Specified by:
- buildin interface- software.amazon.jsii.Builder<AlgorithmSpecification>
- Returns:
- a new instance of AlgorithmSpecification
- Throws:
- NullPointerException- if any required attribute was not provided
 
 
-