Class CfnPushTemplate.Builder

java.lang.Object
software.amazon.awscdk.services.pinpoint.CfnPushTemplate.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPushTemplate>
Enclosing class:
CfnPushTemplate

@Stability(Stable) public static final class CfnPushTemplate.Builder extends Object implements software.amazon.jsii.Builder<CfnPushTemplate>
A fluent builder for CfnPushTemplate.
  • Method Details

    • create

      @Stability(Stable) public static CfnPushTemplate.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnPushTemplate.Builder.
    • templateName

      @Stability(Stable) public CfnPushTemplate.Builder templateName(String templateName)
      The name of the message template.

      Parameters:
      templateName - The name of the message template. This parameter is required.
      Returns:
      this
    • adm

      @Stability(Stable) public CfnPushTemplate.Builder adm(IResolvable 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
    • 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
    • apns

      @Stability(Stable) public CfnPushTemplate.Builder apns(IResolvable 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
    • 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
    • baidu

      @Stability(Stable) public CfnPushTemplate.Builder baidu(IResolvable 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
    • 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
    • defaultValue

      @Stability(Stable) public CfnPushTemplate.Builder defaultValue(IResolvable 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
    • defaultValue

      @Stability(Stable) public CfnPushTemplate.Builder defaultValue(CfnPushTemplate.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
    • defaultSubstitutions

      @Stability(Stable) public CfnPushTemplate.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
    • gcm

      @Stability(Stable) public 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.

      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
    • 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
    • tags

      @Stability(Stable) public CfnPushTemplate.Builder tags(Object 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
    • templateDescription

      @Stability(Stable) public CfnPushTemplate.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
    • build

      @Stability(Stable) public CfnPushTemplate build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnPushTemplate>
      Returns:
      a newly built instance of CfnPushTemplate.