public FieldSort withDirection(SortDirection direction) {
        this.direction = direction.toString();
        return this;
    }
<p>
The sort direction. Choose one of the following options:
</p>
<ul>
<li>
<p>
<code>ASC</code>: Ascending
</p>
</li>
<li>
<p>
<code>DESC</code>: Descending
</p>
</li>
</ul>

@param direction
       The sort direction. Choose one of the following options:</p>
       <ul>
       <li>
       <p>
       <code>ASC</code>: Ascending
       </p>
       </li>
       <li>
       <p>
       <code>DESC</code>: Descending
       </p>
       </li>
@return Returns a reference to this object so that method calls can be chained together.
@see SortDirection
aws-java-sdk-quicksight/src/main/java/com/amazonaws/services/quicksight/model/FieldSort.java