public ListActivatedRulesInRuleGroupResult withActivatedRules(ActivatedRule... activatedRules) {
        if (this.activatedRules == null) {
            setActivatedRules(new java.util.ArrayList<ActivatedRule>(activatedRules.length));
        }
        for (ActivatedRule ele : activatedRules) {
            this.activatedRules.add(ele);
        }
        return this;
    }
<p>
An array of <code>ActivatedRules</code> objects.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setActivatedRules(java.util.Collection)} or {@link #withActivatedRules(java.util.Collection)} if you want
to override the existing values.
</p>

@param activatedRules
       An array of <code>ActivatedRules</code> objects.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-waf/src/main/java/com/amazonaws/services/waf/model/ListActivatedRulesInRuleGroupResult.java