@Deprecated
    public ListGroupsResult withGroups(Group... groups) {
        if (this.groups == null) {
            setGroups(new java.util.ArrayList<Group>(groups.length));
        }
        for (Group ele : groups) {
            this.groups.add(ele);
        }
        return this;
    }
<important>
<p>
<i> <b>Deprecated - don't use this field. Use the <code>GroupIdentifiers</code> response field instead.</b> </i>
</p>
</important>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setGroups(java.util.Collection)} or {@link #withGroups(java.util.Collection)} if you want to override the
existing values.
</p>

@param groups
       <p>
       <i> <b>Deprecated - don't use this field. Use the <code>GroupIdentifiers</code> response field
       instead.</b> </i>
       </p>
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-resourcegroups/src/main/java/com/amazonaws/services/resourcegroups/model/ListGroupsResult.java