Interface TemplateV2
public interface TemplateV2
TemplateV2
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic TemplateV2.Builder
builder()
Getting builderTimestamp when the template was created.The default translation to use if not specified.The description of the template.getId()
The id of the template.Get translationsTimestamp when the template was updated.The version of the template.
-
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-47language_code
and thelanguage_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
Getting builder- Returns:
- New Builder instance
-