public TaskRunSortCriteria withSortDirection(SortDirectionType sortDirection) {
        this.sortDirection = sortDirection.toString();
        return this;
    }
<p>
The sort direction to be used to sort the list of task runs for the machine learning transform.
</p>

@param sortDirection
       The sort direction to be used to sort the list of task runs for the machine learning transform.
@return Returns a reference to this object so that method calls can be chained together.
@see SortDirectionType
aws-java-sdk-glue/src/main/java/com/amazonaws/services/glue/model/TaskRunSortCriteria.java