public SortCriteria withField(SortField field) {
        this.field = field.toString();
        return this;
    }
<p>
The finding detail field by which results are sorted.
</p>

@param field
       The finding detail field by which results are sorted.
@return Returns a reference to this object so that method calls can be chained together.
@see SortField
aws-java-sdk-inspector2/src/main/java/com/amazonaws/services/inspector2/model/SortCriteria.java