@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CampaignInAppMessage extends Object implements Serializable, Cloneable, StructuredPojo
In-app message configuration.
Constructor and Description |
---|
CampaignInAppMessage() |
Modifier and Type | Method and Description |
---|---|
CampaignInAppMessage |
addCustomConfigEntry(String key,
String value)
Add a single CustomConfig entry
|
CampaignInAppMessage |
clearCustomConfigEntries()
Removes all the entries added into CustomConfig.
|
CampaignInAppMessage |
clone() |
boolean |
equals(Object obj) |
String |
getBody()
The message body of the notification, the email body or the text message.
|
List<InAppMessageContent> |
getContent()
In-app message content.
|
Map<String,String> |
getCustomConfig()
Custom config to be sent to client.
|
String |
getLayout()
In-app message layout.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setBody(String body)
The message body of the notification, the email body or the text message.
|
void |
setContent(Collection<InAppMessageContent> content)
In-app message content.
|
void |
setCustomConfig(Map<String,String> customConfig)
Custom config to be sent to client.
|
void |
setLayout(String layout)
In-app message layout.
|
String |
toString()
Returns a string representation of this object.
|
CampaignInAppMessage |
withBody(String body)
The message body of the notification, the email body or the text message.
|
CampaignInAppMessage |
withContent(Collection<InAppMessageContent> content)
In-app message content.
|
CampaignInAppMessage |
withContent(InAppMessageContent... content)
In-app message content.
|
CampaignInAppMessage |
withCustomConfig(Map<String,String> customConfig)
Custom config to be sent to client.
|
CampaignInAppMessage |
withLayout(Layout layout)
In-app message layout.
|
CampaignInAppMessage |
withLayout(String layout)
In-app message layout.
|
public void setBody(String body)
The message body of the notification, the email body or the text message.
body
- The message body of the notification, the email body or the text message.public String getBody()
The message body of the notification, the email body or the text message.
public CampaignInAppMessage withBody(String body)
The message body of the notification, the email body or the text message.
body
- The message body of the notification, the email body or the text message.public List<InAppMessageContent> getContent()
In-app message content.
public void setContent(Collection<InAppMessageContent> content)
In-app message content.
content
- In-app message content.public CampaignInAppMessage withContent(InAppMessageContent... content)
In-app message content.
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
- In-app message content.public CampaignInAppMessage withContent(Collection<InAppMessageContent> content)
In-app message content.
content
- In-app message content.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 CampaignInAppMessage withCustomConfig(Map<String,String> customConfig)
Custom config to be sent to client.
customConfig
- Custom config to be sent to client.public CampaignInAppMessage addCustomConfigEntry(String key, String value)
public CampaignInAppMessage clearCustomConfigEntries()
public void setLayout(String layout)
In-app message layout.
layout
- In-app message layout.Layout
public String getLayout()
In-app message layout.
Layout
public CampaignInAppMessage withLayout(String layout)
In-app message layout.
layout
- In-app message layout.Layout
public CampaignInAppMessage withLayout(Layout layout)
In-app message layout.
layout
- In-app message layout.Layout
public String toString()
toString
in class Object
Object.toString()
public CampaignInAppMessage clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall
in interface StructuredPojo
Copyright © 2023. All rights reserved.