public Statement withMessages(java.util.Collection<Message> messages) {
        setMessages(messages);
        return this;
    }
<p>
A collection of message objects.
</p>

@param messages
       A collection of message objects.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-lexmodelbuilding/src/main/java/com/amazonaws/services/lexmodelbuilding/model/Statement.java