public IntervalDetails getInterval() {
        return this.interval;
    }
<p>
The interval period and timezone to apply to returned metrics.
</p>
<ul>
<li>
<p>
<code>IntervalPeriod</code>: An aggregated grouping applied to request metrics. Valid <code>IntervalPeriod</code>
values are: <code>FIFTEEN_MIN</code> | <code>THIRTY_MIN</code> | <code>HOUR</code> | <code>DAY</code> |
<code>WEEK</code> | <code>TOTAL</code>.
</p>
<p>
For example, if <code>IntervalPeriod</code> is selected <code>THIRTY_MIN</code>, <code>StartTime</code> and
<code>EndTime</code> differs by 1 day, then Amazon Connect returns 48 results in the response. Each result is
aggregated by the THIRTY_MIN period. By default Amazon Connect aggregates results based on the <code>TOTAL</code>
interval period.
</p>
<p>
The following list describes restrictions on <code>StartTime</code> and <code>EndTime</code> based on which
<code>IntervalPeriod</code> is requested.
</p>
<ul>
<li>
<p>
<code>FIFTEEN_MIN</code>: The difference between <code>StartTime</code> and <code>EndTime</code> must be less
than 3 days.
</p>
</li>
<li>
<p>
<code>THIRTY_MIN</code>: The difference between <code>StartTime</code> and <code>EndTime</code> must be less than
3 days.
</p>
</li>
<li>
<p>
<code>HOUR</code>: The difference between <code>StartTime</code> and <code>EndTime</code> must be less than 3
days.
</p>
</li>
<li>
<p>
<code>DAY</code>: The difference between <code>StartTime</code> and <code>EndTime</code> must be less than 35
days.
</p>
</li>
<li>
<p>
<code>WEEK</code>: The difference between <code>StartTime</code> and <code>EndTime</code> must be less than 35
days.
</p>
</li>
<li>
<p>
<code>TOTAL</code>: The difference between <code>StartTime</code> and <code>EndTime</code> must be less than 35
days.
</p>
</li>
</ul>
</li>
<li>
<p>
<code>TimeZone</code>: The timezone applied to requested metrics.
</p>
</li>
</ul>

@return The interval period and timezone to apply to returned metrics.</p>
        <ul>
        <li>
        <p>
        <code>IntervalPeriod</code>: An aggregated grouping applied to request metrics. Valid
        <code>IntervalPeriod</code> values are: <code>FIFTEEN_MIN</code> | <code>THIRTY_MIN</code> |
        <code>HOUR</code> | <code>DAY</code> | <code>WEEK</code> | <code>TOTAL</code>.
        </p>
        <p>
        For example, if <code>IntervalPeriod</code> is selected <code>THIRTY_MIN</code>, <code>StartTime</code>
        and <code>EndTime</code> differs by 1 day, then Amazon Connect returns 48 results in the response. Each
        result is aggregated by the THIRTY_MIN period. By default Amazon Connect aggregates results based on the
        <code>TOTAL</code> interval period.
        </p>
        <p>
        The following list describes restrictions on <code>StartTime</code> and <code>EndTime</code> based on
        which <code>IntervalPeriod</code> is requested.
        </p>
        <ul>
        <li>
        <p>
        <code>FIFTEEN_MIN</code>: The difference between <code>StartTime</code> and <code>EndTime</code> must be
        less than 3 days.
        </p>
        </li>
        <li>
        <p>
        <code>THIRTY_MIN</code>: The difference between <code>StartTime</code> and <code>EndTime</code> must be
        less than 3 days.
        </p>
        </li>
        <li>
        <p>
        <code>HOUR</code>: The difference between <code>StartTime</code> and <code>EndTime</code> must be less
        than 3 days.
        </p>
        </li>
        <li>
        <p>
        <code>DAY</code>: The difference between <code>StartTime</code> and <code>EndTime</code> must be less
        than 35 days.
        </p>
        </li>
        <li>
        <p>
        <code>WEEK</code>: The difference between <code>StartTime</code> and <code>EndTime</code> must be less
        than 35 days.
        </p>
        </li>
        <li>
        <p>
        <code>TOTAL</code>: The difference between <code>StartTime</code> and <code>EndTime</code> must be less
        than 35 days.
        </p>
        </li>
        </ul>
        </li>
        <li>
        <p>
        <code>TimeZone</code>: The timezone applied to requested metrics.
        </p>
        </li>
aws-java-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetMetricDataV2Request.java