@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class InAppTemplateResponse extends Object implements Serializable, Cloneable, StructuredPojo
In-App Template Response.
Constructor and Description |
---|
InAppTemplateResponse() |
Modifier and Type | Method and Description |
---|---|
InAppTemplateResponse |
addCustomConfigEntry(String key,
String value)
Add a single CustomConfig entry
|
InAppTemplateResponse |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
InAppTemplateResponse |
clearCustomConfigEntries()
Removes all the entries added into CustomConfig.
|
InAppTemplateResponse |
clearTagsEntries()
Removes all the entries added into Tags.
|
InAppTemplateResponse |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The resource arn of the template.
|
List<InAppMessageContent> |
getContent()
The content of the message, can include up to 5 modals.
|
String |
getCreationDate()
The creation date of the template.
|
Map<String,String> |
getCustomConfig()
Custom config to be sent to client.
|
String |
getLastModifiedDate()
The last modified date of the template.
|
String |
getLayout()
The layout of the message.
|
Map<String,String> |
getTags()
A string-to-string map of key-value pairs that defines the tags to associate with the message template.
|
String |
getTemplateDescription()
The description of the template.
|
String |
getTemplateName()
The name of the template.
|
String |
getTemplateType()
The type of the template.
|
String |
getVersion()
The version id of the template.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setArn(String arn)
The resource arn of the template.
|
void |
setContent(Collection<InAppMessageContent> content)
The content of the message, can include up to 5 modals.
|
void |
setCreationDate(String creationDate)
The creation date of the template.
|
void |
setCustomConfig(Map<String,String> customConfig)
Custom config to be sent to client.
|
void |
setLastModifiedDate(String lastModifiedDate)
The last modified date of the template.
|
void |
setLayout(String layout)
The layout of the message.
|
void |
setTags(Map<String,String> tags)
A string-to-string map of key-value pairs that defines the tags to associate with the message template.
|
void |
setTemplateDescription(String templateDescription)
The description of the template.
|
void |
setTemplateName(String templateName)
The name of the template.
|
void |
setTemplateType(String templateType)
The type of the template.
|
void |
setVersion(String version)
The version id of the template.
|
String |
toString()
Returns a string representation of this object.
|
InAppTemplateResponse |
withArn(String arn)
The resource arn of the template.
|
InAppTemplateResponse |
withContent(Collection<InAppMessageContent> content)
The content of the message, can include up to 5 modals.
|
InAppTemplateResponse |
withContent(InAppMessageContent... content)
The content of the message, can include up to 5 modals.
|
InAppTemplateResponse |
withCreationDate(String creationDate)
The creation date of the template.
|
InAppTemplateResponse |
withCustomConfig(Map<String,String> customConfig)
Custom config to be sent to client.
|
InAppTemplateResponse |
withLastModifiedDate(String lastModifiedDate)
The last modified date of the template.
|
InAppTemplateResponse |
withLayout(Layout layout)
The layout of the message.
|
InAppTemplateResponse |
withLayout(String layout)
The layout of the message.
|
InAppTemplateResponse |
withTags(Map<String,String> tags)
A string-to-string map of key-value pairs that defines the tags to associate with the message template.
|
InAppTemplateResponse |
withTemplateDescription(String templateDescription)
The description of the template.
|
InAppTemplateResponse |
withTemplateName(String templateName)
The name of the template.
|
InAppTemplateResponse |
withTemplateType(String templateType)
The type of the template.
|
InAppTemplateResponse |
withTemplateType(TemplateType templateType)
The type of the template.
|
InAppTemplateResponse |
withVersion(String version)
The version id of the template.
|
public void setArn(String arn)
The resource arn of the template.
arn
- The resource arn of the template.public String getArn()
The resource arn of the template.
public InAppTemplateResponse withArn(String arn)
The resource arn of the template.
arn
- The resource arn of the template.public List<InAppMessageContent> getContent()
The content of the message, can include up to 5 modals. Each modal must contain a message, a header, and background color. ImageUrl and buttons are optional.
public void setContent(Collection<InAppMessageContent> content)
The content of the message, can include up to 5 modals. Each modal must contain a message, a header, and background color. ImageUrl and buttons are optional.
content
- The content of the message, can include up to 5 modals. Each modal must contain a message, a header, and
background color. ImageUrl and buttons are optional.public InAppTemplateResponse withContent(InAppMessageContent... content)
The content of the message, can include up to 5 modals. Each modal must contain a message, a header, and background color. ImageUrl and buttons are optional.
NOTE: This method appends the values to the existing list (if any). Use
setContent(java.util.Collection)
or withContent(java.util.Collection)
if you want to override
the existing values.
content
- The content of the message, can include up to 5 modals. Each modal must contain a message, a header, and
background color. ImageUrl and buttons are optional.public InAppTemplateResponse withContent(Collection<InAppMessageContent> content)
The content of the message, can include up to 5 modals. Each modal must contain a message, a header, and background color. ImageUrl and buttons are optional.
content
- The content of the message, can include up to 5 modals. Each modal must contain a message, a header, and
background color. ImageUrl and buttons are optional.public void setCreationDate(String creationDate)
The creation date of the template.
creationDate
- The creation date of the template.public String getCreationDate()
The creation date of the template.
public InAppTemplateResponse withCreationDate(String creationDate)
The creation date of the template.
creationDate
- The creation date of the template.public Map<String,String> getCustomConfig()
Custom config to be sent to client.
public void setCustomConfig(Map<String,String> customConfig)
Custom config to be sent to client.
customConfig
- Custom config to be sent to client.public InAppTemplateResponse withCustomConfig(Map<String,String> customConfig)
Custom config to be sent to client.
customConfig
- Custom config to be sent to client.public InAppTemplateResponse addCustomConfigEntry(String key, String value)
public InAppTemplateResponse clearCustomConfigEntries()
public void setLastModifiedDate(String lastModifiedDate)
The last modified date of the template.
lastModifiedDate
- The last modified date of the template.public String getLastModifiedDate()
The last modified date of the template.
public InAppTemplateResponse withLastModifiedDate(String lastModifiedDate)
The last modified date of the template.
lastModifiedDate
- The last modified date of the template.public void setLayout(String layout)
The layout of the message.
layout
- The layout of the message.Layout
public String getLayout()
The layout of the message.
Layout
public InAppTemplateResponse withLayout(String layout)
The layout of the message.
layout
- The layout of the message.Layout
public InAppTemplateResponse withLayout(Layout layout)
The layout of the message.
layout
- The layout of the message.Layout
public Map<String,String> getTags()
A string-to-string map of key-value pairs that defines the tags to associate with the message template. Each tag consists of a required tag key and an associated tag value.
public void setTags(Map<String,String> tags)
A string-to-string map of key-value pairs that defines the tags to associate with the message template. Each tag consists of a required tag key and an associated tag value.
tags
- A string-to-string map of key-value pairs that defines the tags to associate with the message template.
Each tag consists of a required tag key and an associated tag value.public InAppTemplateResponse withTags(Map<String,String> tags)
A string-to-string map of key-value pairs that defines the tags to associate with the message template. Each tag consists of a required tag key and an associated tag value.
tags
- A string-to-string map of key-value pairs that defines the tags to associate with the message template.
Each tag consists of a required tag key and an associated tag value.public InAppTemplateResponse addTagsEntry(String key, String value)
public InAppTemplateResponse clearTagsEntries()
public void setTemplateDescription(String templateDescription)
The description of the template.
templateDescription
- The description of the template.public String getTemplateDescription()
The description of the template.
public InAppTemplateResponse withTemplateDescription(String templateDescription)
The description of the template.
templateDescription
- The description of the template.public void setTemplateName(String templateName)
The name of the template.
templateName
- The name of the template.public String getTemplateName()
The name of the template.
public InAppTemplateResponse withTemplateName(String templateName)
The name of the template.
templateName
- The name of the template.public void setTemplateType(String templateType)
The type of the template.
templateType
- The type of the template.TemplateType
public String getTemplateType()
The type of the template.
TemplateType
public InAppTemplateResponse withTemplateType(String templateType)
The type of the template.
templateType
- The type of the template.TemplateType
public InAppTemplateResponse withTemplateType(TemplateType templateType)
The type of the template.
templateType
- The type of the template.TemplateType
public void setVersion(String version)
The version id of the template.
version
- The version id of the template.public String getVersion()
The version id of the template.
public InAppTemplateResponse withVersion(String version)
The version id of the template.
version
- The version id of the template.public String toString()
toString
in class Object
Object.toString()
public InAppTemplateResponse clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.