public ListProjectsRequest withSortOrder(SortOrderType sortOrder) {
        this.sortOrder = sortOrder.toString();
        return this;
    }
<p>
The order in which to list build projects. Valid values include:
</p>
<ul>
<li>
<p>
<code>ASCENDING</code>: List in ascending order.
</p>
</li>
<li>
<p>
<code>DESCENDING</code>: List in descending order.
</p>
</li>
</ul>
<p>
Use <code>sortBy</code> to specify the criterion to be used to list build project names.
</p>

@param sortOrder
       The order in which to list build projects. Valid values include:</p>
       <ul>
       <li>
       <p>
       <code>ASCENDING</code>: List in ascending order.
       </p>
       </li>
       <li>
       <p>
       <code>DESCENDING</code>: List in descending order.
       </p>
       </li>
       </ul>
       <p>
       Use <code>sortBy</code> to specify the criterion to be used to list build project names.
@return Returns a reference to this object so that method calls can be chained together.
@see SortOrderType
aws-java-sdk-codebuild/src/main/java/com/amazonaws/services/codebuild/model/ListProjectsRequest.java