public GroupingConfiguration withValues(String... values) {
        if (this.values == null) {
            setValues(new java.util.ArrayList<String>(values.length));
        }
        for (String ele : values) {
            this.values.add(ele);
        }
        return this;
    }
<p>
The list of values that define different groups of Amazon Q in Connect users.
</p>
<ul>
<li>
<p>
When setting <code>criteria</code> to <code>RoutingProfileArn</code>, you need to provide a list of ARNs of <a
href="https://docs.aws.amazon.com/connect/latest/APIReference/API_RoutingProfile.html">Amazon Connect routing
profiles</a> as values of this parameter.
</p>
</li>
</ul>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setValues(java.util.Collection)} or {@link #withValues(java.util.Collection)} if you want to override the
existing values.
</p>

@param values
       The list of values that define different groups of Amazon Q in Connect users.</p>
       <ul>
       <li>
       <p>
       When setting <code>criteria</code> to <code>RoutingProfileArn</code>, you need to provide a list of ARNs
       of <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_RoutingProfile.html">Amazon
       Connect routing profiles</a> as values of this parameter.
       </p>
       </li>
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-qconnect/src/main/java/com/amazonaws/services/qconnect/model/GroupingConfiguration.java