public ListBuildsRequest withSortOrder(SortOrderType sortOrder) {
        this.sortOrder = sortOrder.toString();
        return this;
    }
<p>
The order to list build IDs. Valid values include:
</p>
<ul>
<li>
<p>
<code>ASCENDING</code>: List the build IDs in ascending order by build ID.
</p>
</li>
<li>
<p>
<code>DESCENDING</code>: List the build IDs in descending order by build ID.
</p>
</li>
</ul>

@param sortOrder
       The order to list build IDs. Valid values include:</p>
       <ul>
       <li>
       <p>
       <code>ASCENDING</code>: List the build IDs in ascending order by build ID.
       </p>
       </li>
       <li>
       <p>
       <code>DESCENDING</code>: List the build IDs in descending order by build ID.
       </p>
       </li>
@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/ListBuildsRequest.java