public ListProtectionsRequest withMaxResults(Integer maxResults) {
        setMaxResults(maxResults);
        return this;
    }
<p>
The greatest number of objects that you want Shield Advanced to return to the list request. Shield Advanced might
return fewer objects than you indicate in this setting, even if more objects are available. If there are more
objects remaining, Shield Advanced will always also return a <code>NextToken</code> value in the response.
</p>
<p>
The default setting is 20.
</p>

@param maxResults
       The greatest number of objects that you want Shield Advanced to return to the list request. Shield
       Advanced might return fewer objects than you indicate in this setting, even if more objects are available.
       If there are more objects remaining, Shield Advanced will always also return a <code>NextToken</code>
       value in the response.</p>
       <p>
       The default setting is 20.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-shield/src/main/java/com/amazonaws/services/shield/model/ListProtectionsRequest.java