public CloudWatchAlarmDefinition withStatistic(Statistic statistic) {
        this.statistic = statistic.toString();
        return this;
    }
<p>
The statistic to apply to the metric associated with the alarm. The default is <code>AVERAGE</code>.
</p>

@param statistic
       The statistic to apply to the metric associated with the alarm. The default is <code>AVERAGE</code>.
@return Returns a reference to this object so that method calls can be chained together.
@see Statistic
aws-java-sdk-emr/src/main/java/com/amazonaws/services/elasticmapreduce/model/CloudWatchAlarmDefinition.java