public ListSecurityPoliciesRequest withMaxResults(Integer maxResults) {
        setMaxResults(maxResults);
        return this;
    }
<p>
An optional parameter that specifies the maximum number of results to return. You can use <code>nextToken</code>
to get the next page of results. The default is 20.
</p>

@param maxResults
       An optional parameter that specifies the maximum number of results to return. You can use
       <code>nextToken</code> to get the next page of results. The default is 20.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-opensearchserverless/src/main/java/com/amazonaws/services/opensearchserverless/model/ListSecurityPoliciesRequest.java