Class EmailTemplate

java.lang.Object
com.auth0.json.mgmt.emailtemplates.EmailTemplate

public class EmailTemplate extends Object
Class that represents an Email Template object. Related to the EmailTemplatesEntity entity.
  • Constructor Details

    • EmailTemplate

      public EmailTemplate()
  • Method Details

    • getName

      public String getName()
      Getter for the name of the template.
      Returns:
      the name.
    • setName

      public void setName(String name)
      Sets the name of the template.
      Parameters:
      name - the name to set for this template
    • getBody

      public String getBody()
      Getter for the template code.
      Returns:
      the template code.
    • setBody

      public void setBody(String body)
      Sets the template code
      Parameters:
      body - the code this template will have
    • getFrom

      public String getFrom()
      Getter for the sender of the email
      Returns:
      the sender of the email
    • setFrom

      public void setFrom(String from)
      Sets the sender of the email
      Parameters:
      from - the sender of the email
    • getResultUrl

      public String getResultUrl()
      Getter the URL to redirect the user to after a successful action.
      Returns:
      the URL to redirect the user to after a successful action.
    • setResultUrl

      public void setResultUrl(String resultUrl)
      Sets the URL to redirect the user to after a successful action.
      Parameters:
      resultUrl - the URL to redirect the user to after a successful action.
    • getSubject

      public String getSubject()
      Getter for the subject of the email.
      Returns:
      the subject of the email.
    • setSubject

      public void setSubject(String subject)
      Sets the subject of the email.
      Parameters:
      subject - the subject of the email.
    • getSyntax

      public String getSyntax()
      Getter for the syntax used in the template's code.
      Returns:
      the syntax used in the template's code.
    • setSyntax

      public void setSyntax(String syntax)
      Sets for the syntax to be used in the template's code. Default value is 'liquid'
      Parameters:
      syntax - the syntax to be used in the template's code.
    • getUrlLifetimeInSeconds

      public Integer getUrlLifetimeInSeconds()
      Getter for the lifetime in seconds that the link within the email will be valid for.
      Returns:
      the lifetime in seconds that the link within the email will be valid for.
    • setUrlLifetimeInSeconds

      public void setUrlLifetimeInSeconds(Integer urlLifetimeInSeconds)
      Sets the lifetime in seconds that the link within the email will be valid for.
      Parameters:
      urlLifetimeInSeconds - the lifetime in seconds that the link within the email will be valid for.
    • isEnabled

      public Boolean isEnabled()
      Whether or not this template is enabled.
      Returns:
      true if this template is enabled, false otherwise.
    • setEnabled

      public void setEnabled(Boolean enabled)
      Enables or disables this template.
      Parameters:
      enabled - whether this template is enabled or not.