docs: public void setMessages(java.util.Collection<String> messages) {
          if (messages == null) {
              this.messages = null;
              return;
          }
  
          this.messages = new com.amazonaws.internal.SdkInternalList<String>(messages);
      }