Class CfnModelCard.EvaluationDetailProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnModelCard.EvaluationDetailProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnModelCard.EvaluationDetailProperty>
- Enclosing interface:
- CfnModelCard.EvaluationDetailProperty
@Stability(Stable)
public static final class CfnModelCard.EvaluationDetailProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnModelCard.EvaluationDetailProperty>
A builder for
CfnModelCard.EvaluationDetailProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnModelCard.EvaluationDetailProperty.getDatasets()
evaluationJobArn
(String evaluationJobArn) Sets the value ofCfnModelCard.EvaluationDetailProperty.getEvaluationJobArn()
evaluationObservation
(String evaluationObservation) Sets the value ofCfnModelCard.EvaluationDetailProperty.getEvaluationObservation()
Sets the value ofCfnModelCard.EvaluationDetailProperty.getMetadata()
metadata
(IResolvable metadata) Sets the value ofCfnModelCard.EvaluationDetailProperty.getMetadata()
metricGroups
(List<? extends Object> metricGroups) Sets the value ofCfnModelCard.EvaluationDetailProperty.getMetricGroups()
metricGroups
(IResolvable metricGroups) Sets the value ofCfnModelCard.EvaluationDetailProperty.getMetricGroups()
Sets the value ofCfnModelCard.EvaluationDetailProperty.getName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnModelCard.EvaluationDetailProperty.getName()
- Parameters:
name
- The evaluation job name. This parameter is required.- Returns:
this
-
datasets
@Stability(Stable) public CfnModelCard.EvaluationDetailProperty.Builder datasets(List<String> datasets) Sets the value ofCfnModelCard.EvaluationDetailProperty.getDatasets()
- Parameters:
datasets
- The location of the datasets used to evaluate the model.- Returns:
this
-
evaluationJobArn
@Stability(Stable) public CfnModelCard.EvaluationDetailProperty.Builder evaluationJobArn(String evaluationJobArn) Sets the value ofCfnModelCard.EvaluationDetailProperty.getEvaluationJobArn()
- Parameters:
evaluationJobArn
- The Amazon Resource Name (ARN) of the evaluation job.- Returns:
this
-
evaluationObservation
@Stability(Stable) public CfnModelCard.EvaluationDetailProperty.Builder evaluationObservation(String evaluationObservation) Sets the value ofCfnModelCard.EvaluationDetailProperty.getEvaluationObservation()
- Parameters:
evaluationObservation
- Any observations made during the model evaluation.- Returns:
this
-
metadata
@Stability(Stable) public CfnModelCard.EvaluationDetailProperty.Builder metadata(IResolvable metadata) Sets the value ofCfnModelCard.EvaluationDetailProperty.getMetadata()
- Parameters:
metadata
- Additional attributes associated with the evaluation results.- Returns:
this
-
metadata
@Stability(Stable) public CfnModelCard.EvaluationDetailProperty.Builder metadata(Map<String, String> metadata) Sets the value ofCfnModelCard.EvaluationDetailProperty.getMetadata()
- Parameters:
metadata
- Additional attributes associated with the evaluation results.- Returns:
this
-
metricGroups
@Stability(Stable) public CfnModelCard.EvaluationDetailProperty.Builder metricGroups(IResolvable metricGroups) Sets the value ofCfnModelCard.EvaluationDetailProperty.getMetricGroups()
- Parameters:
metricGroups
- An evaluation Metric Group object.- Returns:
this
-
metricGroups
@Stability(Stable) public CfnModelCard.EvaluationDetailProperty.Builder metricGroups(List<? extends Object> metricGroups) Sets the value ofCfnModelCard.EvaluationDetailProperty.getMetricGroups()
- Parameters:
metricGroups
- An evaluation Metric Group object.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnModelCard.EvaluationDetailProperty>
- Returns:
- a new instance of
CfnModelCard.EvaluationDetailProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-