public MetricDataQuery withMetricStat(MetricStat metricStat) {
        setMetricStat(metricStat);
        return this;
    }
<p>
Information about the metric data to return.
</p>
<p>
Conditional: Within each <code>MetricDataQuery</code> object, you must specify either <code>Expression</code> or
<code>MetricStat</code>, but not both.
</p>

@param metricStat
       Information about the metric data to return.</p>
       <p>
       Conditional: Within each <code>MetricDataQuery</code> object, you must specify either
       <code>Expression</code> or <code>MetricStat</code>, but not both.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-autoscaling/src/main/java/com/amazonaws/services/autoscaling/model/MetricDataQuery.java