public static final class CfnCampaign.MessageConfigurationProperty.Builder
extends java.lang.Object
CfnCampaign.MessageConfigurationProperty
Constructor and Description |
---|
Builder() |
public CfnCampaign.MessageConfigurationProperty.Builder admMessage(IResolvable admMessage)
CfnCampaign.MessageConfigurationProperty.getAdmMessage()
admMessage
- The message that the campaign sends through the ADM (Amazon Device Messaging) channel.
If specified, this message overrides the default message.this
public CfnCampaign.MessageConfigurationProperty.Builder admMessage(CfnCampaign.MessageProperty admMessage)
CfnCampaign.MessageConfigurationProperty.getAdmMessage()
admMessage
- The message that the campaign sends through the ADM (Amazon Device Messaging) channel.
If specified, this message overrides the default message.this
public CfnCampaign.MessageConfigurationProperty.Builder apnsMessage(IResolvable apnsMessage)
CfnCampaign.MessageConfigurationProperty.getApnsMessage()
apnsMessage
- The message that the campaign sends through the APNs (Apple Push Notification service) channel.
If specified, this message overrides the default message.this
public CfnCampaign.MessageConfigurationProperty.Builder apnsMessage(CfnCampaign.MessageProperty apnsMessage)
CfnCampaign.MessageConfigurationProperty.getApnsMessage()
apnsMessage
- The message that the campaign sends through the APNs (Apple Push Notification service) channel.
If specified, this message overrides the default message.this
public CfnCampaign.MessageConfigurationProperty.Builder baiduMessage(IResolvable baiduMessage)
CfnCampaign.MessageConfigurationProperty.getBaiduMessage()
baiduMessage
- The message that the campaign sends through the Baidu (Baidu Cloud Push) channel.
If specified, this message overrides the default message.this
public CfnCampaign.MessageConfigurationProperty.Builder baiduMessage(CfnCampaign.MessageProperty baiduMessage)
CfnCampaign.MessageConfigurationProperty.getBaiduMessage()
baiduMessage
- The message that the campaign sends through the Baidu (Baidu Cloud Push) channel.
If specified, this message overrides the default message.this
public CfnCampaign.MessageConfigurationProperty.Builder customMessage(IResolvable customMessage)
CfnCampaign.MessageConfigurationProperty.getCustomMessage()
customMessage
- The message that the campaign sends through a custom channel, as specified by the delivery configuration ( `CustomDeliveryConfiguration` ) settings for the campaign.
If specified, this message overrides the default message.this
public CfnCampaign.MessageConfigurationProperty.Builder customMessage(CfnCampaign.CampaignCustomMessageProperty customMessage)
CfnCampaign.MessageConfigurationProperty.getCustomMessage()
customMessage
- The message that the campaign sends through a custom channel, as specified by the delivery configuration ( `CustomDeliveryConfiguration` ) settings for the campaign.
If specified, this message overrides the default message.this
public CfnCampaign.MessageConfigurationProperty.Builder defaultMessage(IResolvable defaultMessage)
CfnCampaign.MessageConfigurationProperty.getDefaultMessage()
defaultMessage
- The default message that the campaign sends through all the channels that are configured for the campaign.this
public CfnCampaign.MessageConfigurationProperty.Builder defaultMessage(CfnCampaign.MessageProperty defaultMessage)
CfnCampaign.MessageConfigurationProperty.getDefaultMessage()
defaultMessage
- The default message that the campaign sends through all the channels that are configured for the campaign.this
public CfnCampaign.MessageConfigurationProperty.Builder emailMessage(IResolvable emailMessage)
CfnCampaign.MessageConfigurationProperty.getEmailMessage()
emailMessage
- The message that the campaign sends through the email channel.
If specified, this message overrides the default message.this
public CfnCampaign.MessageConfigurationProperty.Builder emailMessage(CfnCampaign.CampaignEmailMessageProperty emailMessage)
CfnCampaign.MessageConfigurationProperty.getEmailMessage()
emailMessage
- The message that the campaign sends through the email channel.
If specified, this message overrides the default message.this
public CfnCampaign.MessageConfigurationProperty.Builder gcmMessage(IResolvable gcmMessage)
CfnCampaign.MessageConfigurationProperty.getGcmMessage()
gcmMessage
- The message that the campaign sends through the GCM channel, which enables Amazon Pinpoint to send push notifications through the Firebase Cloud Messaging (FCM), formerly Google Cloud Messaging (GCM), service.
If specified, this message overrides the default message.this
public CfnCampaign.MessageConfigurationProperty.Builder gcmMessage(CfnCampaign.MessageProperty gcmMessage)
CfnCampaign.MessageConfigurationProperty.getGcmMessage()
gcmMessage
- The message that the campaign sends through the GCM channel, which enables Amazon Pinpoint to send push notifications through the Firebase Cloud Messaging (FCM), formerly Google Cloud Messaging (GCM), service.
If specified, this message overrides the default message.this
public CfnCampaign.MessageConfigurationProperty.Builder inAppMessage(IResolvable inAppMessage)
CfnCampaign.MessageConfigurationProperty.getInAppMessage()
inAppMessage
- The default message for the in-app messaging channel.
This message overrides the default message ( DefaultMessage
).this
public CfnCampaign.MessageConfigurationProperty.Builder inAppMessage(CfnCampaign.CampaignInAppMessageProperty inAppMessage)
CfnCampaign.MessageConfigurationProperty.getInAppMessage()
inAppMessage
- The default message for the in-app messaging channel.
This message overrides the default message ( DefaultMessage
).this
public CfnCampaign.MessageConfigurationProperty.Builder smsMessage(IResolvable smsMessage)
CfnCampaign.MessageConfigurationProperty.getSmsMessage()
smsMessage
- The message that the campaign sends through the SMS channel.
If specified, this message overrides the default message.this
public CfnCampaign.MessageConfigurationProperty.Builder smsMessage(CfnCampaign.CampaignSmsMessageProperty smsMessage)
CfnCampaign.MessageConfigurationProperty.getSmsMessage()
smsMessage
- The message that the campaign sends through the SMS channel.
If specified, this message overrides the default message.this
public CfnCampaign.MessageConfigurationProperty build()
CfnCampaign.MessageConfigurationProperty
java.lang.NullPointerException
- if any required attribute was not provided