public DescribeActiveReceiptRuleSetResult withRules(ReceiptRule... rules) {
        if (this.rules == null) {
            setRules(new com.amazonaws.internal.SdkInternalList<ReceiptRule>(rules.length));
        }
        for (ReceiptRule ele : rules) {
            this.rules.add(ele);
        }
        return this;
    }
public DescribeActiveReceiptRuleSetResult withRules ( ReceiptRule ... rules ) { if ( this . rules == null ) { setRules ( new com . amazonaws . internal . SdkInternalList < ReceiptRule > ( rules . length ) ) ; } for ( ReceiptRule ele : rules ) { this . rules . add ( ele ) ; } return this ; }
<p>
The receipt rules that belong to the active rule set.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setRules(java.util.Collection)} or {@link #withRules(java.util.Collection)} if you want to override the
existing values.
</p>

@param rules
The receipt rules that belong to the active rule set.
@return Returns a reference to this object so that method calls can be chained together.