public ListResourcesRequest withMaxResults(Integer maxResults) {
        setMaxResults(maxResults);
        return this;
    }
<p>
Specifies the total number of results that you want included on each page of the response. If you do not include
this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the
number you specify, the <code>NextToken</code> response element is returned with a value (not null). Include the
specified value as the <code>NextToken</code> request parameter in the next call to the operation to get the next
part of the results. Note that the service might return fewer results than the maximum even when there are more
results available. You should check <code>NextToken</code> after every operation to ensure that you receive all
of the results.
</p>

@param maxResults
       Specifies the total number of results that you want included on each page of the response. If you do not
       include this parameter, it defaults to a value that is specific to the operation. If additional items
       exist beyond the number you specify, the <code>NextToken</code> response element is returned with a value
       (not null). Include the specified value as the <code>NextToken</code> request parameter in the next call
       to the operation to get the next part of the results. Note that the service might return fewer results
       than the maximum even when there are more results available. You should check <code>NextToken</code> after
       every operation to ensure that you receive all of the results.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ram/src/main/java/com/amazonaws/services/ram/model/ListResourcesRequest.java