docs: public GetMetricDataResult withMessages(MessageData... messages) {
          if (this.messages == null) {
              setMessages(new com.amazonaws.internal.SdkInternalList<MessageData>(messages.length));
          }
          for (MessageData ele : messages) {
              this.messages.add(ele);
          }
          return this;
      }