public MetricStat withMetric(Metric metric) {
        setMetric(metric);
        return this;
    }
<p>
The metric to use as the service level indicator, including the metric name, namespace, and dimensions.
</p>

@param metric
       The metric to use as the service level indicator, including the metric name, namespace, and dimensions.
@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/MetricStat.java