/** * Add a personalizaton to the email. * @param personalization a personalization. */ public void addPersonalization(Personalization personalization) { this.personalization = addToList(personalization, this.personalization); }
/** * Add a category to the email. * @param category the category. */ public void addCategory(String category) { this.categories = addToList(category, this.categories); }
/** * Add content to this email. * @param content content to add to this email. */ public void addContent(Content content) { Content newContent = new Content(); newContent.setType(content.getType()); newContent.setValue(content.getValue()); this.content = addToList(newContent, this.content); }
/** * Add attachments to the email. * @param attachments attachments to add. */ public void addAttachments(Attachments attachments) { Attachments newAttachment = new Attachments(); newAttachment.setContent(attachments.getContent()); newAttachment.setType(attachments.getType()); newAttachment.setFilename(attachments.getFilename()); newAttachment.setDisposition(attachments.getDisposition()); newAttachment.setContentId(attachments.getContentId()); this.attachments = addToList(newAttachment, this.attachments); }