public ListTasksRequest withMaxResults(Integer maxResults) {
        setMaxResults(maxResults);
        return this;
    }
<p>
The maximum number of results to return. Use this parameter with <code>NextToken</code> to get results as a set
of sequential pages.
</p>

@param maxResults
       The maximum number of results to return. Use this parameter with <code>NextToken</code> to get results as
       a set of sequential pages.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-deadline/src/main/java/com/amazonaws/services/deadline/model/ListTasksRequest.java