public SearchRequest withMaxResults(Integer maxResults) {
        setMaxResults(maxResults);
        return this;
    }
<p>
The maximum number of results to return in a single call to <code>Search</code>. When the number of results to be
listed is greater than the value of <code>MaxResults</code>, the response contains a <code>NextToken</code> value
that you can use in a subsequent call to <code>Search</code> to list the next set of results.
</p>

@param maxResults
       The maximum number of results to return in a single call to <code>Search</code>. When the number of
       results to be listed is greater than the value of <code>MaxResults</code>, the response contains a
       <code>NextToken</code> value that you can use in a subsequent call to <code>Search</code> to list the next
       set of results.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-datazoneexternal/src/main/java/com/amazonaws/services/datazone/model/SearchRequest.java