public DescribeAlarmsForMetricRequest withStatistic(Statistic statistic) {
        this.statistic = statistic.toString();
        return this;
    }
<p>
The statistic for the metric, other than percentiles. For percentile statistics, use
<code>ExtendedStatistics</code>.
</p>

@param statistic
       The statistic for the metric, other than percentiles. For percentile statistics, use
       <code>ExtendedStatistics</code>.
@return Returns a reference to this object so that method calls can be chained together.
@see Statistic
aws-java-sdk-cloudwatch/src/main/java/com/amazonaws/services/cloudwatch/model/DescribeAlarmsForMetricRequest.java