@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Message extends Object implements Serializable, Cloneable, StructuredPojo
| Constructor and Description |
|---|
Message() |
| Modifier and Type | Method and Description |
|---|---|
Message |
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.
|
String |
getImageIconUrl()
The URL that points to the icon image for the push notification icon, for example, the app icon.
|
String |
getImageSmallIconUrl()
The URL that points to the small icon image for the push notification icon, for example, the app icon.
|
String |
getImageUrl()
The URL that points to an image used in the push notification.
|
String |
getJsonBody()
The JSON payload used for a silent push.
|
String |
getMediaUrl()
The URL that points to the media resource, for example a .mp4 or .gif file.
|
String |
getRawContent()
The Raw JSON formatted string to be used as the payload.
|
Boolean |
getSilentPush()
Indicates if the message should display on the users device.
|
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 users device.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
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.
|
void |
setImageIconUrl(String imageIconUrl)
The URL that points to the icon image for the push notification icon, for example, the app icon.
|
void |
setImageSmallIconUrl(String imageSmallIconUrl)
The URL that points to the small icon image for the push notification icon, for example, the app icon.
|
void |
setImageUrl(String imageUrl)
The URL that points to an image used in the push notification.
|
void |
setJsonBody(String jsonBody)
The JSON payload used for a silent push.
|
void |
setMediaUrl(String mediaUrl)
The URL that points to the media resource, for example a .mp4 or .gif file.
|
void |
setRawContent(String rawContent)
The Raw JSON formatted string to be used as the payload.
|
void |
setSilentPush(Boolean silentPush)
Indicates if the message should display on the users device.
|
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; useful for testing and debugging.
|
Message |
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.
|
Message |
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.
|
Message |
withBody(String body)
The message body.
|
Message |
withImageIconUrl(String imageIconUrl)
The URL that points to the icon image for the push notification icon, for example, the app icon.
|
Message |
withImageSmallIconUrl(String imageSmallIconUrl)
The URL that points to the small icon image for the push notification icon, for example, the app icon.
|
Message |
withImageUrl(String imageUrl)
The URL that points to an image used in the push notification.
|
Message |
withJsonBody(String jsonBody)
The JSON payload used for a silent push.
|
Message |
withMediaUrl(String mediaUrl)
The URL that points to the media resource, for example a .mp4 or .gif file.
|
Message |
withRawContent(String rawContent)
The Raw JSON formatted string to be used as the payload.
|
Message |
withSilentPush(Boolean silentPush)
Indicates if the message should display on the users device.
|
Message |
withTitle(String title)
The message title that displays above the message on the user's device.
|
Message |
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.Actionpublic String getAction()
Actionpublic Message 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.Actionpublic 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.Actionpublic Message 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.Actionpublic void setBody(String body)
body - The message body. Can include up to 140 characters.public String getBody()
public Message withBody(String body)
body - The message body. Can include up to 140 characters.public void setImageIconUrl(String imageIconUrl)
imageIconUrl - The URL that points to the icon image for the push notification icon, for example, the app icon.public String getImageIconUrl()
public Message withImageIconUrl(String imageIconUrl)
imageIconUrl - The URL that points to the icon image for the push notification icon, for example, the app icon.public void setImageSmallIconUrl(String imageSmallIconUrl)
imageSmallIconUrl - The URL that points to the small icon image for the push notification icon, for example, the app icon.public String getImageSmallIconUrl()
public Message withImageSmallIconUrl(String imageSmallIconUrl)
imageSmallIconUrl - The URL that points to the small icon image for the push notification icon, for example, the app icon.public void setImageUrl(String imageUrl)
imageUrl - The URL that points to an image used in the push notification.public String getImageUrl()
public Message withImageUrl(String imageUrl)
imageUrl - The URL that points to an image used in the push notification.public void setJsonBody(String jsonBody)
jsonBody - The JSON payload used for a silent push.public String getJsonBody()
public Message withJsonBody(String jsonBody)
jsonBody - The JSON payload used for a silent push.public void setMediaUrl(String mediaUrl)
mediaUrl - The URL that points to the media resource, for example a .mp4 or .gif file.public String getMediaUrl()
public Message withMediaUrl(String mediaUrl)
mediaUrl - The URL that points to the media resource, for example a .mp4 or .gif file.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 Message withRawContent(String rawContent)
rawContent - The Raw JSON formatted string to be used as the payload. This value overrides the message.public void setSilentPush(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.public Boolean getSilentPush()
public Message withSilentPush(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.public Boolean isSilentPush()
public void setTitle(String title)
title - The message title that displays above the message on the user's device.public String getTitle()
public Message 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 Message 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 ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.