public FinalAutoMLJobObjectiveMetric withMetricName(String metricName) {
        setMetricName(metricName);
        return this;
    }
<p>
The name of the metric with the best result. For a description of the possible objective metrics, see <a
href="https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AutoMLJobObjective.html"
>AutoMLJobObjective$MetricName</a>.
</p>

@param metricName
       The name of the metric with the best result. For a description of the possible objective metrics, see <a
       href="https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AutoMLJobObjective.html">
       AutoMLJobObjective$MetricName</a>.
@return Returns a reference to this object so that method calls can be chained together.
@see AutoMLMetricEnum
aws-java-sdk-sagemaker/src/main/java/com/amazonaws/services/sagemaker/model/FinalAutoMLJobObjectiveMetric.java