public MetricDatum withUnit(Unit unit) {
        this.unit = unit.toString();
        return this;
    }
<p>
<b>Internal only</b>. The unit used to store the metric.
</p>

@param unit
       <b>Internal only</b>. The unit used to store the metric.
@return Returns a reference to this object so that method calls can be chained together.
@see Unit
aws-java-sdk-mwaa/src/main/java/com/amazonaws/services/mwaa/model/MetricDatum.java