public FulfillmentUpdateResponseSpecification withMessageGroups(MessageGroup... messageGroups) {
        if (this.messageGroups == null) {
            setMessageGroups(new java.util.ArrayList<MessageGroup>(messageGroups.length));
        }
        for (MessageGroup ele : messageGroups) {
            this.messageGroups.add(ele);
        }
        return this;
    }
<p>
1 - 5 message groups that contain update messages. Amazon Lex chooses one of the messages to play to the user.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setMessageGroups(java.util.Collection)} or {@link #withMessageGroups(java.util.Collection)} if you want
to override the existing values.
</p>

@param messageGroups
       1 - 5 message groups that contain update messages. Amazon Lex chooses one of the messages to play to the
       user.
@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/FulfillmentUpdateResponseSpecification.java