@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DefaultMessage extends Object implements Serializable, Cloneable, StructuredPojo
Specifies the default message to use for all channels.
Constructor and Description |
---|
DefaultMessage() |
Modifier and Type | Method and Description |
---|---|
DefaultMessage |
addSubstitutionsEntry(String key,
List<String> value) |
DefaultMessage |
clearSubstitutionsEntries()
Removes all the entries added into Substitutions.
|
DefaultMessage |
clone() |
boolean |
equals(Object obj) |
String |
getBody()
The default message body of the push notification, email, or SMS message.
|
Map<String,List<String>> |
getSubstitutions()
The default message variables to use in the push notification, email, or SMS message.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setBody(String body)
The default message body of the push notification, email, or SMS message.
|
void |
setSubstitutions(Map<String,List<String>> substitutions)
The default message variables to use in the push notification, email, or SMS message.
|
String |
toString()
Returns a string representation of this object.
|
DefaultMessage |
withBody(String body)
The default message body of the push notification, email, or SMS message.
|
DefaultMessage |
withSubstitutions(Map<String,List<String>> substitutions)
The default message variables to use in the push notification, email, or SMS message.
|
public void setBody(String body)
The default message body of the push notification, email, or SMS message.
body
- The default message body of the push notification, email, or SMS message.public String getBody()
The default message body of the push notification, email, or SMS message.
public DefaultMessage withBody(String body)
The default message body of the push notification, email, or SMS message.
body
- The default message body of the push notification, email, or SMS message.public Map<String,List<String>> getSubstitutions()
The default message variables to use in the push notification, email, or SMS message. You can override these default variables with individual address variables.
public void setSubstitutions(Map<String,List<String>> substitutions)
The default message variables to use in the push notification, email, or SMS message. You can override these default variables with individual address variables.
substitutions
- The default message variables to use in the push notification, email, or SMS message. You can override
these default variables with individual address variables.public DefaultMessage withSubstitutions(Map<String,List<String>> substitutions)
The default message variables to use in the push notification, email, or SMS message. You can override these default variables with individual address variables.
substitutions
- The default message variables to use in the push notification, email, or SMS message. You can override
these default variables with individual address variables.public DefaultMessage addSubstitutionsEntry(String key, List<String> value)
public DefaultMessage clearSubstitutionsEntries()
public String toString()
toString
in class Object
Object.toString()
public DefaultMessage clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.