public ListGroupResourcesResult withResources(ListGroupResourcesItem... resources) {
        if (this.resources == null) {
            setResources(new java.util.ArrayList<ListGroupResourcesItem>(resources.length));
        }
        for (ListGroupResourcesItem ele : resources) {
            this.resources.add(ele);
        }
        return this;
    }
<p>
An array of resources from which you can determine each resource's identity, type, and group membership status.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setResources(java.util.Collection)} or {@link #withResources(java.util.Collection)} if you want to
override the existing values.
</p>

@param resources
       An array of resources from which you can determine each resource's identity, type, and group membership
       status.
@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/ListGroupResourcesResult.java