public ListCollectionsRequest withMaxResults(Integer maxResults) {
        setMaxResults(maxResults);
        return this;
    }
<p>
The maximum number of results to return. Default is 20. You can use <code>nextToken</code> to get the next page
of results.
</p>

@param maxResults
       The maximum number of results to return. Default is 20. You can use <code>nextToken</code> to get the next
       page of results.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-opensearchserverless/src/main/java/com/amazonaws/services/opensearchserverless/model/ListCollectionsRequest.java