Interface CfnPushTemplateProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnPushTemplateProps.Jsii$Proxy
CfnPushTemplate.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.pinpoint.*;
Object tags;
CfnPushTemplateProps cfnPushTemplateProps = CfnPushTemplateProps.builder()
.templateName("templateName")
// the properties below are optional
.adm(AndroidPushNotificationTemplateProperty.builder()
.action("action")
.body("body")
.imageIconUrl("imageIconUrl")
.imageUrl("imageUrl")
.smallImageIconUrl("smallImageIconUrl")
.sound("sound")
.title("title")
.url("url")
.build())
.apns(APNSPushNotificationTemplateProperty.builder()
.action("action")
.body("body")
.mediaUrl("mediaUrl")
.sound("sound")
.title("title")
.url("url")
.build())
.baidu(AndroidPushNotificationTemplateProperty.builder()
.action("action")
.body("body")
.imageIconUrl("imageIconUrl")
.imageUrl("imageUrl")
.smallImageIconUrl("smallImageIconUrl")
.sound("sound")
.title("title")
.url("url")
.build())
.default(DefaultPushNotificationTemplateProperty.builder()
.action("action")
.body("body")
.sound("sound")
.title("title")
.url("url")
.build())
.defaultSubstitutions("defaultSubstitutions")
.gcm(AndroidPushNotificationTemplateProperty.builder()
.action("action")
.body("body")
.imageIconUrl("imageIconUrl")
.imageUrl("imageUrl")
.smallImageIconUrl("smallImageIconUrl")
.sound("sound")
.title("title")
.url("url")
.build())
.tags(tags)
.templateDescription("templateDescription")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnPushTemplatePropsstatic final classAn implementation forCfnPushTemplateProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnPushTemplateProps.Builderbuilder()default ObjectgetAdm()The message template to use for the ADM (Amazon Device Messaging) channel.default ObjectgetApns()The message template to use for the APNs (Apple Push Notification service) channel.default ObjectgetBaidu()The message template to use for the Baidu (Baidu Cloud Push) channel.default StringA JSON object that specifies the default values to use for message variables in the message template.default ObjectThe default message template to use for push notification channels.default ObjectgetGcm()The message template to use for the GCM channel, which is used to send notifications through the Firebase Cloud Messaging (FCM), formerly Google Cloud Messaging (GCM), service.default ObjectgetTags()An array of key-value pairs to apply to this resource.default StringA custom description of the message template.The name of the message template to use for the message.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getTemplateName
The name of the message template to use for the message.If specified, this value must match the name of an existing message template.
- See Also:
-
getAdm
The message template to use for the ADM (Amazon Device Messaging) channel.This message template overrides the default template for push notification channels (
Default).Returns union: either
IResolvableorCfnPushTemplate.AndroidPushNotificationTemplateProperty- See Also:
-
getApns
The message template to use for the APNs (Apple Push Notification service) channel.This message template overrides the default template for push notification channels (
Default).Returns union: either
IResolvableorCfnPushTemplate.APNSPushNotificationTemplateProperty- See Also:
-
getBaidu
The message template to use for the Baidu (Baidu Cloud Push) channel.This message template overrides the default template for push notification channels (
Default).Returns union: either
IResolvableorCfnPushTemplate.AndroidPushNotificationTemplateProperty- See Also:
-
getDefaultValue
The default message template to use for push notification channels.Returns union: either
IResolvableorCfnPushTemplate.DefaultPushNotificationTemplateProperty- See Also:
-
getDefaultSubstitutions
A JSON object that specifies the default values to use for message variables in the message template.This object is a set of key-value pairs. Each key defines a message variable in the template. The corresponding value defines the default value for that variable. When you create a message that's based on the template, you can override these defaults with message-specific and address-specific variables and values.
- See Also:
-
getGcm
The message template to use for the GCM channel, which is used to send notifications through the Firebase Cloud Messaging (FCM), formerly Google Cloud Messaging (GCM), service.This message template overrides the default template for push notification channels (
Default).Returns union: either
IResolvableorCfnPushTemplate.AndroidPushNotificationTemplateProperty- See Also:
-
getTags
An array of key-value pairs to apply to this resource.For more information, see Tag .
- See Also:
-
getTemplateDescription
A custom description of the message template.- See Also:
-
builder
- Returns:
- a
CfnPushTemplateProps.BuilderofCfnPushTemplateProps
-