@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class BaiduMessage extends Object implements Serializable, Cloneable, StructuredPojo
Constructor and Description |
---|
BaiduMessage() |
Modifier and Type | Method and Description |
---|---|
BaiduMessage |
addDataEntry(String key,
String value) |
BaiduMessage |
addSubstitutionsEntry(String key,
List<String> value) |
BaiduMessage |
clearDataEntries()
Removes all the entries added into Data.
|
BaiduMessage |
clearSubstitutionsEntries()
Removes all the entries added into Substitutions.
|
BaiduMessage |
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, the email body or the text message.
|
Map<String,String> |
getData()
The data payload used for a silent push.
|
String |
getIconReference()
The icon image name of the asset saved in your application.
|
String |
getImageIconUrl()
The URL that points to an image used as the large icon to the notification content view.
|
String |
getImageUrl()
The URL that points to an image used in the push notification.
|
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 |
getSmallImageIconUrl()
The URL that points to an image used as the small icon for the notification which will be used to represent the
notification in the status bar and content view
|
String |
getSound()
Indicates a sound to play when the device receives the notification.
|
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 users device.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
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, the email body or the text message.
|
void |
setData(Map<String,String> data)
The data payload used for a silent push.
|
void |
setIconReference(String iconReference)
The icon image name of the asset saved in your application.
|
void |
setImageIconUrl(String imageIconUrl)
The URL that points to an image used as the large icon to the notification content view.
|
void |
setImageUrl(String imageUrl)
The URL that points to an image used in the push notification.
|
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 |
setSmallImageIconUrl(String smallImageIconUrl)
The URL that points to an image used as the small icon for the notification which will be used to represent the
notification in the status bar and content view
|
void |
setSound(String sound)
Indicates a sound to play when the device receives the notification.
|
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; useful for testing and debugging.
|
BaiduMessage |
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.
|
BaiduMessage |
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.
|
BaiduMessage |
withBody(String body)
The message body of the notification, the email body or the text message.
|
BaiduMessage |
withData(Map<String,String> data)
The data payload used for a silent push.
|
BaiduMessage |
withIconReference(String iconReference)
The icon image name of the asset saved in your application.
|
BaiduMessage |
withImageIconUrl(String imageIconUrl)
The URL that points to an image used as the large icon to the notification content view.
|
BaiduMessage |
withImageUrl(String imageUrl)
The URL that points to an image used in the push notification.
|
BaiduMessage |
withRawContent(String rawContent)
The Raw JSON formatted string to be used as the payload.
|
BaiduMessage |
withSilentPush(Boolean silentPush)
Indicates if the message should display on the users device.
|
BaiduMessage |
withSmallImageIconUrl(String smallImageIconUrl)
The URL that points to an image used as the small icon for the notification which will be used to represent the
notification in the status bar and content view
|
BaiduMessage |
withSound(String sound)
Indicates a sound to play when the device receives the notification.
|
BaiduMessage |
withSubstitutions(Map<String,List<String>> substitutions)
Default message substitutions.
|
BaiduMessage |
withTitle(String title)
The message title that displays above the message on the user's device.
|
BaiduMessage |
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 BaiduMessage 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 BaiduMessage 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, the email body or the text message.public String getBody()
public BaiduMessage withBody(String body)
body
- The message body of the notification, the email body or the text message.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 BaiduMessage 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 BaiduMessage addDataEntry(String key, String value)
public BaiduMessage clearDataEntries()
public void setIconReference(String iconReference)
iconReference
- The icon image name of the asset saved in your application.public String getIconReference()
public BaiduMessage withIconReference(String iconReference)
iconReference
- The icon image name of the asset saved in your application.public void setImageIconUrl(String imageIconUrl)
imageIconUrl
- The URL that points to an image used as the large icon to the notification content view.public String getImageIconUrl()
public BaiduMessage withImageIconUrl(String imageIconUrl)
imageIconUrl
- The URL that points to an image used as the large icon to the notification content view.public void setImageUrl(String imageUrl)
imageUrl
- The URL that points to an image used in the push notification.public String getImageUrl()
public BaiduMessage withImageUrl(String imageUrl)
imageUrl
- The URL that points to an image used in the push notification.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 BaiduMessage 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 BaiduMessage 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 setSmallImageIconUrl(String smallImageIconUrl)
smallImageIconUrl
- The URL that points to an image used as the small icon for the notification which will be used to
represent the notification in the status bar and content viewpublic String getSmallImageIconUrl()
public BaiduMessage withSmallImageIconUrl(String smallImageIconUrl)
smallImageIconUrl
- The URL that points to an image used as the small icon for the notification which will be used to
represent the notification in the status bar and content viewpublic void setSound(String sound)
sound
- Indicates a sound to play when the device receives the notification. Supports default, or the filename of
a sound resource bundled in the app. Android sound files must reside in /res/raw/public String getSound()
public BaiduMessage withSound(String sound)
sound
- Indicates a sound to play when the device receives the notification. Supports default, or the filename of
a sound resource bundled in the app. Android sound files must reside in /res/raw/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 BaiduMessage withSubstitutions(Map<String,List<String>> substitutions)
substitutions
- Default message substitutions. Can be overridden by individual address substitutions.public BaiduMessage addSubstitutionsEntry(String key, List<String> value)
public BaiduMessage clearSubstitutionsEntries()
public void setTitle(String title)
title
- The message title that displays above the message on the user's device.public String getTitle()
public BaiduMessage 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 BaiduMessage 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 BaiduMessage clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.