public ListEventBridgeRuleTemplateGroupsResult withEventBridgeRuleTemplateGroups(EventBridgeRuleTemplateGroupSummary... eventBridgeRuleTemplateGroups) {
        if (this.eventBridgeRuleTemplateGroups == null) {
            setEventBridgeRuleTemplateGroups(new java.util.ArrayList<EventBridgeRuleTemplateGroupSummary>(eventBridgeRuleTemplateGroups.length));
        }
        for (EventBridgeRuleTemplateGroupSummary ele : eventBridgeRuleTemplateGroups) {
            this.eventBridgeRuleTemplateGroups.add(ele);
        }
        return this;
    }
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setEventBridgeRuleTemplateGroups(java.util.Collection)} or
{@link #withEventBridgeRuleTemplateGroups(java.util.Collection)} if you want to override the existing values.
</p>

@param eventBridgeRuleTemplateGroups
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/model/ListEventBridgeRuleTemplateGroupsResult.java