public String getUnit() {
        return this.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>

@return 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