public class EndpointSendConfiguration
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
EndpointSendConfiguration() |
Modifier and Type | Method and Description |
---|---|
EndpointSendConfiguration |
addContextEntry(java.lang.String key,
java.lang.String value)
A map of custom attributes to attributes to be attached to the message
for this address.
|
EndpointSendConfiguration |
addSubstitutionsEntry(java.lang.String key,
java.util.List<java.lang.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(java.lang.Object obj) |
java.lang.String |
getBodyOverride()
Body override.
|
java.util.Map<java.lang.String,java.lang.String> |
getContext()
A map of custom attributes to attributes to be attached to the message
for this address.
|
java.lang.String |
getRawContent()
The Raw JSON formatted string to be used as the payload.
|
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getSubstitutions()
A map of substitution values for the message to be merged with the
DefaultMessage's substitutions.
|
java.lang.String |
getTitleOverride()
Title override.
|
int |
hashCode() |
void |
setBodyOverride(java.lang.String bodyOverride)
Body override.
|
void |
setContext(java.util.Map<java.lang.String,java.lang.String> context)
A map of custom attributes to attributes to be attached to the message
for this address.
|
void |
setRawContent(java.lang.String rawContent)
The Raw JSON formatted string to be used as the payload.
|
void |
setSubstitutions(java.util.Map<java.lang.String,java.util.List<java.lang.String>> substitutions)
A map of substitution values for the message to be merged with the
DefaultMessage's substitutions.
|
void |
setTitleOverride(java.lang.String titleOverride)
Title override.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
EndpointSendConfiguration |
withBodyOverride(java.lang.String bodyOverride)
Body override.
|
EndpointSendConfiguration |
withContext(java.util.Map<java.lang.String,java.lang.String> context)
A map of custom attributes to attributes to be attached to the message
for this address.
|
EndpointSendConfiguration |
withRawContent(java.lang.String rawContent)
The Raw JSON formatted string to be used as the payload.
|
EndpointSendConfiguration |
withSubstitutions(java.util.Map<java.lang.String,java.util.List<java.lang.String>> substitutions)
A map of substitution values for the message to be merged with the
DefaultMessage's substitutions.
|
EndpointSendConfiguration |
withTitleOverride(java.lang.String titleOverride)
Title override.
|
public java.lang.String getBodyOverride()
public void setBodyOverride(java.lang.String bodyOverride)
bodyOverride
- Body override. If specified will override default
body.public EndpointSendConfiguration withBodyOverride(java.lang.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 java.util.Map<java.lang.String,java.lang.String> getContext()
public void setContext(java.util.Map<java.lang.String,java.lang.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(java.util.Map<java.lang.String,java.lang.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(java.lang.String key, java.lang.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 java.lang.String getRawContent()
public void setRawContent(java.lang.String rawContent)
rawContent
- The Raw JSON formatted string to be used as the
payload. This value overrides the message.public EndpointSendConfiguration withRawContent(java.lang.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 java.util.Map<java.lang.String,java.util.List<java.lang.String>> getSubstitutions()
public void setSubstitutions(java.util.Map<java.lang.String,java.util.List<java.lang.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(java.util.Map<java.lang.String,java.util.List<java.lang.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(java.lang.String key, java.util.List<java.lang.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 java.lang.String getTitleOverride()
public void setTitleOverride(java.lang.String titleOverride)
titleOverride
- Title override. If specified will override default
title if applicable.public EndpointSendConfiguration withTitleOverride(java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.