public GetInstanceMetricDataRequest withPeriod(Integer period) {
        setPeriod(period);
        return this;
    }
<p>
The granularity, in seconds, of the returned data points.
</p>
<p>
The <code>StatusCheckFailed</code>, <code>StatusCheckFailed_Instance</code>, and
<code>StatusCheckFailed_System</code> instance metric data is available in 1-minute (60 seconds) granularity. All
other instance metric data is available in 5-minute (300 seconds) granularity.
</p>

@param period
       The granularity, in seconds, of the returned data points.</p>
       <p>
       The <code>StatusCheckFailed</code>, <code>StatusCheckFailed_Instance</code>, and
       <code>StatusCheckFailed_System</code> instance metric data is available in 1-minute (60 seconds)
       granularity. All other instance metric data is available in 5-minute (300 seconds) granularity.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-lightsail/src/main/java/com/amazonaws/services/lightsail/model/GetInstanceMetricDataRequest.java