code: public ReceiveMessageResult withMessages(Message... messages) {
          if (this.messages == null) {
              setMessages(new com.amazonaws.internal.SdkInternalList<Message>(messages.length));
          }
          for (Message ele : messages) {
              this.messages.add(ele);
          }
          return this;
      }
docs: <p>
  A list of messages.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setMessages(java.util.Collection)} or {@link #withMessages(java.util.Collection)} if you want to override
  the existing values.
  </p>
  
  @param messages
  A list of messages.
  @return Returns a reference to this object so that method calls can be chained together.