public GetResourceMetricsRequest withPeriodInSeconds(Integer periodInSeconds) {
        setPeriodInSeconds(periodInSeconds);
        return this;
    }
<p>
The granularity, in seconds, of the data points returned from Performance Insights. A period can be as short as
one second, or as long as one day (86400 seconds). Valid values are:
</p>
<ul>
<li>
<p>
<code>1</code> (one second)
</p>
</li>
<li>
<p>
<code>60</code> (one minute)
</p>
</li>
<li>
<p>
<code>300</code> (five minutes)
</p>
</li>
<li>
<p>
<code>3600</code> (one hour)
</p>
</li>
<li>
<p>
<code>86400</code> (twenty-four hours)
</p>
</li>
</ul>
<p>
If you don't specify <code>PeriodInSeconds</code>, then Performance Insights will choose a value for you, with a
goal of returning roughly 100-200 data points in the response.
</p>

@param periodInSeconds
       The granularity, in seconds, of the data points returned from Performance Insights. A period can be as
       short as one second, or as long as one day (86400 seconds). Valid values are:</p>
       <ul>
       <li>
       <p>
       <code>1</code> (one second)
       </p>
       </li>
       <li>
       <p>
       <code>60</code> (one minute)
       </p>
       </li>
       <li>
       <p>
       <code>300</code> (five minutes)
       </p>
       </li>
       <li>
       <p>
       <code>3600</code> (one hour)
       </p>
       </li>
       <li>
       <p>
       <code>86400</code> (twenty-four hours)
       </p>
       </li>
       </ul>
       <p>
       If you don't specify <code>PeriodInSeconds</code>, then Performance Insights will choose a value for you,
       with a goal of returning roughly 100-200 data points in the response.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-pi/src/main/java/com/amazonaws/services/pi/model/GetResourceMetricsRequest.java