@Stability(value=Stable) public static final class CfnPushTemplate.APNSPushNotificationTemplateProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnPushTemplate.APNSPushNotificationTemplateProperty>
CfnPushTemplate.APNSPushNotificationTemplateProperty| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public CfnPushTemplate.APNSPushNotificationTemplateProperty.Builder action(String action)
CfnPushTemplate.APNSPushNotificationTemplateProperty.getAction()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.this@Stability(value=Stable) public CfnPushTemplate.APNSPushNotificationTemplateProperty.Builder body(String body)
CfnPushTemplate.APNSPushNotificationTemplateProperty.getBody()body - The message body to use in push notifications that are based on the message template.this@Stability(value=Stable) public CfnPushTemplate.APNSPushNotificationTemplateProperty.Builder mediaUrl(String mediaUrl)
CfnPushTemplate.APNSPushNotificationTemplateProperty.getMediaUrl()mediaUrl - The URL of an image or video to display in push notifications that are based on the message template.this@Stability(value=Stable) public CfnPushTemplate.APNSPushNotificationTemplateProperty.Builder sound(String sound)
CfnPushTemplate.APNSPushNotificationTemplateProperty.getSound()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.this@Stability(value=Stable) public CfnPushTemplate.APNSPushNotificationTemplateProperty.Builder title(String title)
CfnPushTemplate.APNSPushNotificationTemplateProperty.getTitle()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.this@Stability(value=Stable) public CfnPushTemplate.APNSPushNotificationTemplateProperty.Builder url(String url)
CfnPushTemplate.APNSPushNotificationTemplateProperty.getUrl()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` .this@Stability(value=Stable) public CfnPushTemplate.APNSPushNotificationTemplateProperty build()
build in interface software.amazon.jsii.Builder<CfnPushTemplate.APNSPushNotificationTemplateProperty>CfnPushTemplate.APNSPushNotificationTemplatePropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.