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 String
JSON_PROPERTY_ID
public Long
id
public final static String
JSON_PROPERTY_CREATED_AT
public OffsetDateTime
createdAt
public final static String
JSON_PROPERTY_UPDATED_AT
public OffsetDateTime
updatedAt
public final static String
JSON_PROPERTY_CONTENT_TYPE
public String
contentType
public final static String
JSON_PROPERTY_HANDLER
public EnumHandler
handler
public final static String
JSON_PROPERTY_LIQUID_ENABLED
public Boolean
liquidEnabled
public final static String
JSON_PROPERTY_DRAFT
public String
draft
public final static String
JSON_PROPERTY_PUBLISHED
public String
published
-
Constructor Summary
Constructors Constructor Description Template()
-
Method Summary
Modifier and Type Method Description Long
getId()
Get id void
setId(Long id)
OffsetDateTime
getCreatedAt()
Get createdAt void
setCreatedAt(OffsetDateTime createdAt)
OffsetDateTime
getUpdatedAt()
Get updatedAt void
setUpdatedAt(OffsetDateTime updatedAt)
String
getContentType()
How the template should be described to web browsers with the Content-Type header void
setContentType(String contentType)
EnumHandler
getHandler()
Get handler void
setHandler(EnumHandler handler)
Boolean
getLiquidEnabled()
Boolean flag to indicate whether the template should be populated by the Liquid templating system prior to rendering with `handler` void
setLiquidEnabled(Boolean liquidEnabled)
String
getDraft()
Full content of the template as held in draft mode. void
setDraft(String draft)
String
getPublished()
Full content of the template as held in published mode. void
setPublished(String published)
Template
id(Long id)
Template
createdAt(OffsetDateTime createdAt)
Template
updatedAt(OffsetDateTime updatedAt)
Template
contentType(String contentType)
Template
handler(EnumHandler handler)
Template
liquidEnabled(Boolean liquidEnabled)
Template
draft(String draft)
Template
published(String published)
boolean
equals(Object o)
int
hashCode()
String
toString()
String
toUrlQueryString()
Convert the instance into URL query string. String
toUrlQueryString(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
-
-
-
-