Class CfnPushTemplateMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.pinpoint.CfnPushTemplateMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPushTemplateMixinProps>
- Enclosing interface:
CfnPushTemplateMixinProps
@Stability(Stable)
public static final class CfnPushTemplateMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPushTemplateMixinProps>
A builder for
CfnPushTemplateMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnPushTemplateMixinProps.getAdm()adm(IResolvable adm) Sets the value ofCfnPushTemplateMixinProps.getAdm()Sets the value ofCfnPushTemplateMixinProps.getApns()apns(IResolvable apns) Sets the value ofCfnPushTemplateMixinProps.getApns()Sets the value ofCfnPushTemplateMixinProps.getBaidu()baidu(IResolvable baidu) Sets the value ofCfnPushTemplateMixinProps.getBaidu()build()Builds the configured instance.defaultSubstitutions(String defaultSubstitutions) Sets the value ofCfnPushTemplateMixinProps.getDefaultSubstitutions()Sets the value ofCfnPushTemplateMixinProps.getDefaultValue()defaultValue(IResolvable defaultValue) Sets the value ofCfnPushTemplateMixinProps.getDefaultValue()Sets the value ofCfnPushTemplateMixinProps.getGcm()gcm(IResolvable gcm) Sets the value ofCfnPushTemplateMixinProps.getGcm()Sets the value ofCfnPushTemplateMixinProps.getTags()templateDescription(String templateDescription) Sets the value ofCfnPushTemplateMixinProps.getTemplateDescription()templateName(String templateName) Sets the value ofCfnPushTemplateMixinProps.getTemplateName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
adm
Sets the value ofCfnPushTemplateMixinProps.getAdm()- Parameters:
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).- Returns:
this
-
adm
@Stability(Stable) public CfnPushTemplateMixinProps.Builder adm(CfnPushTemplatePropsMixin.AndroidPushNotificationTemplateProperty adm) Sets the value ofCfnPushTemplateMixinProps.getAdm()- Parameters:
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).- Returns:
this
-
apns
Sets the value ofCfnPushTemplateMixinProps.getApns()- Parameters:
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).- Returns:
this
-
apns
@Stability(Stable) public CfnPushTemplateMixinProps.Builder apns(CfnPushTemplatePropsMixin.APNSPushNotificationTemplateProperty apns) Sets the value ofCfnPushTemplateMixinProps.getApns()- Parameters:
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).- Returns:
this
-
baidu
Sets the value ofCfnPushTemplateMixinProps.getBaidu()- Parameters:
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).- Returns:
this
-
baidu
@Stability(Stable) public CfnPushTemplateMixinProps.Builder baidu(CfnPushTemplatePropsMixin.AndroidPushNotificationTemplateProperty baidu) Sets the value ofCfnPushTemplateMixinProps.getBaidu()- Parameters:
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).- Returns:
this
-
defaultValue
Sets the value ofCfnPushTemplateMixinProps.getDefaultValue()- Parameters:
defaultValue- The default message template to use for push notification channels.- Returns:
this
-
defaultValue
@Stability(Stable) public CfnPushTemplateMixinProps.Builder defaultValue(CfnPushTemplatePropsMixin.DefaultPushNotificationTemplateProperty defaultValue) Sets the value ofCfnPushTemplateMixinProps.getDefaultValue()- Parameters:
defaultValue- The default message template to use for push notification channels.- Returns:
this
-
defaultSubstitutions
@Stability(Stable) public CfnPushTemplateMixinProps.Builder defaultSubstitutions(String defaultSubstitutions) Sets the value ofCfnPushTemplateMixinProps.getDefaultSubstitutions()- Parameters:
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.- Returns:
this
-
gcm
Sets the value ofCfnPushTemplateMixinProps.getGcm()- 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 message template overrides the default template for push notification channels (Default).- Returns:
this
-
gcm
@Stability(Stable) public CfnPushTemplateMixinProps.Builder gcm(CfnPushTemplatePropsMixin.AndroidPushNotificationTemplateProperty gcm) Sets the value ofCfnPushTemplateMixinProps.getGcm()- 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 message template overrides the default template for push notification channels (Default).- Returns:
this
-
tags
Sets the value ofCfnPushTemplateMixinProps.getTags()- Parameters:
tags- An array of key-value pairs to apply to this resource. For more information, see Tag .- Returns:
this
-
templateDescription
@Stability(Stable) public CfnPushTemplateMixinProps.Builder templateDescription(String templateDescription) Sets the value ofCfnPushTemplateMixinProps.getTemplateDescription()- Parameters:
templateDescription- A custom description of the message template.- Returns:
this
-
templateName
Sets the value ofCfnPushTemplateMixinProps.getTemplateName()- Parameters:
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.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPushTemplateMixinProps>- Returns:
- a new instance of
CfnPushTemplateMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-