public DescribeEventsRequest withDuration(Integer duration) {
        setDuration(duration);
        return this;
    }
<p>
The number of minutes to retrieve events for.
</p>
<p>
Default: 60
</p>

@param duration
       The number of minutes to retrieve events for.</p>
       <p>
       Default: 60
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-docdb/src/main/java/com/amazonaws/services/docdb/model/DescribeEventsRequest.java