public ListSubscriptionsRequest withSortBy(SortKey sortBy) {
        this.sortBy = sortBy.toString();
        return this;
    }
<p>
Specifies the way in which the results of this action are to be sorted.
</p>

@param sortBy
       Specifies the way in which the results of this action are to be sorted.
@return Returns a reference to this object so that method calls can be chained together.
@see SortKey
aws-java-sdk-datazoneexternal/src/main/java/com/amazonaws/services/datazone/model/ListSubscriptionsRequest.java