public BotVersionSortBy withAttribute(BotVersionSortAttribute attribute) {
        this.attribute = attribute.toString();
        return this;
    }
<p>
The attribute to use to sort the list of versions.
</p>

@param attribute
       The attribute to use to sort the list of versions.
@return Returns a reference to this object so that method calls can be chained together.
@see BotVersionSortAttribute
aws-java-sdk-lexmodelsv2/src/main/java/com/amazonaws/services/lexmodelsv2/model/BotVersionSortBy.java