public MetricStat withStat(String stat) {
        setStat(stat);
        return this;
    }
<p>
The statistic to use for comparison to the threshold. It can be any CloudWatch statistic or extended statistic.
For more information about statistics, see <a
href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html">CloudWatch
statistics definitions</a>.
</p>

@param stat
       The statistic to use for comparison to the threshold. It can be any CloudWatch statistic or extended
       statistic. For more information about statistics, see <a
       href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html"
       >CloudWatch statistics definitions</a>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-applicationsignals/src/main/java/com/amazonaws/services/applicationsignals/model/MetricStat.java