public GetResourceMetricsRequest withMaxResults(Integer maxResults) {
        setMaxResults(maxResults);
        return this;
    }
<p>
The maximum number of items to return in the response. If more items exist than the specified
<code>MaxRecords</code> value, a pagination token is included in the response so that the remaining results can
be retrieved.
</p>

@param maxResults
       The maximum number of items to return in the response. If more items exist than the specified
       <code>MaxRecords</code> value, a pagination token is included in the response so that the remaining
       results can be retrieved.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-pi/src/main/java/com/amazonaws/services/pi/model/GetResourceMetricsRequest.java