public ListTimelineEventsRequest withSortBy(TimelineEventSort sortBy) {
        this.sortBy = sortBy.toString();
        return this;
    }
<p>
Sort timeline events by the specified key value pair.
</p>

@param sortBy
       Sort timeline events by the specified key value pair.
@return Returns a reference to this object so that method calls can be chained together.
@see TimelineEventSort
aws-java-sdk-ssmincidents/src/main/java/com/amazonaws/services/ssmincidents/model/ListTimelineEventsRequest.java