public void setUnit(String unit) {
        this.unit = unit;
    }
<p>
The unit for the metric data request.
</p>
<p>
Valid units depend on the metric data being requested. For the valid units with each available metric, see the
<code>metricName</code> parameter.
</p>

@param unit
       The unit for the metric data request.</p>
       <p>
       Valid units depend on the metric data being requested. For the valid units with each available metric, see
       the <code>metricName</code> parameter.
@see MetricUnit
aws-java-sdk-lightsail/src/main/java/com/amazonaws/services/lightsail/model/GetBucketMetricDataRequest.java