@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class APNSPushNotificationTemplate 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 APNs (Apple Push Notification service) channel.
Constructor and Description |
---|
APNSPushNotificationTemplate() |
Modifier and Type | Method and Description |
---|---|
APNSPushNotificationTemplate |
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 push notifications that are based on the message template.
|
String |
getMediaUrl()
The URL of an image or video to display in push notifications that are based on the message template.
|
String |
getRawContent()
The raw, JSON-formatted string to use as the payload for push notifications that are based on the message
template.
|
String |
getSound()
The key for the sound to play when the recipient receives a push notification that's based on the message
template.
|
String |
getTitle()
The title to use in push notifications that are based on the message template.
|
String |
getUrl()
The URL to open in the 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 push notifications that are based on the message template.
|
void |
setMediaUrl(String mediaUrl)
The URL of an image or video to display in push notifications that are based on the message template.
|
void |
setRawContent(String rawContent)
The raw, JSON-formatted string to use as the payload for push notifications that are based on the message
template.
|
void |
setSound(String sound)
The key for the sound to play when the recipient receives a push notification that's based on the message
template.
|
void |
setTitle(String title)
The title to use in push notifications that are based on the message template.
|
void |
setUrl(String url)
The URL to open in the 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.
|
APNSPushNotificationTemplate |
withAction(Action action)
The action to occur if a recipient taps a push notification that's based on the message template.
|
APNSPushNotificationTemplate |
withAction(String action)
The action to occur if a recipient taps a push notification that's based on the message template.
|
APNSPushNotificationTemplate |
withBody(String body)
The message body to use in push notifications that are based on the message template.
|
APNSPushNotificationTemplate |
withMediaUrl(String mediaUrl)
The URL of an image or video to display in push notifications that are based on the message template.
|
APNSPushNotificationTemplate |
withRawContent(String rawContent)
The raw, JSON-formatted string to use as the payload for push notifications that are based on the message
template.
|
APNSPushNotificationTemplate |
withSound(String sound)
The key for the sound to play when the recipient receives a push notification that's based on the message
template.
|
APNSPushNotificationTemplate |
withTitle(String title)
The title to use in push notifications that are based on the message template.
|
APNSPushNotificationTemplate |
withUrl(String url)
The URL to open in the 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 setting uses the deep-linking features of the iOS 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 setting uses the deep-linking features of the iOS 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 setting uses the deep-linking features of the iOS 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 setting uses the deep-linking features of the iOS 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 APNSPushNotificationTemplate 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 setting uses the deep-linking features of the iOS 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 setting uses the deep-linking features of the iOS 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 APNSPushNotificationTemplate 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 setting uses the deep-linking features of the iOS 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 setting uses the deep-linking features of the iOS 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 push notifications that are based on the message template.
body
- The message body to use in push notifications that are based on the message template.public String getBody()
The message body to use in push notifications that are based on the message template.
public APNSPushNotificationTemplate withBody(String body)
The message body to use in push notifications that are based on the message template.
body
- The message body to use in push notifications that are based on the message template.public void setMediaUrl(String mediaUrl)
The URL of an image or video to display in push notifications that are based on the message template.
mediaUrl
- The URL of an image or video to display in push notifications that are based on the message template.public String getMediaUrl()
The URL of an image or video to display in push notifications that are based on the message template.
public APNSPushNotificationTemplate withMediaUrl(String mediaUrl)
The URL of an image or video to display in push notifications that are based on the message template.
mediaUrl
- The URL of an image or video to display in push notifications that are based on the message template.public void setRawContent(String rawContent)
The raw, JSON-formatted string to use as the payload for push notifications that are 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 push notifications that are 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 push notifications that are based on the message template. If specified, this value overrides all other content for the message template.
public APNSPushNotificationTemplate withRawContent(String rawContent)
The raw, JSON-formatted string to use as the payload for push notifications that are 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 push notifications that are based on the message
template. If specified, this value overrides all other content for the message template.public void setSound(String sound)
The key for the sound to play when the recipient receives a push notification that's based on the message template. The value for this key is the name of a sound file in your app's main bundle or the Library/Sounds folder in your app's data container. If the sound file can't be found or you specify default for the value, the system plays the default alert sound.
sound
- The key for the sound to play when the recipient receives a push notification that's based on the message
template. The value for this key is the name of a sound file in your app's main bundle or the
Library/Sounds folder in your app's data container. If the sound file can't be found or you specify
default for the value, the system plays the default alert sound.public String getSound()
The key for the sound to play when the recipient receives a push notification that's based on the message template. The value for this key is the name of a sound file in your app's main bundle or the Library/Sounds folder in your app's data container. If the sound file can't be found or you specify default for the value, the system plays the default alert sound.
public APNSPushNotificationTemplate withSound(String sound)
The key for the sound to play when the recipient receives a push notification that's based on the message template. The value for this key is the name of a sound file in your app's main bundle or the Library/Sounds folder in your app's data container. If the sound file can't be found or you specify default for the value, the system plays the default alert sound.
sound
- The key for the sound to play when the recipient receives a push notification that's based on the message
template. The value for this key is the name of a sound file in your app's main bundle or the
Library/Sounds folder in your app's data container. If the sound file can't be found or you specify
default for the value, the system plays the default alert sound.public void setTitle(String title)
The title to use in push notifications that are based on the message template. This title appears above the notification message on a recipient's device.
title
- The title to use in push notifications that are 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 push notifications that are based on the message template. This title appears above the notification message on a recipient's device.
public APNSPushNotificationTemplate withTitle(String title)
The title to use in push notifications that are based on the message template. This title appears above the notification message on a recipient's device.
title
- The title to use in push notifications that are 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 the 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 the 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 the 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 APNSPushNotificationTemplate withUrl(String url)
The URL to open in the 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 the 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 APNSPushNotificationTemplate clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.