public PromptSpecification withMessageGroups(java.util.Collection<MessageGroup> messageGroups) {
        setMessageGroups(messageGroups);
        return this;
    }
<p>
A collection of messages that Amazon Lex can send to the user. Amazon Lex chooses the actual message to send at
runtime.
</p>

@param messageGroups
       A collection of messages that Amazon Lex can send to the user. Amazon Lex chooses the actual message to
       send at runtime.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-lexmodelsv2/src/main/java/com/amazonaws/services/lexmodelsv2/model/PromptSpecification.java