public void setMaxResults(Integer maxResults) {
        this.maxResults = maxResults;
    }
<p>
The maximum 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 appropriate to the operation. If additional items exist beyond those included
in the current response, the <code>NextToken</code> response element is present and has a value (is not null).
Include that value as the <code>NextToken</code> request parameter in the next call to the operation to get the
next part of the results.
</p>
<note>
<p>
An API operation can 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>
</note>

@param maxResults
       The maximum 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 appropriate to the operation. If additional items exist beyond
       those included in the current response, the <code>NextToken</code> response element is present and has a
       value (is not null). Include that value as the <code>NextToken</code> request parameter in the next call
       to the operation to get the next part of the results.</p> <note>
       <p>
       An API operation can 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>
aws-java-sdk-resourceexplorer2/src/main/java/com/amazonaws/services/resourceexplorer2/model/ListIndexesRequest.java