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
Constructors -
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. TheMetricDataItemslist can have one of the following values:. This parameter is required.bar_chart_metricmatrix_metricsimple_metriclinear_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. TheMetricDataItemslist can have one of the following values:. This parameter is required.bar_chart_metricmatrix_metricsimple_metriclinear_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:
buildin interfacesoftware.amazon.jsii.Builder<CfnModelCard.MetricGroupProperty>- Returns:
- a new instance of
CfnModelCard.MetricGroupProperty - Throws:
NullPointerException- if any required attribute was not provided
-