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

@param duration
       The number of minutes' worth of events to retrieve.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-dax/src/main/java/com/amazonaws/services/dax/model/DescribeEventsRequest.java