public ListTagsForResourceRequest withMaxResults(Integer maxResults) {
        setMaxResults(maxResults);
        return this;
    }
<p>
To receive a paginated response, use this parameter to specify the maximum number of results to be returned with
a single call. If the number of available results exceeds this maximum, the response includes a
<code>NextToken</code> value that you can assign to the <code>NextToken</code> request parameter to get the next
set of results.
</p>

@param maxResults
       To receive a paginated response, use this parameter to specify the maximum number of results to be
       returned with a single call. If the number of available results exceeds this maximum, the response
       includes a <code>NextToken</code> value that you can assign to the <code>NextToken</code> request
       parameter to get the next set of results.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-opsworkscm/src/main/java/com/amazonaws/services/opsworkscm/model/ListTagsForResourceRequest.java