public CustomizedLoadMetricSpecification withUnit(String unit) {
        setUnit(unit);
        return this;
    }
<p>
The unit of the metric.
</p>

@param unit
       The unit of the metric.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-autoscalingplans/src/main/java/com/amazonaws/services/autoscalingplans/model/CustomizedLoadMetricSpecification.java