public EnabledMetric withGranularity(String granularity) {
        setGranularity(granularity);
        return this;
    }
<p>
The granularity of the metric. The only valid value is <code>1Minute</code>.
</p>

@param granularity
       The granularity of the metric. The only valid value is <code>1Minute</code>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-autoscaling/src/main/java/com/amazonaws/services/autoscaling/model/EnabledMetric.java