public SortingConfiguration withSortOrder(SortOrder sortOrder) {
        this.sortOrder = sortOrder.toString();
        return this;
    }
<p>
The order that the results should be returned in. In case of ties, the relevance assigned to the result by Amazon
Kendra is used as the tie-breaker.
</p>

@param sortOrder
       The order that the results should be returned in. In case of ties, the relevance assigned to the result by
       Amazon Kendra is used as the tie-breaker.
@return Returns a reference to this object so that method calls can be chained together.
@see SortOrder
aws-java-sdk-kendra/src/main/java/com/amazonaws/services/kendra/model/SortingConfiguration.java