public void setMessageGroups(java.util.Collection<MessageGroup> messageGroups) {
        if (messageGroups == null) {
            this.messageGroups = null;
            return;
        }

        this.messageGroups = new java.util.ArrayList<MessageGroup>(messageGroups);
    }
<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.
aws-java-sdk-lexmodelsv2/src/main/java/com/amazonaws/services/lexmodelsv2/model/PromptSpecification.java