public Usage withUnit(String unit) {
        setUnit(unit);
        return this;
    }
<p>
The usage unit.
</p>

@param unit
       The usage unit.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-costoptimizationhub/src/main/java/com/amazonaws/services/costoptimizationhub/model/Usage.java