public MetricDataV2 withMetric(MetricV2 metric) {
        setMetric(metric);
        return this;
    }
<p>
The metric name, thresholds, and metric filters of the returned metric.
</p>

@param metric
       The metric name, thresholds, and metric filters of the returned metric.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-connect/src/main/java/com/amazonaws/services/connect/model/MetricDataV2.java