public void setUnit(String unit) {
        this.unit = unit;
    }
<p>
The unit to use for the returned data points. For a complete list of the units that CloudWatch supports, see the
<a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_MetricDatum.html">MetricDatum</a>
data type in the <i>Amazon CloudWatch API Reference</i>.
</p>

@param unit
       The unit to use for the returned data points. For a complete list of the units that CloudWatch supports,
       see the <a
       href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_MetricDatum.html">MetricDatum
       </a> data type in the <i>Amazon CloudWatch API Reference</i>.
aws-java-sdk-autoscaling/src/main/java/com/amazonaws/services/autoscaling/model/MetricStat.java