public ListHubContentVersionsRequest withSortBy(String sortBy) {
        setSortBy(sortBy);
        return this;
    }
<p>
Sort hub content versions by either name or creation time.
</p>

@param sortBy
       Sort hub content versions by either name or creation time.
@return Returns a reference to this object so that method calls can be chained together.
@see HubContentSortBy
aws-java-sdk-sagemaker/src/main/java/com/amazonaws/services/sagemaker/model/ListHubContentVersionsRequest.java