public Metric withMetricName(String metricName) {
        setMetricName(metricName);
        return this;
    }
<p>
The name of the metric to use.
</p>

@param metricName
       The name of the metric to use.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-applicationsignals/src/main/java/com/amazonaws/services/applicationsignals/model/Metric.java