public GetRelationalDatabaseMetricDataRequest withUnit(String unit) {
        setUnit(unit);
        return this;
    }
<p>
The unit for the metric data request. 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. Valid units depend on the metric data being requested. For the valid
       units with each available metric, see the <code>metricName</code> parameter.
@return Returns a reference to this object so that method calls can be chained together.
@see MetricUnit
aws-java-sdk-lightsail/src/main/java/com/amazonaws/services/lightsail/model/GetRelationalDatabaseMetricDataRequest.java