code: public void setAttachments(java.util.Collection<Attachment> attachments) {
          if (attachments == null) {
              this.attachments = null;
              return;
          }
  
          this.attachments = new com.amazonaws.internal.SdkInternalList<Attachment>(attachments);
      }
docs: <p>
  One or more attachments to add to the set. The limit is 3 attachments per set, and the size limit is 5 MB per
  attachment.
  </p>
  
  @param attachments
  One or more attachments to add to the set. The limit is 3 attachments per set, and the size limit is 5 MB
  per attachment.