@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DefaultPushNotificationMessage extends Object implements Serializable, Cloneable, StructuredPojo
Constructor and Description |
---|
DefaultPushNotificationMessage() |
Modifier and Type | Method and Description |
---|---|
DefaultPushNotificationMessage |
addDataEntry(String key,
String value) |
DefaultPushNotificationMessage |
addSubstitutionsEntry(String key,
List<String> value) |
DefaultPushNotificationMessage |
clearDataEntries()
Removes all the entries added into Data.
|
DefaultPushNotificationMessage |
clearSubstitutionsEntries()
Removes all the entries added into Substitutions.
|
DefaultPushNotificationMessage |
clone() |
boolean |
equals(Object obj) |
String |
getAction()
The action that occurs if the user taps a push notification delivered by the campaign: OPEN_APP - Your app
launches, or it becomes the foreground app if it has been sent to the background.
|
String |
getBody()
The message body of the notification.
|
Map<String,String> |
getData()
The data payload used for a silent push.
|
Boolean |
getSilentPush()
Indicates if the message should display on the recipient's device.
|
Map<String,List<String>> |
getSubstitutions()
Default message substitutions.
|
String |
getTitle()
The message title that displays above the message on the user's device.
|
String |
getUrl()
The URL to open in the user's mobile browser.
|
int |
hashCode() |
Boolean |
isSilentPush()
Indicates if the message should display on the recipient's device.
|
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setAction(Action action)
The action that occurs if the user taps a push notification delivered by the campaign: OPEN_APP - Your app
launches, or it becomes the foreground app if it has been sent to the background.
|
void |
setAction(String action)
The action that occurs if the user taps a push notification delivered by the campaign: OPEN_APP - Your app
launches, or it becomes the foreground app if it has been sent to the background.
|
void |
setBody(String body)
The message body of the notification.
|
void |
setData(Map<String,String> data)
The data payload used for a silent push.
|
void |
setSilentPush(Boolean silentPush)
Indicates if the message should display on the recipient's device.
|
void |
setSubstitutions(Map<String,List<String>> substitutions)
Default message substitutions.
|
void |
setTitle(String title)
The message title that displays above the message on the user's device.
|
void |
setUrl(String url)
The URL to open in the user's mobile browser.
|
String |
toString()
Returns a string representation of this object.
|
DefaultPushNotificationMessage |
withAction(Action action)
The action that occurs if the user taps a push notification delivered by the campaign: OPEN_APP - Your app
launches, or it becomes the foreground app if it has been sent to the background.
|
DefaultPushNotificationMessage |
withAction(String action)
The action that occurs if the user taps a push notification delivered by the campaign: OPEN_APP - Your app
launches, or it becomes the foreground app if it has been sent to the background.
|
DefaultPushNotificationMessage |
withBody(String body)
The message body of the notification.
|
DefaultPushNotificationMessage |
withData(Map<String,String> data)
The data payload used for a silent push.
|
DefaultPushNotificationMessage |
withSilentPush(Boolean silentPush)
Indicates if the message should display on the recipient's device.
|
DefaultPushNotificationMessage |
withSubstitutions(Map<String,List<String>> substitutions)
Default message substitutions.
|
DefaultPushNotificationMessage |
withTitle(String title)
The message title that displays above the message on the user's device.
|
DefaultPushNotificationMessage |
withUrl(String url)
The URL to open in the user's mobile browser.
|
public void setAction(String action)
action
- The action that occurs if the user taps a push notification delivered by the campaign: OPEN_APP - Your app
launches, or it becomes the foreground app if it has been sent to the background. This is the default
action. DEEP_LINK - Uses deep linking features in iOS and Android to open your app and display a
designated user interface within the app. URL - The default mobile browser on the user's device launches
and opens a web page at the URL you specify. Possible values include: OPEN_APP | DEEP_LINK | URLAction
public String getAction()
Action
public DefaultPushNotificationMessage withAction(String action)
action
- The action that occurs if the user taps a push notification delivered by the campaign: OPEN_APP - Your app
launches, or it becomes the foreground app if it has been sent to the background. This is the default
action. DEEP_LINK - Uses deep linking features in iOS and Android to open your app and display a
designated user interface within the app. URL - The default mobile browser on the user's device launches
and opens a web page at the URL you specify. Possible values include: OPEN_APP | DEEP_LINK | URLAction
public void setAction(Action action)
action
- The action that occurs if the user taps a push notification delivered by the campaign: OPEN_APP - Your app
launches, or it becomes the foreground app if it has been sent to the background. This is the default
action. DEEP_LINK - Uses deep linking features in iOS and Android to open your app and display a
designated user interface within the app. URL - The default mobile browser on the user's device launches
and opens a web page at the URL you specify. Possible values include: OPEN_APP | DEEP_LINK | URLAction
public DefaultPushNotificationMessage withAction(Action action)
action
- The action that occurs if the user taps a push notification delivered by the campaign: OPEN_APP - Your app
launches, or it becomes the foreground app if it has been sent to the background. This is the default
action. DEEP_LINK - Uses deep linking features in iOS and Android to open your app and display a
designated user interface within the app. URL - The default mobile browser on the user's device launches
and opens a web page at the URL you specify. Possible values include: OPEN_APP | DEEP_LINK | URLAction
public void setBody(String body)
body
- The message body of the notification.public String getBody()
public DefaultPushNotificationMessage withBody(String body)
body
- The message body of the notification.public Map<String,String> getData()
public void setData(Map<String,String> data)
data
- The data payload used for a silent push. This payload is added to the notifications'
data.pinpoint.jsonBody' objectpublic DefaultPushNotificationMessage withData(Map<String,String> data)
data
- The data payload used for a silent push. This payload is added to the notifications'
data.pinpoint.jsonBody' objectpublic DefaultPushNotificationMessage addDataEntry(String key, String value)
public DefaultPushNotificationMessage clearDataEntries()
public void setSilentPush(Boolean silentPush)
silentPush
- Indicates if the message should display on the recipient's device. You can use silent pushes for remote
configuration or to deliver messages to in-app notification centers.public Boolean getSilentPush()
public DefaultPushNotificationMessage withSilentPush(Boolean silentPush)
silentPush
- Indicates if the message should display on the recipient's device. You can use silent pushes for remote
configuration or to deliver messages to in-app notification centers.public Boolean isSilentPush()
public Map<String,List<String>> getSubstitutions()
public void setSubstitutions(Map<String,List<String>> substitutions)
substitutions
- Default message substitutions. Can be overridden by individual address substitutions.public DefaultPushNotificationMessage withSubstitutions(Map<String,List<String>> substitutions)
substitutions
- Default message substitutions. Can be overridden by individual address substitutions.public DefaultPushNotificationMessage addSubstitutionsEntry(String key, List<String> value)
public DefaultPushNotificationMessage clearSubstitutionsEntries()
public void setTitle(String title)
title
- The message title that displays above the message on the user's device.public String getTitle()
public DefaultPushNotificationMessage withTitle(String title)
title
- The message title that displays above the message on the user's device.public void setUrl(String url)
url
- The URL to open in the user's mobile browser. Used if the value for Action is URL.public String getUrl()
public DefaultPushNotificationMessage withUrl(String url)
url
- The URL to open in the user's mobile browser. Used if the value for Action is URL.public String toString()
toString
in class Object
Object.toString()
public DefaultPushNotificationMessage clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall
in interface StructuredPojo
Copyright © 2019. All rights reserved.