public void setTimeGranularity(String timeGranularity) {
        this.timeGranularity = timeGranularity;
    }
<p>
The <code>TimeGranularity</code> for an <code>AggregationPartitionBy</code>.
</p>

@param timeGranularity
       The <code>TimeGranularity</code> for an <code>AggregationPartitionBy</code>.
@see TimeGranularity
aws-java-sdk-quicksight/src/main/java/com/amazonaws/services/quicksight/model/AggregationPartitionBy.java