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