public DescribeAlarmsForMetricRequest withUnit(StandardUnit unit) {
        this.unit = unit.toString();
        return this;
    }
<p>
The unit for the metric.
</p>

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