public DescribeMacHostsRequest withMaxResults(Integer maxResults) {
        setMaxResults(maxResults);
        return this;
    }
<p>
The maximum number of results to return for the request in a single page. The remaining results can be seen by
sending another request with the returned <code>nextToken</code> value. This value can be between 5 and 500. If
<code>maxResults</code> is given a larger value than 500, you receive an error.
</p>

@param maxResults
       The maximum number of results to return for the request in a single page. The remaining results can be
       seen by sending another request with the returned <code>nextToken</code> value. This value can be between
       5 and 500. If <code>maxResults</code> is given a larger value than 500, you receive an error.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/DescribeMacHostsRequest.java