public CreateResourceGroupRequest withResourceGroupTags(ResourceGroupTag... resourceGroupTags) {
        if (this.resourceGroupTags == null) {
            setResourceGroupTags(new java.util.ArrayList<ResourceGroupTag>(resourceGroupTags.length));
        }
        for (ResourceGroupTag ele : resourceGroupTags) {
            this.resourceGroupTags.add(ele);
        }
        return this;
    }
<p>
A collection of keys and an array of possible values,
'[{"key":"key1","values":["Value1","Value2"]},{"key":"Key2","values":["Value3"]}]'.
</p>
<p>
For example,'[{"key":"Name","values":["TestEC2Instance"]}]'.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setResourceGroupTags(java.util.Collection)} or {@link #withResourceGroupTags(java.util.Collection)} if
you want to override the existing values.
</p>

@param resourceGroupTags
       A collection of keys and an array of possible values,
       '[{"key":"key1","values":["Value1","Value2"]},{"key":"Key2","values":["Value3"]}]'.</p>
       <p>
       For example,'[{"key":"Name","values":["TestEC2Instance"]}]'.
@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/CreateResourceGroupRequest.java