public class AddressConfiguration
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
AddressConfiguration() |
Modifier and Type | Method and Description |
---|---|
AddressConfiguration |
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.
|
AddressConfiguration |
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.
|
AddressConfiguration |
clearContextEntries()
Removes all the entries added into Context.
|
AddressConfiguration |
clearSubstitutionsEntries()
Removes all the entries added into Substitutions.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getBodyOverride()
Body override.
|
java.lang.String |
getChannelType()
The channel type.
|
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 |
setChannelType(ChannelType channelType)
The channel type.
|
void |
setChannelType(java.lang.String channelType)
The channel type.
|
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.
|
AddressConfiguration |
withBodyOverride(java.lang.String bodyOverride)
Body override.
|
AddressConfiguration |
withChannelType(ChannelType channelType)
The channel type.
|
AddressConfiguration |
withChannelType(java.lang.String channelType)
The channel type.
|
AddressConfiguration |
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.
|
AddressConfiguration |
withRawContent(java.lang.String rawContent)
The Raw JSON formatted string to be used as the payload.
|
AddressConfiguration |
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.
|
AddressConfiguration |
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 AddressConfiguration 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.lang.String getChannelType()
Constraints:
Allowed Values: GCM, APNS, APNS_SANDBOX, APNS_VOIP,
APNS_VOIP_SANDBOX, ADM, SMS, VOICE, EMAIL, BAIDU, CUSTOM
ChannelType
public void setChannelType(java.lang.String channelType)
Constraints:
Allowed Values: GCM, APNS, APNS_SANDBOX, APNS_VOIP,
APNS_VOIP_SANDBOX, ADM, SMS, VOICE, EMAIL, BAIDU, CUSTOM
channelType
- The channel type. Valid values: GCM | APNS |
APNS_SANDBOX | APNS_VOIP | APNS_VOIP_SANDBOX | ADM | SMS |
EMAIL | BAIDUChannelType
public AddressConfiguration withChannelType(java.lang.String channelType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: GCM, APNS, APNS_SANDBOX, APNS_VOIP,
APNS_VOIP_SANDBOX, ADM, SMS, VOICE, EMAIL, BAIDU, CUSTOM
channelType
- The channel type. Valid values: GCM | APNS |
APNS_SANDBOX | APNS_VOIP | APNS_VOIP_SANDBOX | ADM | SMS |
EMAIL | BAIDUChannelType
public void setChannelType(ChannelType channelType)
Constraints:
Allowed Values: GCM, APNS, APNS_SANDBOX, APNS_VOIP,
APNS_VOIP_SANDBOX, ADM, SMS, VOICE, EMAIL, BAIDU, CUSTOM
channelType
- The channel type. Valid values: GCM | APNS |
APNS_SANDBOX | APNS_VOIP | APNS_VOIP_SANDBOX | ADM | SMS |
EMAIL | BAIDUChannelType
public AddressConfiguration withChannelType(ChannelType channelType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: GCM, APNS, APNS_SANDBOX, APNS_VOIP,
APNS_VOIP_SANDBOX, ADM, SMS, VOICE, EMAIL, BAIDU, CUSTOM
channelType
- The channel type. Valid values: GCM | APNS |
APNS_SANDBOX | APNS_VOIP | APNS_VOIP_SANDBOX | ADM | SMS |
EMAIL | BAIDUChannelType
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 AddressConfiguration 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 AddressConfiguration 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 AddressConfiguration 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 AddressConfiguration 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 AddressConfiguration 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 AddressConfiguration 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 AddressConfiguration 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 AddressConfiguration 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.