@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AddressConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
Constructor and Description |
---|
AddressConfiguration() |
Modifier and Type | Method and Description |
---|---|
AddressConfiguration |
addContextEntry(String key,
String value) |
AddressConfiguration |
addSubstitutionsEntry(String key,
List<String> value) |
AddressConfiguration |
clearContextEntries()
Removes all the entries added into Context.
|
AddressConfiguration |
clearSubstitutionsEntries()
Removes all the entries added into Substitutions.
|
AddressConfiguration |
clone() |
boolean |
equals(Object obj) |
String |
getBodyOverride()
Body override.
|
String |
getChannelType()
The channel type.
|
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) |
void |
setBodyOverride(String bodyOverride)
Body override.
|
void |
setChannelType(ChannelType channelType)
The channel type.
|
void |
setChannelType(String channelType)
The channel type.
|
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.
|
AddressConfiguration |
withBodyOverride(String bodyOverride)
Body override.
|
AddressConfiguration |
withChannelType(ChannelType channelType)
The channel type.
|
AddressConfiguration |
withChannelType(String channelType)
The channel type.
|
AddressConfiguration |
withContext(Map<String,String> context)
A map of custom attributes to attributes to be attached to the message for this address.
|
AddressConfiguration |
withRawContent(String rawContent)
The Raw JSON formatted string to be used as the payload.
|
AddressConfiguration |
withSubstitutions(Map<String,List<String>> substitutions)
A map of substitution values for the message to be merged with the DefaultMessage's substitutions.
|
AddressConfiguration |
withTitleOverride(String titleOverride)
Title override.
|
public void setBodyOverride(String bodyOverride)
bodyOverride
- Body override. If specified will override default body.public String getBodyOverride()
public AddressConfiguration withBodyOverride(String bodyOverride)
bodyOverride
- Body override. If specified will override default body.public void setChannelType(String channelType)
channelType
- The channel type.
Valid values: GCM | APNS | SMS | EMAILChannelType
public String getChannelType()
ChannelType
public AddressConfiguration withChannelType(String channelType)
channelType
- The channel type.
Valid values: GCM | APNS | SMS | EMAILChannelType
public void setChannelType(ChannelType channelType)
channelType
- The channel type.
Valid values: GCM | APNS | SMS | EMAILChannelType
public AddressConfiguration withChannelType(ChannelType channelType)
channelType
- The channel type.
Valid values: GCM | APNS | SMS | EMAILChannelType
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 AddressConfiguration 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 AddressConfiguration addContextEntry(String key, String value)
public AddressConfiguration 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 AddressConfiguration 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 AddressConfiguration 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 AddressConfiguration addSubstitutionsEntry(String key, List<String> value)
public AddressConfiguration clearSubstitutionsEntries()
public void setTitleOverride(String titleOverride)
titleOverride
- Title override. If specified will override default title if applicable.public String getTitleOverride()
public AddressConfiguration withTitleOverride(String titleOverride)
titleOverride
- Title override. If specified will override default title if applicable.public String toString()
toString
in class Object
Object.toString()
public AddressConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall
in interface StructuredPojo
Copyright © 2017. All rights reserved.