public void setGroupings(java.util.Collection<String> groupings) {
        if (groupings == null) {
            this.groupings = null;
            return;
        }

        this.groupings = new java.util.ArrayList<String>(groupings);
    }
<p>
The grouping applied to the metrics returned. For example, when grouped by <code>QUEUE</code>, the metrics
returned apply to each queue rather than aggregated for all queues.
</p>
<ul>
<li>
<p>
If you group by <code>CHANNEL</code>, you should include a Channels filter. VOICE, CHAT, and TASK channels are
supported.
</p>
</li>
<li>
<p>
If you group by <code>ROUTING_PROFILE</code>, you must include either a queue or routing profile filter. In
addition, a routing profile filter is required for metrics <code>CONTACTS_SCHEDULED</code>,
<code>CONTACTS_IN_QUEUE</code>, and <code> OLDEST_CONTACT_AGE</code>.
</p>
</li>
<li>
<p>
If no <code>Grouping</code> is included in the request, a summary of metrics is returned.
</p>
</li>
<li>
<p>
When using the <code>RoutingStepExpression</code> filter, group by <code>ROUTING_STEP_EXPRESSION</code> is
required.
</p>
</li>
</ul>

@param groupings
       The grouping applied to the metrics returned. For example, when grouped by <code>QUEUE</code>, the metrics
       returned apply to each queue rather than aggregated for all queues. </p>
       <ul>
       <li>
       <p>
       If you group by <code>CHANNEL</code>, you should include a Channels filter. VOICE, CHAT, and TASK channels
       are supported.
       </p>
       </li>
       <li>
       <p>
       If you group by <code>ROUTING_PROFILE</code>, you must include either a queue or routing profile filter.
       In addition, a routing profile filter is required for metrics <code>CONTACTS_SCHEDULED</code>,
       <code>CONTACTS_IN_QUEUE</code>, and <code> OLDEST_CONTACT_AGE</code>.
       </p>
       </li>
       <li>
       <p>
       If no <code>Grouping</code> is included in the request, a summary of metrics is returned.
       </p>
       </li>
       <li>
       <p>
       When using the <code>RoutingStepExpression</code> filter, group by <code>ROUTING_STEP_EXPRESSION</code> is
       required.
       </p>
       </li>
@see Grouping
aws-java-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetCurrentMetricDataRequest.java