public DescribeManagedRuleGroupResult withConsumedLabels(LabelSummary... consumedLabels) {
        if (this.consumedLabels == null) {
            setConsumedLabels(new java.util.ArrayList<LabelSummary>(consumedLabels.length));
        }
        for (LabelSummary ele : consumedLabels) {
            this.consumedLabels.add(ele);
        }
        return this;
    }
<p>
The labels that one or more rules in this rule group match against in label match statements. These labels are
defined in a <code>LabelMatchStatement</code> specification, in the <a>Statement</a> definition of a rule.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setConsumedLabels(java.util.Collection)} or {@link #withConsumedLabels(java.util.Collection)} if you want
to override the existing values.
</p>

@param consumedLabels
       The labels that one or more rules in this rule group match against in label match statements. These labels
       are defined in a <code>LabelMatchStatement</code> specification, in the <a>Statement</a> definition of a
       rule.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-wafv2/src/main/java/com/amazonaws/services/wafv2/model/DescribeManagedRuleGroupResult.java