@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()
|
String |
getTemplateDescription()
The description of the template.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
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)
|
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)
|
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()
As of 22-05-2023 tags has been deprecated for update operations. After this date any value in tags is not processed and an error code is not returned. To manage tags we recommend using either Tags in the API Reference for Amazon Pinpoint, resourcegroupstaggingapi commands in the AWS Command Line Interface Documentation or resourcegroupstaggingapi in the AWS SDK.
(Deprecated) 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)
As of 22-05-2023 tags has been deprecated for update operations. After this date any value in tags is not processed and an error code is not returned. To manage tags we recommend using either Tags in the API Reference for Amazon Pinpoint, resourcegroupstaggingapi commands in the AWS Command Line Interface Documentation or resourcegroupstaggingapi in the AWS SDK.
(Deprecated) 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
- As of 22-05-2023 tags has been deprecated for update operations. After this date any value in tags
is not processed and an error code is not returned. To manage tags we recommend using either Tags in the
API Reference for Amazon Pinpoint, resourcegroupstaggingapi commands in the AWS Command Line Interface Documentation or resourcegroupstaggingapi in the AWS SDK.public InAppTemplateRequest withTags(Map<String,String> tags)
As of 22-05-2023 tags has been deprecated for update operations. After this date any value in tags is not processed and an error code is not returned. To manage tags we recommend using either Tags in the API Reference for Amazon Pinpoint, resourcegroupstaggingapi commands in the AWS Command Line Interface Documentation or resourcegroupstaggingapi in the AWS SDK.
(Deprecated) 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
- As of 22-05-2023 tags has been deprecated for update operations. After this date any value in tags
is not processed and an error code is not returned. To manage tags we recommend using either Tags in the
API Reference for Amazon Pinpoint, resourcegroupstaggingapi commands in the AWS Command Line Interface Documentation or resourcegroupstaggingapi in the AWS SDK.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)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.