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