public static final class CfnPushTemplate.Builder
extends java.lang.Object
CfnPushTemplate
.Modifier and Type | Method and Description |
---|---|
CfnPushTemplate.Builder |
adm(CfnPushTemplate.AndroidPushNotificationTemplateProperty adm)
The message template to use for the ADM (Amazon Device Messaging) channel.
|
CfnPushTemplate.Builder |
adm(IResolvable adm)
The message template to use for the ADM (Amazon Device Messaging) channel.
|
CfnPushTemplate.Builder |
apns(CfnPushTemplate.APNSPushNotificationTemplateProperty apns)
The message template to use for the APNs (Apple Push Notification service) channel.
|
CfnPushTemplate.Builder |
apns(IResolvable apns)
The message template to use for the APNs (Apple Push Notification service) channel.
|
CfnPushTemplate.Builder |
baidu(CfnPushTemplate.AndroidPushNotificationTemplateProperty baidu)
The message template to use for the Baidu (Baidu Cloud Push) channel.
|
CfnPushTemplate.Builder |
baidu(IResolvable baidu)
The message template to use for the Baidu (Baidu Cloud Push) channel.
|
CfnPushTemplate |
build() |
static CfnPushTemplate.Builder |
create(Construct scope,
java.lang.String id) |
CfnPushTemplate.Builder |
defaultSubstitutions(java.lang.String defaultSubstitutions)
A JSON object that specifies the default values to use for message variables in the message template.
|
CfnPushTemplate.Builder |
defaultValue(CfnPushTemplate.DefaultPushNotificationTemplateProperty defaultValue)
The default message template to use for push notification channels.
|
CfnPushTemplate.Builder |
defaultValue(IResolvable defaultValue)
The default message template to use for push notification channels.
|
CfnPushTemplate.Builder |
gcm(CfnPushTemplate.AndroidPushNotificationTemplateProperty gcm)
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.
|
CfnPushTemplate.Builder |
gcm(IResolvable gcm)
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.
|
CfnPushTemplate.Builder |
tags(java.lang.Object tags)
An array of key-value pairs to apply to this resource.
|
CfnPushTemplate.Builder |
templateDescription(java.lang.String templateDescription)
A custom description of the message template.
|
CfnPushTemplate.Builder |
templateName(java.lang.String templateName)
The name of the message template.
|
public static CfnPushTemplate.Builder create(Construct scope, java.lang.String id)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.CfnPushTemplate.APNSPushNotificationTemplateProperty.Builder
.public CfnPushTemplate.Builder templateName(java.lang.String templateName)
templateName
- The name of the message template. This parameter is required.this
public CfnPushTemplate.Builder adm(IResolvable adm)
This message template overrides the default template for push notification channels ( Default
).
adm
- The message template to use for the ADM (Amazon Device Messaging) channel. This parameter is required.this
public CfnPushTemplate.Builder adm(CfnPushTemplate.AndroidPushNotificationTemplateProperty adm)
This message template overrides the default template for push notification channels ( Default
).
adm
- The message template to use for the ADM (Amazon Device Messaging) channel. This parameter is required.this
public CfnPushTemplate.Builder apns(IResolvable apns)
This message template overrides the default template for push notification channels ( Default
).
apns
- The message template to use for the APNs (Apple Push Notification service) channel. This parameter is required.this
public CfnPushTemplate.Builder apns(CfnPushTemplate.APNSPushNotificationTemplateProperty apns)
This message template overrides the default template for push notification channels ( Default
).
apns
- The message template to use for the APNs (Apple Push Notification service) channel. This parameter is required.this
public CfnPushTemplate.Builder baidu(IResolvable baidu)
This message template overrides the default template for push notification channels ( Default
).
baidu
- The message template to use for the Baidu (Baidu Cloud Push) channel. This parameter is required.this
public CfnPushTemplate.Builder baidu(CfnPushTemplate.AndroidPushNotificationTemplateProperty baidu)
This message template overrides the default template for push notification channels ( Default
).
baidu
- The message template to use for the Baidu (Baidu Cloud Push) channel. This parameter is required.this
public CfnPushTemplate.Builder defaultValue(IResolvable defaultValue)
defaultValue
- The default message template to use for push notification channels. This parameter is required.this
public CfnPushTemplate.Builder defaultValue(CfnPushTemplate.DefaultPushNotificationTemplateProperty defaultValue)
defaultValue
- The default message template to use for push notification channels. This parameter is required.this
public CfnPushTemplate.Builder defaultSubstitutions(java.lang.String defaultSubstitutions)
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.
defaultSubstitutions
- A JSON object that specifies the default values to use for message variables in the message template. This parameter is required.this
public CfnPushTemplate.Builder gcm(IResolvable gcm)
This message template overrides the default template for push notification channels ( Default
).
gcm
- 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 parameter is required.this
public CfnPushTemplate.Builder gcm(CfnPushTemplate.AndroidPushNotificationTemplateProperty gcm)
This message template overrides the default template for push notification channels ( Default
).
gcm
- 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 parameter is required.this
public CfnPushTemplate.Builder tags(java.lang.Object tags)
For more information, see Tag .
tags
- An array of key-value pairs to apply to this resource. This parameter is required.this
public CfnPushTemplate.Builder templateDescription(java.lang.String templateDescription)
templateDescription
- A custom description of the message template. This parameter is required.this
public CfnPushTemplate build()