public AlgorithmSpecification withMetricDefinitions(java.util.Collection<MetricDefinition> metricDefinitions) {
        setMetricDefinitions(metricDefinitions);
        return this;
    }
<p>
A list of metric definition objects. Each object specifies the metric name and regular expressions used to parse
algorithm logs. SageMaker publishes each metric to Amazon CloudWatch.
</p>

@param metricDefinitions
       A list of metric definition objects. Each object specifies the metric name and regular expressions used to
       parse algorithm logs. SageMaker publishes each metric to Amazon CloudWatch.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-sagemaker/src/main/java/com/amazonaws/services/sagemaker/model/AlgorithmSpecification.java