public CloudWatchMetricsDetail withPeriod(Integer period) {
        setPeriod(period);
        return this;
    }
<p>
The length of time associated with the CloudWatch metric in number of seconds.
</p>

@param period
       The length of time associated with the CloudWatch metric in number of seconds.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-devopsguru/src/main/java/com/amazonaws/services/devopsguru/model/CloudWatchMetricsDetail.java