public void setGranularity(String granularity) {
        this.granularity = granularity;
    }
<p>
How granular you want the forecast to be. You can get 3 months of <code>DAILY</code> forecasts or 12 months of
<code>MONTHLY</code> forecasts.
</p>
<p>
The <code>GetUsageForecast</code> operation supports only <code>DAILY</code> and <code>MONTHLY</code>
granularities.
</p>

@param granularity
       How granular you want the forecast to be. You can get 3 months of <code>DAILY</code> forecasts or 12
       months of <code>MONTHLY</code> forecasts.</p>
       <p>
       The <code>GetUsageForecast</code> operation supports only <code>DAILY</code> and <code>MONTHLY</code>
       granularities.
@see Granularity
aws-java-sdk-costexplorer/src/main/java/com/amazonaws/services/costexplorer/model/GetUsageForecastRequest.java