@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AndroidPushNotificationTemplate extends Object implements Serializable, Cloneable, StructuredPojo
Specifies channel-specific content and settings for a message template that can be used in push notifications that are sent through the ADM (Amazon Device Messaging), Baidu (Baidu Cloud Push), or GCM (Firebase Cloud Messaging, formerly Google Cloud Messaging) channel.
Constructor and Description |
---|
AndroidPushNotificationTemplate() |
Modifier and Type | Method and Description |
---|---|
AndroidPushNotificationTemplate |
clone() |
boolean |
equals(Object obj) |
String |
getAction()
The action to occur if a recipient taps a push notification that's based on the message template.
|
String |
getBody()
The message body to use in a push notification that's based on the message template.
|
String |
getImageIconUrl()
The URL of the large icon image to display in the content view of a push notification that's based on the message
template.
|
String |
getImageUrl()
The URL of an image to display in a push notification that's based on the message template.
|
String |
getRawContent()
The raw, JSON-formatted string to use as the payload for a push notification that's based on the message
template.
|
String |
getSmallImageIconUrl()
The URL of the small icon image to display in the status bar and the content view of a push notification that's
based on the message template.
|
String |
getSound()
The sound to play when a recipient receives a push notification that's based on the message template.
|
String |
getTitle()
The title to use in a push notification that's based on the message template.
|
String |
getUrl()
The URL to open in a recipient's default mobile browser, if a recipient taps a push notification that's based on
the message template and the value of the Action property is URL.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAction(String action)
The action to occur if a recipient taps a push notification that's based on the message template.
|
void |
setBody(String body)
The message body to use in a push notification that's based on the message template.
|
void |
setImageIconUrl(String imageIconUrl)
The URL of the large icon image to display in the content view of a push notification that's based on the message
template.
|
void |
setImageUrl(String imageUrl)
The URL of an image to display in a push notification that's based on the message template.
|
void |
setRawContent(String rawContent)
The raw, JSON-formatted string to use as the payload for a push notification that's based on the message
template.
|
void |
setSmallImageIconUrl(String smallImageIconUrl)
The URL of the small icon image to display in the status bar and the content view of a push notification that's
based on the message template.
|
void |
setSound(String sound)
The sound to play when a recipient receives a push notification that's based on the message template.
|
void |
setTitle(String title)
The title to use in a push notification that's based on the message template.
|
void |
setUrl(String url)
The URL to open in a recipient's default mobile browser, if a recipient taps a push notification that's based on
the message template and the value of the Action property is URL.
|
String |
toString()
Returns a string representation of this object.
|
AndroidPushNotificationTemplate |
withAction(Action action)
The action to occur if a recipient taps a push notification that's based on the message template.
|
AndroidPushNotificationTemplate |
withAction(String action)
The action to occur if a recipient taps a push notification that's based on the message template.
|
AndroidPushNotificationTemplate |
withBody(String body)
The message body to use in a push notification that's based on the message template.
|
AndroidPushNotificationTemplate |
withImageIconUrl(String imageIconUrl)
The URL of the large icon image to display in the content view of a push notification that's based on the message
template.
|
AndroidPushNotificationTemplate |
withImageUrl(String imageUrl)
The URL of an image to display in a push notification that's based on the message template.
|
AndroidPushNotificationTemplate |
withRawContent(String rawContent)
The raw, JSON-formatted string to use as the payload for a push notification that's based on the message
template.
|
AndroidPushNotificationTemplate |
withSmallImageIconUrl(String smallImageIconUrl)
The URL of the small icon image to display in the status bar and the content view of a push notification that's
based on the message template.
|
AndroidPushNotificationTemplate |
withSound(String sound)
The sound to play when a recipient receives a push notification that's based on the message template.
|
AndroidPushNotificationTemplate |
withTitle(String title)
The title to use in a push notification that's based on the message template.
|
AndroidPushNotificationTemplate |
withUrl(String url)
The URL to open in a recipient's default mobile browser, if a recipient taps a push notification that's based on
the message template and the value of the Action property is URL.
|
public void setAction(String action)
The action to occur if a recipient taps a push notification that's based on the message template. Valid values are:
OPEN_APP - Your app opens or it becomes the foreground app if it was sent to the background. This is the default action.
DEEP_LINK - Your app opens and displays a designated user interface in the app. This action uses the deep-linking features of the Android platform.
URL - The default mobile browser on the recipient's device opens and loads the web page at a URL that you specify.
action
- The action to occur if a recipient taps a push notification that's based on the message template. Valid
values are:
OPEN_APP - Your app opens or it becomes the foreground app if it was sent to the background. This is the default action.
DEEP_LINK - Your app opens and displays a designated user interface in the app. This action uses the deep-linking features of the Android platform.
URL - The default mobile browser on the recipient's device opens and loads the web page at a URL that you specify.
Action
public String getAction()
The action to occur if a recipient taps a push notification that's based on the message template. Valid values are:
OPEN_APP - Your app opens or it becomes the foreground app if it was sent to the background. This is the default action.
DEEP_LINK - Your app opens and displays a designated user interface in the app. This action uses the deep-linking features of the Android platform.
URL - The default mobile browser on the recipient's device opens and loads the web page at a URL that you specify.
OPEN_APP - Your app opens or it becomes the foreground app if it was sent to the background. This is the default action.
DEEP_LINK - Your app opens and displays a designated user interface in the app. This action uses the deep-linking features of the Android platform.
URL - The default mobile browser on the recipient's device opens and loads the web page at a URL that you specify.
Action
public AndroidPushNotificationTemplate withAction(String action)
The action to occur if a recipient taps a push notification that's based on the message template. Valid values are:
OPEN_APP - Your app opens or it becomes the foreground app if it was sent to the background. This is the default action.
DEEP_LINK - Your app opens and displays a designated user interface in the app. This action uses the deep-linking features of the Android platform.
URL - The default mobile browser on the recipient's device opens and loads the web page at a URL that you specify.
action
- The action to occur if a recipient taps a push notification that's based on the message template. Valid
values are:
OPEN_APP - Your app opens or it becomes the foreground app if it was sent to the background. This is the default action.
DEEP_LINK - Your app opens and displays a designated user interface in the app. This action uses the deep-linking features of the Android platform.
URL - The default mobile browser on the recipient's device opens and loads the web page at a URL that you specify.
Action
public AndroidPushNotificationTemplate withAction(Action action)
The action to occur if a recipient taps a push notification that's based on the message template. Valid values are:
OPEN_APP - Your app opens or it becomes the foreground app if it was sent to the background. This is the default action.
DEEP_LINK - Your app opens and displays a designated user interface in the app. This action uses the deep-linking features of the Android platform.
URL - The default mobile browser on the recipient's device opens and loads the web page at a URL that you specify.
action
- The action to occur if a recipient taps a push notification that's based on the message template. Valid
values are:
OPEN_APP - Your app opens or it becomes the foreground app if it was sent to the background. This is the default action.
DEEP_LINK - Your app opens and displays a designated user interface in the app. This action uses the deep-linking features of the Android platform.
URL - The default mobile browser on the recipient's device opens and loads the web page at a URL that you specify.
Action
public void setBody(String body)
The message body to use in a push notification that's based on the message template.
body
- The message body to use in a push notification that's based on the message template.public String getBody()
The message body to use in a push notification that's based on the message template.
public AndroidPushNotificationTemplate withBody(String body)
The message body to use in a push notification that's based on the message template.
body
- The message body to use in a push notification that's based on the message template.public void setImageIconUrl(String imageIconUrl)
The URL of the large icon image to display in the content view of a push notification that's based on the message template.
imageIconUrl
- The URL of the large icon image to display in the content view of a push notification that's based on the
message template.public String getImageIconUrl()
The URL of the large icon image to display in the content view of a push notification that's based on the message template.
public AndroidPushNotificationTemplate withImageIconUrl(String imageIconUrl)
The URL of the large icon image to display in the content view of a push notification that's based on the message template.
imageIconUrl
- The URL of the large icon image to display in the content view of a push notification that's based on the
message template.public void setImageUrl(String imageUrl)
The URL of an image to display in a push notification that's based on the message template.
imageUrl
- The URL of an image to display in a push notification that's based on the message template.public String getImageUrl()
The URL of an image to display in a push notification that's based on the message template.
public AndroidPushNotificationTemplate withImageUrl(String imageUrl)
The URL of an image to display in a push notification that's based on the message template.
imageUrl
- The URL of an image to display in a push notification that's based on the message template.public void setRawContent(String rawContent)
The raw, JSON-formatted string to use as the payload for a push notification that's based on the message template. If specified, this value overrides all other content for the message template.
rawContent
- The raw, JSON-formatted string to use as the payload for a push notification that's based on the message
template. If specified, this value overrides all other content for the message template.public String getRawContent()
The raw, JSON-formatted string to use as the payload for a push notification that's based on the message template. If specified, this value overrides all other content for the message template.
public AndroidPushNotificationTemplate withRawContent(String rawContent)
The raw, JSON-formatted string to use as the payload for a push notification that's based on the message template. If specified, this value overrides all other content for the message template.
rawContent
- The raw, JSON-formatted string to use as the payload for a push notification that's based on the message
template. If specified, this value overrides all other content for the message template.public void setSmallImageIconUrl(String smallImageIconUrl)
The URL of the small icon image to display in the status bar and the content view of a push notification that's based on the message template.
smallImageIconUrl
- The URL of the small icon image to display in the status bar and the content view of a push notification
that's based on the message template.public String getSmallImageIconUrl()
The URL of the small icon image to display in the status bar and the content view of a push notification that's based on the message template.
public AndroidPushNotificationTemplate withSmallImageIconUrl(String smallImageIconUrl)
The URL of the small icon image to display in the status bar and the content view of a push notification that's based on the message template.
smallImageIconUrl
- The URL of the small icon image to display in the status bar and the content view of a push notification
that's based on the message template.public void setSound(String sound)
The sound to play when a recipient receives a push notification that's based on the message template. You can use the default stream or specify the file name of a sound resource that's bundled in your app. On an Android platform, the sound file must reside in /res/raw/.
sound
- The sound to play when a recipient receives a push notification that's based on the message template. You
can use the default stream or specify the file name of a sound resource that's bundled in your app. On an
Android platform, the sound file must reside in /res/raw/.public String getSound()
The sound to play when a recipient receives a push notification that's based on the message template. You can use the default stream or specify the file name of a sound resource that's bundled in your app. On an Android platform, the sound file must reside in /res/raw/.
public AndroidPushNotificationTemplate withSound(String sound)
The sound to play when a recipient receives a push notification that's based on the message template. You can use the default stream or specify the file name of a sound resource that's bundled in your app. On an Android platform, the sound file must reside in /res/raw/.
sound
- The sound to play when a recipient receives a push notification that's based on the message template. You
can use the default stream or specify the file name of a sound resource that's bundled in your app. On an
Android platform, the sound file must reside in /res/raw/.public void setTitle(String title)
The title to use in a push notification that's based on the message template. This title appears above the notification message on a recipient's device.
title
- The title to use in a push notification that's based on the message template. This title appears above the
notification message on a recipient's device.public String getTitle()
The title to use in a push notification that's based on the message template. This title appears above the notification message on a recipient's device.
public AndroidPushNotificationTemplate withTitle(String title)
The title to use in a push notification that's based on the message template. This title appears above the notification message on a recipient's device.
title
- The title to use in a push notification that's based on the message template. This title appears above the
notification message on a recipient's device.public void setUrl(String url)
The URL to open in a recipient's default mobile browser, if a recipient taps a push notification that's based on the message template and the value of the Action property is URL.
url
- The URL to open in a recipient's default mobile browser, if a recipient taps a push notification that's
based on the message template and the value of the Action property is URL.public String getUrl()
The URL to open in a recipient's default mobile browser, if a recipient taps a push notification that's based on the message template and the value of the Action property is URL.
public AndroidPushNotificationTemplate withUrl(String url)
The URL to open in a recipient's default mobile browser, if a recipient taps a push notification that's based on the message template and the value of the Action property is URL.
url
- The URL to open in a recipient's default mobile browser, if a recipient taps a push notification that's
based on the message template and the value of the Action property is URL.public String toString()
toString
in class Object
Object.toString()
public AndroidPushNotificationTemplate clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.