public RefreshFrequency withInterval(RefreshInterval interval) {
        this.interval = interval.toString();
        return this;
    }
<p>
The interval between scheduled refreshes. Valid values are as follows:
</p>
<ul>
<li>
<p>
<code>MINUTE15</code>: The dataset refreshes every 15 minutes. This value is only supported for incremental
refreshes. This interval can only be used for one schedule per dataset.
</p>
</li>
<li>
<p>
<code>MINUTE30</code>:The dataset refreshes every 30 minutes. This value is only supported for incremental
refreshes. This interval can only be used for one schedule per dataset.
</p>
</li>
<li>
<p>
<code>HOURLY</code>: The dataset refreshes every hour. This interval can only be used for one schedule per
dataset.
</p>
</li>
<li>
<p>
<code>DAILY</code>: The dataset refreshes every day.
</p>
</li>
<li>
<p>
<code>WEEKLY</code>: The dataset refreshes every week.
</p>
</li>
<li>
<p>
<code>MONTHLY</code>: The dataset refreshes every month.
</p>
</li>
</ul>

@param interval
       The interval between scheduled refreshes. Valid values are as follows:</p>
       <ul>
       <li>
       <p>
       <code>MINUTE15</code>: The dataset refreshes every 15 minutes. This value is only supported for
       incremental refreshes. This interval can only be used for one schedule per dataset.
       </p>
       </li>
       <li>
       <p>
       <code>MINUTE30</code>:The dataset refreshes every 30 minutes. This value is only supported for incremental
       refreshes. This interval can only be used for one schedule per dataset.
       </p>
       </li>
       <li>
       <p>
       <code>HOURLY</code>: The dataset refreshes every hour. This interval can only be used for one schedule per
       dataset.
       </p>
       </li>
       <li>
       <p>
       <code>DAILY</code>: The dataset refreshes every day.
       </p>
       </li>
       <li>
       <p>
       <code>WEEKLY</code>: The dataset refreshes every week.
       </p>
       </li>
       <li>
       <p>
       <code>MONTHLY</code>: The dataset refreshes every month.
       </p>
       </li>
@return Returns a reference to this object so that method calls can be chained together.
@see RefreshInterval
aws-java-sdk-quicksight/src/main/java/com/amazonaws/services/quicksight/model/RefreshFrequency.java