Class CreateSmtpTemplate

java.lang.Object
software.xdev.brevo.model.CreateSmtpTemplate

public class CreateSmtpTemplate extends Object
CreateSmtpTemplate
  • Field Details

  • Constructor Details

    • CreateSmtpTemplate

      public CreateSmtpTemplate()
  • Method Details

    • tag

      public CreateSmtpTemplate tag(@Nullable String tag)
    • getTag

      @Nullable public String getTag()
      Tag of the template
      Returns:
      tag
    • setTag

      public void setTag(@Nullable String tag)
    • sender

      public CreateSmtpTemplate sender(@Nonnull CreateSmtpTemplateSender sender)
    • getSender

      @Nonnull public CreateSmtpTemplateSender getSender()
      Get sender
      Returns:
      sender
    • setSender

      public void setSender(@Nonnull CreateSmtpTemplateSender sender)
    • templateName

      public CreateSmtpTemplate templateName(@Nonnull String templateName)
    • getTemplateName

      @Nonnull public String getTemplateName()
      Name of the template
      Returns:
      templateName
    • setTemplateName

      public void setTemplateName(@Nonnull String templateName)
    • htmlContent

      public CreateSmtpTemplate htmlContent(@Nullable String htmlContent)
    • getHtmlContent

      @Nullable public String getHtmlContent()
      Body of the message (HTML version). The field must have more than 10 characters. **REQUIRED if htmlUrl is empty**
      Returns:
      htmlContent
    • setHtmlContent

      public void setHtmlContent(@Nullable String htmlContent)
    • htmlUrl

      public CreateSmtpTemplate htmlUrl(@Nullable String htmlUrl)
    • getHtmlUrl

      @Nullable public String getHtmlUrl()
      Url which contents the body of the email message. REQUIRED if htmlContent is empty
      Returns:
      htmlUrl
    • setHtmlUrl

      public void setHtmlUrl(@Nullable String htmlUrl)
    • subject

      public CreateSmtpTemplate subject(@Nonnull String subject)
    • getSubject

      @Nonnull public String getSubject()
      Subject of the template
      Returns:
      subject
    • setSubject

      public void setSubject(@Nonnull String subject)
    • replyTo

      public CreateSmtpTemplate replyTo(@Nullable String replyTo)
    • getReplyTo

      @Nullable public String getReplyTo()
      Email on which campaign recipients will be able to reply to
      Returns:
      replyTo
    • setReplyTo

      public void setReplyTo(@Nullable String replyTo)
    • toField

      public CreateSmtpTemplate toField(@Nullable String toField)
    • getToField

      @Nullable public String getToField()
      To personalize the **To** Field. If you want to include the first name and last name of your recipient, add **{FNAME} {LNAME}**. These contact attributes must already exist in your Brevo account. If input parameter **params** used please use **{{contact.FNAME}} {{contact.LNAME}}** for personalization
      Returns:
      toField
    • setToField

      public void setToField(@Nullable String toField)
    • attachmentUrl

      public CreateSmtpTemplate attachmentUrl(@Nullable String attachmentUrl)
    • getAttachmentUrl

      @Nullable public String getAttachmentUrl()
      Absolute url of the attachment (**no local file**). Extension allowed: #### xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff, rtf, bmp, cgm, css, shtml, html, htm, zip, xml, ppt, pptx, tar, ez, ics, mobi, msg, pub and eps'
      Returns:
      attachmentUrl
    • setAttachmentUrl

      public void setAttachmentUrl(@Nullable String attachmentUrl)
    • isActive

      public CreateSmtpTemplate isActive(@Nullable Boolean isActive)
    • getIsActive

      @Nullable public Boolean getIsActive()
      Status of template. isActive = true means template is active and isActive = false means template is inactive
      Returns:
      isActive
    • setIsActive

      public void setIsActive(@Nullable Boolean isActive)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toUrlQueryString

      public String toUrlQueryString()
      Convert the instance into URL query string.
      Returns:
      URL query string
    • toUrlQueryString

      public String toUrlQueryString(String prefix)
      Convert the instance into URL query string.
      Parameters:
      prefix - prefix of the query string
      Returns:
      URL query string