public DescribeResourceGroupsResult withResourceGroups(ResourceGroup... resourceGroups) {
        if (this.resourceGroups == null) {
            setResourceGroups(new java.util.ArrayList<ResourceGroup>(resourceGroups.length));
        }
        for (ResourceGroup ele : resourceGroups) {
            this.resourceGroups.add(ele);
        }
        return this;
    }
<p>
Information about a resource group.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setResourceGroups(java.util.Collection)} or {@link #withResourceGroups(java.util.Collection)} if you want
to override the existing values.
</p>

@param resourceGroups
       Information about a resource group.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-inspector/src/main/java/com/amazonaws/services/inspector/model/DescribeResourceGroupsResult.java