public MetricStat withStat(String stat) {
        setStat(stat);
        return this;
    }
<p>
The statistic to return. It can include any CloudWatch statistic or extended statistic. For a list of valid
values, see the table in <a
href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#Statistic"
>Statistics</a> in the <i>Amazon CloudWatch User Guide</i>.
</p>
<p>
The most commonly used metrics for predictive scaling are <code>Average</code> and <code>Sum</code>.
</p>

@param stat
       The statistic to return. It can include any CloudWatch statistic or extended statistic. For a list of
       valid values, see the table in <a
       href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#Statistic"
       >Statistics</a> in the <i>Amazon CloudWatch User Guide</i>.</p>
       <p>
       The most commonly used metrics for predictive scaling are <code>Average</code> and <code>Sum</code>.
@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/MetricStat.java