public ListKafkaVersionsRequest withMaxResults(Integer maxResults) {
        setMaxResults(maxResults);
        return this;
    }
<p>
The maximum number of results to return in the response. If there are more results, the response includes a
NextToken parameter.
</p>

@param maxResults
       <p>
       The maximum number of results to return in the response. If there are more results, the response includes
       a NextToken parameter.
       </p>
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-kafka/src/main/java/com/amazonaws/services/kafka/model/ListKafkaVersionsRequest.java