public ListRuleSetsResult withRuleSets(RuleSet... ruleSets) {
        if (this.ruleSets == null) {
            setRuleSets(new java.util.ArrayList<RuleSet>(ruleSets.length));
        }
        for (RuleSet ele : ruleSets) {
            this.ruleSets.add(ele);
        }
        return this;
    }
<p>
The list of rule sets.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setRuleSets(java.util.Collection)} or {@link #withRuleSets(java.util.Collection)} if you want to override
the existing values.
</p>

@param ruleSets
       The list of rule sets.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-mailmanager/src/main/java/com/amazonaws/services/mailmanager/model/ListRuleSetsResult.java