Class CfnPushTemplateProps.Builder
java.lang.Object
software.amazon.awscdk.services.pinpoint.CfnPushTemplateProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPushTemplateProps>
- Enclosing interface:
CfnPushTemplateProps
@Stability(Stable)
public static final class CfnPushTemplateProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPushTemplateProps>
A builder for
CfnPushTemplateProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionadm
(IResolvable adm) Sets the value ofCfnPushTemplateProps.getAdm()
Sets the value ofCfnPushTemplateProps.getAdm()
apns
(IResolvable apns) Sets the value ofCfnPushTemplateProps.getApns()
Sets the value ofCfnPushTemplateProps.getApns()
baidu
(IResolvable baidu) Sets the value ofCfnPushTemplateProps.getBaidu()
Sets the value ofCfnPushTemplateProps.getBaidu()
build()
Builds the configured instance.defaultSubstitutions
(String defaultSubstitutions) Sets the value ofCfnPushTemplateProps.getDefaultSubstitutions()
defaultValue
(IResolvable defaultValue) Sets the value ofCfnPushTemplateProps.getDefaultValue()
Sets the value ofCfnPushTemplateProps.getDefaultValue()
gcm
(IResolvable gcm) Sets the value ofCfnPushTemplateProps.getGcm()
Sets the value ofCfnPushTemplateProps.getGcm()
Sets the value ofCfnPushTemplateProps.getTags()
templateDescription
(String templateDescription) Sets the value ofCfnPushTemplateProps.getTemplateDescription()
templateName
(String templateName) Sets the value ofCfnPushTemplateProps.getTemplateName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
templateName
Sets the value ofCfnPushTemplateProps.getTemplateName()
- Parameters:
templateName
- The name of the message template to use for the message. This parameter is required. If specified, this value must match the name of an existing message template.- Returns:
this
-
adm
Sets the value ofCfnPushTemplateProps.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 CfnPushTemplateProps.Builder adm(CfnPushTemplate.AndroidPushNotificationTemplateProperty adm) Sets the value ofCfnPushTemplateProps.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 ofCfnPushTemplateProps.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 CfnPushTemplateProps.Builder apns(CfnPushTemplate.APNSPushNotificationTemplateProperty apns) Sets the value ofCfnPushTemplateProps.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 ofCfnPushTemplateProps.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 CfnPushTemplateProps.Builder baidu(CfnPushTemplate.AndroidPushNotificationTemplateProperty baidu) Sets the value ofCfnPushTemplateProps.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 ofCfnPushTemplateProps.getDefaultValue()
- Parameters:
defaultValue
- The default message template to use for push notification channels.- Returns:
this
-
defaultValue
@Stability(Stable) public CfnPushTemplateProps.Builder defaultValue(CfnPushTemplate.DefaultPushNotificationTemplateProperty defaultValue) Sets the value ofCfnPushTemplateProps.getDefaultValue()
- Parameters:
defaultValue
- The default message template to use for push notification channels.- Returns:
this
-
defaultSubstitutions
@Stability(Stable) public CfnPushTemplateProps.Builder defaultSubstitutions(String defaultSubstitutions) Sets the value ofCfnPushTemplateProps.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 ofCfnPushTemplateProps.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 CfnPushTemplateProps.Builder gcm(CfnPushTemplate.AndroidPushNotificationTemplateProperty gcm) Sets the value ofCfnPushTemplateProps.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 ofCfnPushTemplateProps.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 CfnPushTemplateProps.Builder templateDescription(String templateDescription) Sets the value ofCfnPushTemplateProps.getTemplateDescription()
- Parameters:
templateDescription
- A custom description of the message template.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnPushTemplateProps>
- Returns:
- a new instance of
CfnPushTemplateProps
- Throws:
NullPointerException
- if any required attribute was not provided
-