@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EndpointSendConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
Constructor and Description |
---|
EndpointSendConfiguration() |
Modifier and Type | Method and Description |
---|---|
EndpointSendConfiguration |
addContextEntry(String key,
String value) |
EndpointSendConfiguration |
addSubstitutionsEntry(String key,
List<String> value) |
EndpointSendConfiguration |
clearContextEntries()
Removes all the entries added into Context.
|
EndpointSendConfiguration |
clearSubstitutionsEntries()
Removes all the entries added into Substitutions.
|
EndpointSendConfiguration |
clone() |
boolean |
equals(Object obj) |
String |
getBodyOverride()
Body override.
|
Map<String,String> |
getContext()
A map of custom attributes to attributes to be attached to the message for this address.
|
String |
getRawContent()
The Raw JSON formatted string to be used as the payload.
|
Map<String,List<String>> |
getSubstitutions()
A map of substitution values for the message to be merged with the DefaultMessage's substitutions.
|
String |
getTitleOverride()
Title override.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setBodyOverride(String bodyOverride)
Body override.
|
void |
setContext(Map<String,String> context)
A map of custom attributes to attributes to be attached to the message for this address.
|
void |
setRawContent(String rawContent)
The Raw JSON formatted string to be used as the payload.
|
void |
setSubstitutions(Map<String,List<String>> substitutions)
A map of substitution values for the message to be merged with the DefaultMessage's substitutions.
|
void |
setTitleOverride(String titleOverride)
Title override.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
EndpointSendConfiguration |
withBodyOverride(String bodyOverride)
Body override.
|
EndpointSendConfiguration |
withContext(Map<String,String> context)
A map of custom attributes to attributes to be attached to the message for this address.
|
EndpointSendConfiguration |
withRawContent(String rawContent)
The Raw JSON formatted string to be used as the payload.
|
EndpointSendConfiguration |
withSubstitutions(Map<String,List<String>> substitutions)
A map of substitution values for the message to be merged with the DefaultMessage's substitutions.
|
EndpointSendConfiguration |
withTitleOverride(String titleOverride)
Title override.
|
public void setBodyOverride(String bodyOverride)
bodyOverride
- Body override. If specified will override default body.public String getBodyOverride()
public EndpointSendConfiguration withBodyOverride(String bodyOverride)
bodyOverride
- Body override. If specified will override default body.public Map<String,String> getContext()
public void setContext(Map<String,String> context)
context
- A map of custom attributes to attributes to be attached to the message for this address. This payload is
added to the push notification's 'data.pinpoint' object or added to the email/sms delivery receipt event
attributes.public EndpointSendConfiguration withContext(Map<String,String> context)
context
- A map of custom attributes to attributes to be attached to the message for this address. This payload is
added to the push notification's 'data.pinpoint' object or added to the email/sms delivery receipt event
attributes.public EndpointSendConfiguration addContextEntry(String key, String value)
public EndpointSendConfiguration clearContextEntries()
public void setRawContent(String rawContent)
rawContent
- The Raw JSON formatted string to be used as the payload. This value overrides the message.public String getRawContent()
public EndpointSendConfiguration withRawContent(String rawContent)
rawContent
- The Raw JSON formatted string to be used as the payload. This value overrides the message.public Map<String,List<String>> getSubstitutions()
public void setSubstitutions(Map<String,List<String>> substitutions)
substitutions
- A map of substitution values for the message to be merged with the DefaultMessage's substitutions.
Substitutions on this map take precedence over the all other substitutions.public EndpointSendConfiguration withSubstitutions(Map<String,List<String>> substitutions)
substitutions
- A map of substitution values for the message to be merged with the DefaultMessage's substitutions.
Substitutions on this map take precedence over the all other substitutions.public EndpointSendConfiguration addSubstitutionsEntry(String key, List<String> value)
public EndpointSendConfiguration clearSubstitutionsEntries()
public void setTitleOverride(String titleOverride)
titleOverride
- Title override. If specified will override default title if applicable.public String getTitleOverride()
public EndpointSendConfiguration withTitleOverride(String titleOverride)
titleOverride
- Title override. If specified will override default title if applicable.public String toString()
toString
in class Object
Object.toString()
public EndpointSendConfiguration 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.