public DataQuery withStatistic(String statistic) {
        setStatistic(statistic);
        return this;
    }
<p>
The metric data aggregation period, <code>p50</code>, between the specified <code>startDate</code> and
<code>endDate</code>. For example, a metric of <code>five_minutes</code> is the median of all the data points
gathered within those five minutes. <code>p50</code> is the only supported metric.
</p>

@param statistic
       The metric data aggregation period, <code>p50</code>, between the specified <code>startDate</code> and
       <code>endDate</code>. For example, a metric of <code>five_minutes</code> is the median of all the data
       points gathered within those five minutes. <code>p50</code> is the only supported metric.
@return Returns a reference to this object so that method calls can be chained together.
@see StatisticType
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/DataQuery.java