public GetBucketMetricDataRequest withPeriod(Integer period) {
        setPeriod(period);
        return this;
    }
<p>
The granularity, in seconds, of the returned data points.
</p>
<note>
<p>
Bucket storage metrics are reported once per day. Therefore, you should specify a period of 86400 seconds, which
is the number of seconds in a day.
</p>
</note>

@param period
       The granularity, in seconds, of the returned data points.</p> <note>
       <p>
       Bucket storage metrics are reported once per day. Therefore, you should specify a period of 86400 seconds,
       which is the number of seconds in a day.
       </p>
@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/GetBucketMetricDataRequest.java