@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class InAppTemplateRequest extends Object implements Serializable, Cloneable, StructuredPojo
InApp Template Request.
Constructor and Description |
---|
InAppTemplateRequest() |
Modifier and Type | Method and Description |
---|---|
InAppTemplateRequest |
addCustomConfigEntry(String key,
String value)
Add a single CustomConfig entry
|
InAppTemplateRequest |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
InAppTemplateRequest |
clearCustomConfigEntries()
Removes all the entries added into CustomConfig.
|
InAppTemplateRequest |
clearTagsEntries()
Removes all the entries added into Tags.
|
InAppTemplateRequest |
clone() |
boolean |
equals(Object obj) |
List<InAppMessageContent> |
getContent()
The content of the message, can include up to 5 modals.
|
Map<String,String> |
getCustomConfig()
Custom config to be sent to client.
|
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.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setContent(Collection<InAppMessageContent> content)
The content of the message, can include up to 5 modals.
|
void |
setCustomConfig(Map<String,String> customConfig)
Custom config to be sent to client.
|
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.
|
String |
toString()
Returns a string representation of this object.
|
InAppTemplateRequest |
withContent(Collection<InAppMessageContent> content)
The content of the message, can include up to 5 modals.
|
InAppTemplateRequest |
withContent(InAppMessageContent... content)
The content of the message, can include up to 5 modals.
|
InAppTemplateRequest |
withCustomConfig(Map<String,String> customConfig)
Custom config to be sent to client.
|
InAppTemplateRequest |
withLayout(Layout layout)
The layout of the message.
|
InAppTemplateRequest |
withLayout(String layout)
The layout of the message.
|
InAppTemplateRequest |
withTags(Map<String,String> tags)
A string-to-string map of key-value pairs that defines the tags to associate with the message template.
|
InAppTemplateRequest |
withTemplateDescription(String templateDescription)
The description 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 InAppTemplateRequest 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 InAppTemplateRequest 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 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 InAppTemplateRequest withCustomConfig(Map<String,String> customConfig)
Custom config to be sent to client.
customConfig
- Custom config to be sent to client.public InAppTemplateRequest addCustomConfigEntry(String key, String value)
public InAppTemplateRequest clearCustomConfigEntries()
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 InAppTemplateRequest withLayout(String layout)
The layout of the message.
layout
- The layout of the message.Layout
public InAppTemplateRequest 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 InAppTemplateRequest 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 InAppTemplateRequest addTagsEntry(String key, String value)
public InAppTemplateRequest 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 InAppTemplateRequest withTemplateDescription(String templateDescription)
The description of the template.
templateDescription
- The description of the template.public String toString()
toString
in class Object
Object.toString()
public InAppTemplateRequest clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall
in interface StructuredPojo
Copyright © 2021. All rights reserved.