public ListProjectMembershipsRequest withSortBy(SortFieldProject sortBy) {
        this.sortBy = sortBy.toString();
        return this;
    }
<p>
The method by which you want to sort the project memberships.
</p>

@param sortBy
       The method by which you want to sort the project memberships.
@return Returns a reference to this object so that method calls can be chained together.
@see SortFieldProject
aws-java-sdk-datazoneexternal/src/main/java/com/amazonaws/services/datazone/model/ListProjectMembershipsRequest.java