@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-06-12T23:33:57.654989Z[Etc/UTC]") public class TemplateDto extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TemplateDto.CustomTypeAdapterFactory |
Modifier and Type | Field and Description |
---|---|
static HashSet<String> |
openapiFields |
static HashSet<String> |
openapiRequiredFields |
static String |
SERIALIZED_NAME_CONTENT |
static String |
SERIALIZED_NAME_CREATED_AT |
static String |
SERIALIZED_NAME_ID |
static String |
SERIALIZED_NAME_NAME |
static String |
SERIALIZED_NAME_VARIABLES |
Constructor and Description |
---|
TemplateDto() |
Modifier and Type | Method and Description |
---|---|
TemplateDto |
addVariablesItem(TemplateVariable variablesItem) |
TemplateDto |
content(String content) |
TemplateDto |
createdAt(OffsetDateTime createdAt) |
boolean |
equals(Object o) |
static TemplateDto |
fromJson(String jsonString)
Create an instance of TemplateDto given an JSON string
|
String |
getContent()
Content of the template
|
OffsetDateTime |
getCreatedAt()
Created at time
|
UUID |
getId()
ID of template
|
String |
getName()
Template name
|
List<TemplateVariable> |
getVariables()
Variables available in template that can be replaced with values
|
int |
hashCode() |
TemplateDto |
id(UUID id) |
TemplateDto |
name(String name) |
void |
setContent(String content) |
void |
setCreatedAt(OffsetDateTime createdAt) |
void |
setId(UUID id) |
void |
setName(String name) |
void |
setVariables(List<TemplateVariable> variables) |
String |
toJson()
Convert an instance of TemplateDto to an JSON string
|
String |
toString() |
static void |
validateJsonObject(com.google.gson.JsonObject jsonObj)
Validates the JSON Object and throws an exception if issues found
|
TemplateDto |
variables(List<TemplateVariable> variables) |
public static final String SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_NAME
public static final String SERIALIZED_NAME_VARIABLES
public static final String SERIALIZED_NAME_CONTENT
public static final String SERIALIZED_NAME_CREATED_AT
public TemplateDto id(UUID id)
public void setId(UUID id)
public TemplateDto name(String name)
public void setName(String name)
public TemplateDto variables(List<TemplateVariable> variables)
public TemplateDto addVariablesItem(TemplateVariable variablesItem)
@Nonnull public List<TemplateVariable> getVariables()
public void setVariables(List<TemplateVariable> variables)
public TemplateDto content(String content)
public void setContent(String content)
public TemplateDto createdAt(OffsetDateTime createdAt)
@Nonnull public OffsetDateTime getCreatedAt()
public void setCreatedAt(OffsetDateTime createdAt)
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
jsonObj
- JSON ObjectIOException
- if the JSON Object is invalid with respect to TemplateDtopublic static TemplateDto fromJson(String jsonString) throws IOException
jsonString
- JSON stringIOException
- if the JSON string is invalid with respect to TemplateDtopublic String toJson()
Copyright © 2023. All rights reserved.