public CurrentMetricSortCriteria withSortOrder(SortOrder sortOrder) {
        this.sortOrder = sortOrder.toString();
        return this;
    }
<p>
The way to sort.
</p>

@param sortOrder
       The way to sort.
@return Returns a reference to this object so that method calls can be chained together.
@see SortOrder
aws-java-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CurrentMetricSortCriteria.java