public ListServicesByNamespaceRequest withMaxResults(Integer maxResults) {
        setMaxResults(maxResults);
        return this;
    }
<p>
The maximum number of service results that <code>ListServicesByNamespace</code> returns in paginated output. When
this parameter is used, <code>ListServicesByNamespace</code> only returns <code>maxResults</code> results in a
single page along with a <code>nextToken</code> response element. The remaining results of the initial request
can be seen by sending another <code>ListServicesByNamespace</code> request with the returned
<code>nextToken</code> value. This value can be between 1 and 100. If this parameter isn't used, then
<code>ListServicesByNamespace</code> returns up to 10 results and a <code>nextToken</code> value if applicable.
</p>

@param maxResults
       The maximum number of service results that <code>ListServicesByNamespace</code> returns in paginated
       output. When this parameter is used, <code>ListServicesByNamespace</code> only returns
       <code>maxResults</code> results in a single page along with a <code>nextToken</code> response element. The
       remaining results of the initial request can be seen by sending another
       <code>ListServicesByNamespace</code> request with the returned <code>nextToken</code> value. This value
       can be between 1 and 100. If this parameter isn't used, then <code>ListServicesByNamespace</code> returns
       up to 10 results and a <code>nextToken</code> value if applicable.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ecs/src/main/java/com/amazonaws/services/ecs/model/ListServicesByNamespaceRequest.java