public class EndpointSendConfiguration extends Object implements Serializable
| Constructor and Description |
|---|
EndpointSendConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
EndpointSendConfiguration |
addContextEntry(String key,
String value)
A map of custom attributes to attributes to be attached to the message
for this address.
|
EndpointSendConfiguration |
addSubstitutionsEntry(String key,
List<String> value)
A map of substitution values for the message to be merged with the
DefaultMessage's substitutions.
|
EndpointSendConfiguration |
clearContextEntries()
Removes all the entries added into Context.
|
EndpointSendConfiguration |
clearSubstitutionsEntries()
Removes all the entries added into Substitutions.
|
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 |
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 String getBodyOverride()
public void setBodyOverride(String bodyOverride)
bodyOverride - Body override. If specified will override default
body.public EndpointSendConfiguration withBodyOverride(String bodyOverride)
Returns a reference to this object so that method calls can be chained together.
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)
Returns a reference to this object so that method calls can be chained together.
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)
The method adds a new key-value pair into Context parameter, and returns a reference to this object so that method calls can be chained together.
key - The key of the entry to be added into Context.value - The corresponding value of the entry to be added into
Context.public EndpointSendConfiguration clearContextEntries()
Returns a reference to this object so that method calls can be chained together.
public String getRawContent()
public void setRawContent(String rawContent)
rawContent - The Raw JSON formatted string to be used as the
payload. This value overrides the message.public EndpointSendConfiguration withRawContent(String rawContent)
Returns a reference to this object so that method calls can be chained together.
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)
Returns a reference to this object so that method calls can be chained together.
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)
The method adds a new key-value pair into Substitutions parameter, and returns a reference to this object so that method calls can be chained together.
key - The key of the entry to be added into Substitutions.value - The corresponding value of the entry to be added into
Substitutions.public EndpointSendConfiguration clearSubstitutionsEntries()
Returns a reference to this object so that method calls can be chained together.
public String getTitleOverride()
public void setTitleOverride(String titleOverride)
titleOverride - Title override. If specified will override default
title if applicable.public EndpointSendConfiguration withTitleOverride(String titleOverride)
Returns a reference to this object so that method calls can be chained together.
titleOverride - Title override. If specified will override default
title if applicable.public String toString()
toString in class ObjectObject.toString()Copyright © 2019. All rights reserved.