public void setConfiguration(java.util.Collection<GroupConfigurationItem> configuration) {
        if (configuration == null) {
            this.configuration = null;
            return;
        }

        this.configuration = new java.util.ArrayList<GroupConfigurationItem>(configuration);
    }
<p>
A configuration associates the resource group with an Amazon Web Services service and specifies how the service
can interact with the resources in the group. A configuration is an array of <a>GroupConfigurationItem</a>
elements. For details about the syntax of service configurations, see <a
href="https://docs.aws.amazon.com/ARG/latest/APIReference/about-slg.html">Service configurations for Resource
Groups</a>.
</p>
<note>
<p>
A resource group can contain either a <code>Configuration</code> or a <code>ResourceQuery</code>, but not both.
</p>
</note>

@param configuration
       A configuration associates the resource group with an Amazon Web Services service and specifies how the
       service can interact with the resources in the group. A configuration is an array of
       <a>GroupConfigurationItem</a> elements. For details about the syntax of service configurations, see <a
       href="https://docs.aws.amazon.com/ARG/latest/APIReference/about-slg.html">Service configurations for
       Resource Groups</a>.</p> <note>
       <p>
       A resource group can contain either a <code>Configuration</code> or a <code>ResourceQuery</code>, but not
       both.
       </p>
aws-java-sdk-resourcegroups/src/main/java/com/amazonaws/services/resourcegroups/model/CreateGroupRequest.java