Class CfnModelCard.MetricDataItemsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnModelCard.MetricDataItemsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnModelCard.MetricDataItemsProperty>
- Enclosing interface:
CfnModelCard.MetricDataItemsProperty
@Stability(Stable)
public static final class CfnModelCard.MetricDataItemsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnModelCard.MetricDataItemsProperty>
A builder for
CfnModelCard.MetricDataItemsProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnModelCard.MetricDataItemsProperty.getName()
Sets the value ofCfnModelCard.MetricDataItemsProperty.getNotes()
Sets the value ofCfnModelCard.MetricDataItemsProperty.getType()
Sets the value ofCfnModelCard.MetricDataItemsProperty.getValue()
Sets the value ofCfnModelCard.MetricDataItemsProperty.getXAxisName()
Sets the value ofCfnModelCard.MetricDataItemsProperty.getYAxisName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnModelCard.MetricDataItemsProperty.getName()
- Parameters:
name
- the value to be set. This parameter is required.- Returns:
this
-
type
Sets the value ofCfnModelCard.MetricDataItemsProperty.getType()
- Parameters:
type
- the value to be set. This parameter is required.- Returns:
this
-
value
Sets the value ofCfnModelCard.MetricDataItemsProperty.getValue()
- Parameters:
value
- the value to be set. This parameter is required.- Returns:
this
-
notes
Sets the value ofCfnModelCard.MetricDataItemsProperty.getNotes()
- Parameters:
notes
- the value to be set.- Returns:
this
-
xAxisName
@Stability(Stable) public CfnModelCard.MetricDataItemsProperty.Builder xAxisName(List<String> xAxisName) Sets the value ofCfnModelCard.MetricDataItemsProperty.getXAxisName()
- Parameters:
xAxisName
- the value to be set.- Returns:
this
-
yAxisName
@Stability(Stable) public CfnModelCard.MetricDataItemsProperty.Builder yAxisName(List<String> yAxisName) Sets the value ofCfnModelCard.MetricDataItemsProperty.getYAxisName()
- Parameters:
yAxisName
- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnModelCard.MetricDataItemsProperty>
- Returns:
- a new instance of
CfnModelCard.MetricDataItemsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-