public GetApproximateUsageRecordsRequest withGranularity(Granularity granularity) {
        this.granularity = granularity.toString();
        return this;
    }
<p>
How granular you want the data to be. You can enable data at hourly or daily granularity.
</p>

@param granularity
       How granular you want the data to be. You can enable data at hourly or daily granularity.
@return Returns a reference to this object so that method calls can be chained together.
@see Granularity
aws-java-sdk-costexplorer/src/main/java/com/amazonaws/services/costexplorer/model/GetApproximateUsageRecordsRequest.java