public static interface Message.Builder extends CopyableBuilder<Message.Builder,Message>
Modifier and Type | Method and Description |
---|---|
Message.Builder |
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.
|
Message.Builder |
action(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.
|
Message.Builder |
body(String body)
The message body.
|
Message.Builder |
imageIconUrl(String imageIconUrl)
The URL that points to the icon image for the push notification icon, for example, the app icon.
|
Message.Builder |
imageSmallIconUrl(String imageSmallIconUrl)
The URL that points to the small icon image for the push notification icon, for example, the app icon.
|
Message.Builder |
imageUrl(String imageUrl)
The URL that points to an image used in the push notification.
|
Message.Builder |
jsonBody(String jsonBody)
The JSON payload used for a silent push.
|
Message.Builder |
mediaUrl(String mediaUrl)
The URL that points to the media resource, for example a .mp4 or .gif file.
|
Message.Builder |
rawContent(String rawContent)
The Raw JSON formatted string to be used as the payload.
|
Message.Builder |
silentPush(Boolean silentPush)
Indicates if the message should display on the users device.
|
Message.Builder |
title(String title)
The message title that displays above the message on the user's device.
|
Message.Builder |
url(String url)
The URL to open in the user's mobile browser.
|
copy
applyMutation, build
Message.Builder action(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.Action
,
Action
Message.Builder action(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.Action
,
Action
Message.Builder body(String body)
body
- The message body. Can include up to 140 characters.Message.Builder imageIconUrl(String imageIconUrl)
imageIconUrl
- The URL that points to the icon image for the push notification icon, for example, the app icon.Message.Builder imageSmallIconUrl(String imageSmallIconUrl)
imageSmallIconUrl
- The URL that points to the small icon image for the push notification icon, for example, the app icon.Message.Builder imageUrl(String imageUrl)
imageUrl
- The URL that points to an image used in the push notification.Message.Builder jsonBody(String jsonBody)
jsonBody
- The JSON payload used for a silent push.Message.Builder mediaUrl(String mediaUrl)
mediaUrl
- The URL that points to the media resource, for example a .mp4 or .gif file.Message.Builder rawContent(String rawContent)
rawContent
- The Raw JSON formatted string to be used as the payload. This value overrides the message.Message.Builder silentPush(Boolean silentPush)
silentPush
- Indicates if the message should display on the users device.
Silent pushes can be used for Remote Configuration and Phone Home use cases.Message.Builder title(String title)
title
- The message title that displays above the message on the user's device.Message.Builder url(String url)
url
- The URL to open in the user's mobile browser. Used if the value for Action is URL.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.