public interface TemplateV2
TemplateV2
  • Method Details

    • getId

      String getId()
      The id of the template. Specify this yourself during creation. Otherwise, we will generate an ID for you. This must be unique for a given project.
      Returns:
      id
    • getDescription

      String getDescription()
      The description of the template.
      Returns:
      description
    • getVersion

      Integer getVersion()
      The version of the template. While creating a template, this will be defaulted to 1. When updating a template, you must supply the latest version of the template in order for the update to be successful.
      Returns:
      version
    • getDefaultTranslation

      String getDefaultTranslation()
      The default translation to use if not specified. Specified as a BCP-47 language_code and the language_code must exist in the translations list.
      Returns:
      defaultTranslation
    • getTranslations

      Collection<TemplateTranslation> getTranslations()
      Get translations
      Returns:
      translations
    • getCreateTime

      Instant getCreateTime()
      Timestamp when the template was created.
      Returns:
      createTime
      Read Only
      This field is returned by the server and cannot be modified
    • getUpdateTime

      Instant getUpdateTime()
      Timestamp when the template was updated.
      Returns:
      updateTime
      Read Only
      This field is returned by the server and cannot be modified
    • builder

      static TemplateV2.Builder builder()
      Getting builder
      Returns:
      New Builder instance