public void setUnit(String unit) {
        this.unit = unit;
    }
<p>
The unit.
</p>

@param unit
       The unit.
@see MetricUnit
aws-java-sdk-lightsail/src/main/java/com/amazonaws/services/lightsail/model/MetricDatapoint.java