public CloudWatchMetricsDetail withStat(CloudWatchMetricsStat stat) {
        this.stat = stat.toString();
        return this;
    }
<p>
The type of statistic associated with the CloudWatch metric. For more information, see <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>

@param stat
       The type of statistic associated with the CloudWatch metric. For more information, see <a
       href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#Statistic"
       >Statistics</a> in the <i>Amazon CloudWatch User Guide</i>.
@return Returns a reference to this object so that method calls can be chained together.
@see CloudWatchMetricsStat
aws-java-sdk-devopsguru/src/main/java/com/amazonaws/services/devopsguru/model/CloudWatchMetricsDetail.java