public ListSharedReportGroupsRequest withSortBy(String sortBy) {
        setSortBy(sortBy);
        return this;
    }
<p>
The criterion to be used to list report groups shared with the current Amazon Web Services account or user. Valid
values include:
</p>
<ul>
<li>
<p>
<code>ARN</code>: List based on the ARN.
</p>
</li>
<li>
<p>
<code>MODIFIED_TIME</code>: List based on when information about the shared report group was last changed.
</p>
</li>
</ul>

@param sortBy
       The criterion to be used to list report groups shared with the current Amazon Web Services account or
       user. Valid values include: </p>
       <ul>
       <li>
       <p>
       <code>ARN</code>: List based on the ARN.
       </p>
       </li>
       <li>
       <p>
       <code>MODIFIED_TIME</code>: List based on when information about the shared report group was last changed.
       </p>
       </li>
@return Returns a reference to this object so that method calls can be chained together.
@see SharedResourceSortByType
aws-java-sdk-codebuild/src/main/java/com/amazonaws/services/codebuild/model/ListSharedReportGroupsRequest.java