public SortCriteria withAttributeName(String attributeName) {
        setAttributeName(attributeName);
        return this;
    }
<p>
The name of the property to sort the results by. Valid values are: count, createdAt,
policyDetails.action.apiCallDetails.firstSeen, policyDetails.action.apiCallDetails.lastSeen, resourcesAffected,
severity.score, type, and updatedAt.
</p>

@param attributeName
       The name of the property to sort the results by. Valid values are: count, createdAt,
       policyDetails.action.apiCallDetails.firstSeen, policyDetails.action.apiCallDetails.lastSeen,
       resourcesAffected, severity.score, type, and updatedAt.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-macie2/src/main/java/com/amazonaws/services/macie2/model/SortCriteria.java