Class CfnModelCard.MetricGroupProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnModelCard.MetricGroupProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnModelCard.MetricGroupProperty>
- Enclosing interface:
CfnModelCard.MetricGroupProperty
@Stability(Stable)
public static final class CfnModelCard.MetricGroupProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnModelCard.MetricGroupProperty>
A builder for
CfnModelCard.MetricGroupProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.metricData
(List<? extends Object> metricData) Sets the value ofCfnModelCard.MetricGroupProperty.getMetricData()
metricData
(IResolvable metricData) Sets the value ofCfnModelCard.MetricGroupProperty.getMetricData()
Sets the value ofCfnModelCard.MetricGroupProperty.getName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
metricData
@Stability(Stable) public CfnModelCard.MetricGroupProperty.Builder metricData(IResolvable metricData) Sets the value ofCfnModelCard.MetricGroupProperty.getMetricData()
- Parameters:
metricData
- A list of metric objects. TheMetricDataItems
list can have one of the following values:. This parameter is required.bar_chart_metric
matrix_metric
simple_metric
linear_graph_metric
For more information about the metric schema, see the definition section of the model card JSON schema .
- Returns:
this
-
metricData
@Stability(Stable) public CfnModelCard.MetricGroupProperty.Builder metricData(List<? extends Object> metricData) Sets the value ofCfnModelCard.MetricGroupProperty.getMetricData()
- Parameters:
metricData
- A list of metric objects. TheMetricDataItems
list can have one of the following values:. This parameter is required.bar_chart_metric
matrix_metric
simple_metric
linear_graph_metric
For more information about the metric schema, see the definition section of the model card JSON schema .
- Returns:
this
-
name
Sets the value ofCfnModelCard.MetricGroupProperty.getName()
- Parameters:
name
- The metric group name. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnModelCard.MetricGroupProperty>
- Returns:
- a new instance of
CfnModelCard.MetricGroupProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-