Class CfnPushTemplatePropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPushTemplatePropsMixin>
- Enclosing class:
CfnPushTemplatePropsMixin
CfnPushTemplatePropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionThe message template to use for the ADM (Amazon Device Messaging) channel.adm(IResolvable adm) The message template to use for the ADM (Amazon Device Messaging) channel.The message template to use for the APNs (Apple Push Notification service) channel.apns(IResolvable apns) The message template to use for the APNs (Apple Push Notification service) channel.The message template to use for the Baidu (Baidu Cloud Push) channel.baidu(IResolvable baidu) The message template to use for the Baidu (Baidu Cloud Push) channel.build()create()create(CfnPropertyMixinOptions options) defaultSubstitutions(String defaultSubstitutions) A JSON object that specifies the default values to use for message variables in the message template.The default message template to use for push notification channels.defaultValue(IResolvable defaultValue) The default message template to use for push notification channels.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.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.An array of key-value pairs to apply to this resource.templateDescription(String templateDescription) A custom description of the message template.templateName(String templateName) The name of the message template to use for the message.
-
Method Details
-
create
@Stability(Stable) public static CfnPushTemplatePropsMixin.Builder create(CfnPropertyMixinOptions options) - Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnPushTemplatePropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnPushTemplatePropsMixin.Builder.
-
adm
The message template to use for the ADM (Amazon Device Messaging) channel.This message template overrides the default template for push notification channels (
Default).- Parameters:
adm- The message template to use for the ADM (Amazon Device Messaging) channel. This parameter is required.- Returns:
this- See Also:
-
adm
@Stability(Stable) public CfnPushTemplatePropsMixin.Builder adm(CfnPushTemplatePropsMixin.AndroidPushNotificationTemplateProperty adm) The message template to use for the ADM (Amazon Device Messaging) channel.This message template overrides the default template for push notification channels (
Default).- Parameters:
adm- The message template to use for the ADM (Amazon Device Messaging) channel. This parameter is required.- Returns:
this- See Also:
-
apns
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).- Parameters:
apns- The message template to use for the APNs (Apple Push Notification service) channel. This parameter is required.- Returns:
this- See Also:
-
apns
@Stability(Stable) public CfnPushTemplatePropsMixin.Builder apns(CfnPushTemplatePropsMixin.APNSPushNotificationTemplateProperty apns) 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).- Parameters:
apns- The message template to use for the APNs (Apple Push Notification service) channel. This parameter is required.- Returns:
this- See Also:
-
baidu
The message template to use for the Baidu (Baidu Cloud Push) channel.This message template overrides the default template for push notification channels (
Default).- Parameters:
baidu- The message template to use for the Baidu (Baidu Cloud Push) channel. This parameter is required.- Returns:
this- See Also:
-
baidu
@Stability(Stable) public CfnPushTemplatePropsMixin.Builder baidu(CfnPushTemplatePropsMixin.AndroidPushNotificationTemplateProperty baidu) The message template to use for the Baidu (Baidu Cloud Push) channel.This message template overrides the default template for push notification channels (
Default).- Parameters:
baidu- The message template to use for the Baidu (Baidu Cloud Push) channel. This parameter is required.- Returns:
this- See Also:
-
defaultValue
The default message template to use for push notification channels.- Parameters:
defaultValue- The default message template to use for push notification channels. This parameter is required.- Returns:
this- See Also:
-
defaultValue
@Stability(Stable) public CfnPushTemplatePropsMixin.Builder defaultValue(CfnPushTemplatePropsMixin.DefaultPushNotificationTemplateProperty defaultValue) The default message template to use for push notification channels.- Parameters:
defaultValue- The default message template to use for push notification channels. This parameter is required.- Returns:
this- See Also:
-
defaultSubstitutions
@Stability(Stable) public CfnPushTemplatePropsMixin.Builder defaultSubstitutions(String defaultSubstitutions) 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.
- Parameters:
defaultSubstitutions- A JSON object that specifies the default values to use for message variables in the message template. This parameter is required.- Returns:
this- See Also:
-
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 message template overrides the default template for push notification channels (
Default).- Parameters:
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.- Returns:
this- See Also:
-
gcm
@Stability(Stable) public CfnPushTemplatePropsMixin.Builder gcm(CfnPushTemplatePropsMixin.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.This message template overrides the default template for push notification channels (
Default).- Parameters:
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.- Returns:
this- See Also:
-
tags
An array of key-value pairs to apply to this resource.For more information, see Tag .
- Parameters:
tags- An array of key-value pairs to apply to this resource. This parameter is required.- Returns:
this- See Also:
-
templateDescription
@Stability(Stable) public CfnPushTemplatePropsMixin.Builder templateDescription(String templateDescription) A custom description of the message template.- Parameters:
templateDescription- A custom description of the message template. This parameter is required.- Returns:
this- See Also:
-
templateName
The name of the message template to use for the message.If specified, this value must match the name of an existing message template.
- Parameters:
templateName- The name of the message template to use for the message. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPushTemplatePropsMixin>- Returns:
- a newly built instance of
CfnPushTemplatePropsMixin.
-