Class MetricDefinition.Builder
java.lang.Object
software.amazon.awscdk.services.stepfunctions.tasks.MetricDefinition.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<MetricDefinition>
- Enclosing interface:
- MetricDefinition
@Stability(Stable)
public static final class MetricDefinition.Builder
extends Object
implements software.amazon.jsii.Builder<MetricDefinition>
A builder for
MetricDefinition-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofMetricDefinition.getName()Sets the value ofMetricDefinition.getRegex()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofMetricDefinition.getName()- Parameters:
name- Name of the metric. This parameter is required.- Returns:
this
-
regex
Sets the value ofMetricDefinition.getRegex()- Parameters:
regex- Regular expression that searches the output of a training job and gets the value of the metric. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<MetricDefinition>- Returns:
- a new instance of
MetricDefinition - Throws:
NullPointerException- if any required attribute was not provided
-