public SearchIndexRequest withMaxResults(Integer maxResults) {
        setMaxResults(maxResults);
        return this;
    }
<p>
The maximum number of results to return per page at one time. This maximum number cannot exceed 100. The response
might contain fewer results but will never contain more. You can use <a href=
"https://docs.aws.amazon.com/iot/latest/apireference/API_SearchIndex.html#iot-SearchIndex-request-nextToken">
<code>nextToken</code> </a> to retrieve the next set of results until <code>nextToken</code> returns
<code>NULL</code>.
</p>

@param maxResults
       The maximum number of results to return per page at one time. This maximum number cannot exceed 100. The
       response might contain fewer results but will never contain more. You can use <a href=
       "https://docs.aws.amazon.com/iot/latest/apireference/API_SearchIndex.html#iot-SearchIndex-request-nextToken"
       > <code>nextToken</code> </a> to retrieve the next set of results until <code>nextToken</code> returns
       <code>NULL</code>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-iot/src/main/java/com/amazonaws/services/iot/model/SearchIndexRequest.java