public TumblingWindow withInterval(String interval) {
        setInterval(interval);
        return this;
    }
<p>
The time interval for the tumbling window. The interval time must be between 1 minute and 1 week.
</p>
<p>
IoT SiteWise computes the <code>1w</code> interval the end of Sunday at midnight each week (UTC), the
<code>1d</code> interval at the end of each day at midnight (UTC), the <code>1h</code> interval at the end of
each hour, and so on.
</p>
<p>
When IoT SiteWise aggregates data points for metric computations, the start of each interval is exclusive and the
end of each interval is inclusive. IoT SiteWise places the computed data point at the end of the interval.
</p>

@param interval
       The time interval for the tumbling window. The interval time must be between 1 minute and 1 week.</p>
       <p>
       IoT SiteWise computes the <code>1w</code> interval the end of Sunday at midnight each week (UTC), the
       <code>1d</code> interval at the end of each day at midnight (UTC), the <code>1h</code> interval at the end
       of each hour, and so on.
       </p>
       <p>
       When IoT SiteWise aggregates data points for metric computations, the start of each interval is exclusive
       and the end of each interval is inclusive. IoT SiteWise places the computed data point at the end of the
       interval.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-iotsitewise/src/main/java/com/amazonaws/services/iotsitewise/model/TumblingWindow.java