public GetCurrentMetricDataRequest withSortCriteria(java.util.Collection<CurrentMetricSortCriteria> sortCriteria) {
        setSortCriteria(sortCriteria);
        return this;
    }
<p>
The way to sort the resulting response based on metrics. You can enter one sort criteria. By default resources
are sorted based on <code>AGENTS_ONLINE</code>, <code>DESCENDING</code>. The metric collection is sorted based on
the input metrics.
</p>
<p>
Note the following:
</p>
<ul>
<li>
<p>
Sorting on <code>SLOTS_ACTIVE</code> and <code>SLOTS_AVAILABLE</code> is not supported.
</p>
</li>
</ul>

@param sortCriteria
       The way to sort the resulting response based on metrics. You can enter one sort criteria. By default
       resources are sorted based on <code>AGENTS_ONLINE</code>, <code>DESCENDING</code>. The metric collection
       is sorted based on the input metrics.</p>
       <p>
       Note the following:
       </p>
       <ul>
       <li>
       <p>
       Sorting on <code>SLOTS_ACTIVE</code> and <code>SLOTS_AVAILABLE</code> is not supported.
       </p>
       </li>
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetCurrentMetricDataRequest.java