public IngestionJobSortBy withAttribute(IngestionJobSortByAttribute attribute) {
        this.attribute = attribute.toString();
        return this;
    }
<p>
The attribute by which to sort the results.
</p>

@param attribute
       The attribute by which to sort the results.
@return Returns a reference to this object so that method calls can be chained together.
@see IngestionJobSortByAttribute
aws-java-sdk-bedrockagent/src/main/java/com/amazonaws/services/bedrockagent/model/IngestionJobSortBy.java