Class Template
-
- All Implemented Interfaces:
-
java.io.Serializable
@Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class Template implements Serializable
Base type for all template types
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringJSON_PROPERTY_IDpublic Longidpublic final static StringJSON_PROPERTY_CREATED_ATpublic OffsetDateTimecreatedAtpublic final static StringJSON_PROPERTY_UPDATED_ATpublic OffsetDateTimeupdatedAtpublic final static StringJSON_PROPERTY_CONTENT_TYPEpublic StringcontentTypepublic final static StringJSON_PROPERTY_HANDLERpublic EnumHandlerhandlerpublic final static StringJSON_PROPERTY_LIQUID_ENABLEDpublic BooleanliquidEnabledpublic final static StringJSON_PROPERTY_DRAFTpublic Stringdraftpublic final static StringJSON_PROPERTY_PUBLISHEDpublic Stringpublished
-
Constructor Summary
Constructors Constructor Description Template()
-
Method Summary
Modifier and Type Method Description LonggetId()Get id voidsetId(Long id)OffsetDateTimegetCreatedAt()Get createdAt voidsetCreatedAt(OffsetDateTime createdAt)OffsetDateTimegetUpdatedAt()Get updatedAt voidsetUpdatedAt(OffsetDateTime updatedAt)StringgetContentType()How the template should be described to web browsers with the Content-Type header voidsetContentType(String contentType)EnumHandlergetHandler()Get handler voidsetHandler(EnumHandler handler)BooleangetLiquidEnabled()Boolean flag to indicate whether the template should be populated by the Liquid templating system prior to rendering with `handler` voidsetLiquidEnabled(Boolean liquidEnabled)StringgetDraft()Full content of the template as held in draft mode. voidsetDraft(String draft)StringgetPublished()Full content of the template as held in published mode. voidsetPublished(String published)Templateid(Long id)TemplatecreatedAt(OffsetDateTime createdAt)TemplateupdatedAt(OffsetDateTime updatedAt)TemplatecontentType(String contentType)Templatehandler(EnumHandler handler)TemplateliquidEnabled(Boolean liquidEnabled)Templatedraft(String draft)Templatepublished(String published)booleanequals(Object o)inthashCode()StringtoString()StringtoUrlQueryString()Convert the instance into URL query string. StringtoUrlQueryString(String prefix)Convert the instance into URL query string. -
-
Method Detail
-
getCreatedAt
@Nullable() OffsetDateTime getCreatedAt()
Get createdAt
- Returns:
createdAt
-
setCreatedAt
void setCreatedAt(OffsetDateTime createdAt)
-
getUpdatedAt
@Nullable() OffsetDateTime getUpdatedAt()
Get updatedAt
- Returns:
updatedAt
-
setUpdatedAt
void setUpdatedAt(OffsetDateTime updatedAt)
-
getContentType
@Nullable() String getContentType()
How the template should be described to web browsers with the Content-Type header
- Returns:
contentType
-
setContentType
void setContentType(String contentType)
-
getHandler
@Nullable() EnumHandler getHandler()
Get handler
- Returns:
handler
-
setHandler
void setHandler(EnumHandler handler)
-
getLiquidEnabled
@Nullable() Boolean getLiquidEnabled()
Boolean flag to indicate whether the template should be populated by the Liquid templating system prior to rendering with `handler`
- Returns:
liquidEnabled
-
setLiquidEnabled
void setLiquidEnabled(Boolean liquidEnabled)
-
getDraft
@Nullable() String getDraft()
Full content of the template as held in draft mode. When published, this will be blank.
- Returns:
draft
-
getPublished
@Nullable() String getPublished()
Full content of the template as held in published mode.
- Returns:
published
-
setPublished
void setPublished(String published)
-
createdAt
Template createdAt(OffsetDateTime createdAt)
-
updatedAt
Template updatedAt(OffsetDateTime updatedAt)
-
contentType
Template contentType(String contentType)
-
handler
Template handler(EnumHandler handler)
-
liquidEnabled
Template liquidEnabled(Boolean liquidEnabled)
-
hashCode
int hashCode()
-
toUrlQueryString
String toUrlQueryString()
Convert the instance into URL query string.
- Returns:
URL query string
-
toUrlQueryString
String toUrlQueryString(String prefix)
Convert the instance into URL query string.
- Parameters:
prefix- prefix of the query string- Returns:
URL query string
-
-
-
-