public DescribeFleetMetricResult withUnit(FleetMetricUnit unit) {
        this.unit = unit.toString();
        return this;
    }
<p>
Used to support unit transformation such as milliseconds to seconds. The unit must be supported by <a
href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_MetricDatum.html">CW metric</a>.
</p>

@param unit
       Used to support unit transformation such as milliseconds to seconds. The unit must be supported by <a
       href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_MetricDatum.html">CW
       metric</a>.
@return Returns a reference to this object so that method calls can be chained together.
@see FleetMetricUnit
aws-java-sdk-iot/src/main/java/com/amazonaws/services/iot/model/DescribeFleetMetricResult.java