@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:41.240Z") @Stability(value=Stable) public interface CfnPushTemplateProps extends software.amazon.jsii.JsiiSerializable
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnPushTemplateProps.Builder
A builder for
CfnPushTemplateProps |
static class |
CfnPushTemplateProps.Jsii$Proxy
An implementation for
CfnPushTemplateProps |
| Modifier and Type | Method and Description |
|---|---|
static CfnPushTemplateProps.Builder |
builder() |
default Object |
getAdm()
The message template to use for the ADM (Amazon Device Messaging) channel.
|
default Object |
getApns()
The message template to use for the APNs (Apple Push Notification service) channel.
|
default Object |
getBaidu()
The message template to use for the Baidu (Baidu Cloud Push) channel.
|
default String |
getDefaultSubstitutions()
A JSON object that specifies the default values to use for message variables in the message template.
|
default Object |
getDefaultValue()
The default message template to use for push notification channels.
|
default Object |
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.
|
default Object |
getTags()
An array of key-value pairs to apply to this resource.
|
default String |
getTemplateDescription()
A custom description of the message template.
|
String |
getTemplateName()
The name of the message template.
|
@Stability(value=Stable) @NotNull String getTemplateName()
@Stability(value=Stable) @Nullable default Object getAdm()
This message template overrides the default template for push notification channels ( Default ).
@Stability(value=Stable) @Nullable default Object getApns()
This message template overrides the default template for push notification channels ( Default ).
@Stability(value=Stable) @Nullable default Object getBaidu()
This message template overrides the default template for push notification channels ( Default ).
@Stability(value=Stable) @Nullable default Object getDefaultValue()
@Stability(value=Stable) @Nullable default String getDefaultSubstitutions()
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.
@Stability(value=Stable) @Nullable default Object getGcm()
This message template overrides the default template for push notification channels ( Default ).
@Stability(value=Stable) @Nullable default Object getTags()
For more information, see Tag .
@Stability(value=Stable) @Nullable default String getTemplateDescription()
@Stability(value=Stable) static CfnPushTemplateProps.Builder builder()
CfnPushTemplateProps.Builder of CfnPushTemplatePropsCopyright © 2022. All rights reserved.