Class CfnCampaign.MessageConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.pinpoint.CfnCampaign.MessageConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCampaign.MessageConfigurationProperty>
- Enclosing interface:
CfnCampaign.MessageConfigurationProperty
@Stability(Stable)
public static final class CfnCampaign.MessageConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCampaign.MessageConfigurationProperty>
A builder for
CfnCampaign.MessageConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionadmMessage
(IResolvable admMessage) Sets the value ofCfnCampaign.MessageConfigurationProperty.getAdmMessage()
admMessage
(CfnCampaign.MessageProperty admMessage) Sets the value ofCfnCampaign.MessageConfigurationProperty.getAdmMessage()
apnsMessage
(IResolvable apnsMessage) Sets the value ofCfnCampaign.MessageConfigurationProperty.getApnsMessage()
apnsMessage
(CfnCampaign.MessageProperty apnsMessage) Sets the value ofCfnCampaign.MessageConfigurationProperty.getApnsMessage()
baiduMessage
(IResolvable baiduMessage) Sets the value ofCfnCampaign.MessageConfigurationProperty.getBaiduMessage()
baiduMessage
(CfnCampaign.MessageProperty baiduMessage) Sets the value ofCfnCampaign.MessageConfigurationProperty.getBaiduMessage()
build()
Builds the configured instance.customMessage
(IResolvable customMessage) Sets the value ofCfnCampaign.MessageConfigurationProperty.getCustomMessage()
customMessage
(CfnCampaign.CampaignCustomMessageProperty customMessage) Sets the value ofCfnCampaign.MessageConfigurationProperty.getCustomMessage()
defaultMessage
(IResolvable defaultMessage) Sets the value ofCfnCampaign.MessageConfigurationProperty.getDefaultMessage()
defaultMessage
(CfnCampaign.MessageProperty defaultMessage) Sets the value ofCfnCampaign.MessageConfigurationProperty.getDefaultMessage()
emailMessage
(IResolvable emailMessage) Sets the value ofCfnCampaign.MessageConfigurationProperty.getEmailMessage()
emailMessage
(CfnCampaign.CampaignEmailMessageProperty emailMessage) Sets the value ofCfnCampaign.MessageConfigurationProperty.getEmailMessage()
gcmMessage
(IResolvable gcmMessage) Sets the value ofCfnCampaign.MessageConfigurationProperty.getGcmMessage()
gcmMessage
(CfnCampaign.MessageProperty gcmMessage) Sets the value ofCfnCampaign.MessageConfigurationProperty.getGcmMessage()
inAppMessage
(IResolvable inAppMessage) Sets the value ofCfnCampaign.MessageConfigurationProperty.getInAppMessage()
inAppMessage
(CfnCampaign.CampaignInAppMessageProperty inAppMessage) Sets the value ofCfnCampaign.MessageConfigurationProperty.getInAppMessage()
smsMessage
(IResolvable smsMessage) Sets the value ofCfnCampaign.MessageConfigurationProperty.getSmsMessage()
smsMessage
(CfnCampaign.CampaignSmsMessageProperty smsMessage) Sets the value ofCfnCampaign.MessageConfigurationProperty.getSmsMessage()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
admMessage
@Stability(Stable) public CfnCampaign.MessageConfigurationProperty.Builder admMessage(IResolvable admMessage) Sets the value ofCfnCampaign.MessageConfigurationProperty.getAdmMessage()
- Parameters:
admMessage
- The message that the campaign sends through the ADM (Amazon Device Messaging) channel. If specified, this message overrides the default message.- Returns:
this
-
admMessage
@Stability(Stable) public CfnCampaign.MessageConfigurationProperty.Builder admMessage(CfnCampaign.MessageProperty admMessage) Sets the value ofCfnCampaign.MessageConfigurationProperty.getAdmMessage()
- Parameters:
admMessage
- The message that the campaign sends through the ADM (Amazon Device Messaging) channel. If specified, this message overrides the default message.- Returns:
this
-
apnsMessage
@Stability(Stable) public CfnCampaign.MessageConfigurationProperty.Builder apnsMessage(IResolvable apnsMessage) Sets the value ofCfnCampaign.MessageConfigurationProperty.getApnsMessage()
- Parameters:
apnsMessage
- The message that the campaign sends through the APNs (Apple Push Notification service) channel. If specified, this message overrides the default message.- Returns:
this
-
apnsMessage
@Stability(Stable) public CfnCampaign.MessageConfigurationProperty.Builder apnsMessage(CfnCampaign.MessageProperty apnsMessage) Sets the value ofCfnCampaign.MessageConfigurationProperty.getApnsMessage()
- Parameters:
apnsMessage
- The message that the campaign sends through the APNs (Apple Push Notification service) channel. If specified, this message overrides the default message.- Returns:
this
-
baiduMessage
@Stability(Stable) public CfnCampaign.MessageConfigurationProperty.Builder baiduMessage(IResolvable baiduMessage) Sets the value ofCfnCampaign.MessageConfigurationProperty.getBaiduMessage()
- Parameters:
baiduMessage
- The message that the campaign sends through the Baidu (Baidu Cloud Push) channel. If specified, this message overrides the default message.- Returns:
this
-
baiduMessage
@Stability(Stable) public CfnCampaign.MessageConfigurationProperty.Builder baiduMessage(CfnCampaign.MessageProperty baiduMessage) Sets the value ofCfnCampaign.MessageConfigurationProperty.getBaiduMessage()
- Parameters:
baiduMessage
- The message that the campaign sends through the Baidu (Baidu Cloud Push) channel. If specified, this message overrides the default message.- Returns:
this
-
customMessage
@Stability(Stable) public CfnCampaign.MessageConfigurationProperty.Builder customMessage(IResolvable customMessage) Sets the value ofCfnCampaign.MessageConfigurationProperty.getCustomMessage()
- Parameters:
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.- Returns:
this
-
customMessage
@Stability(Stable) public CfnCampaign.MessageConfigurationProperty.Builder customMessage(CfnCampaign.CampaignCustomMessageProperty customMessage) Sets the value ofCfnCampaign.MessageConfigurationProperty.getCustomMessage()
- Parameters:
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.- Returns:
this
-
defaultMessage
@Stability(Stable) public CfnCampaign.MessageConfigurationProperty.Builder defaultMessage(IResolvable defaultMessage) Sets the value ofCfnCampaign.MessageConfigurationProperty.getDefaultMessage()
- Parameters:
defaultMessage
- The default message that the campaign sends through all the channels that are configured for the campaign.- Returns:
this
-
defaultMessage
@Stability(Stable) public CfnCampaign.MessageConfigurationProperty.Builder defaultMessage(CfnCampaign.MessageProperty defaultMessage) Sets the value ofCfnCampaign.MessageConfigurationProperty.getDefaultMessage()
- Parameters:
defaultMessage
- The default message that the campaign sends through all the channels that are configured for the campaign.- Returns:
this
-
emailMessage
@Stability(Stable) public CfnCampaign.MessageConfigurationProperty.Builder emailMessage(IResolvable emailMessage) Sets the value ofCfnCampaign.MessageConfigurationProperty.getEmailMessage()
- Parameters:
emailMessage
- The message that the campaign sends through the email channel. If specified, this message overrides the default message.The maximum email message size is 200 KB. You can use email templates to send larger email messages.
- Returns:
this
-
emailMessage
@Stability(Stable) public CfnCampaign.MessageConfigurationProperty.Builder emailMessage(CfnCampaign.CampaignEmailMessageProperty emailMessage) Sets the value ofCfnCampaign.MessageConfigurationProperty.getEmailMessage()
- Parameters:
emailMessage
- The message that the campaign sends through the email channel. If specified, this message overrides the default message.The maximum email message size is 200 KB. You can use email templates to send larger email messages.
- Returns:
this
-
gcmMessage
@Stability(Stable) public CfnCampaign.MessageConfigurationProperty.Builder gcmMessage(IResolvable gcmMessage) Sets the value ofCfnCampaign.MessageConfigurationProperty.getGcmMessage()
- Parameters:
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.- Returns:
this
-
gcmMessage
@Stability(Stable) public CfnCampaign.MessageConfigurationProperty.Builder gcmMessage(CfnCampaign.MessageProperty gcmMessage) Sets the value ofCfnCampaign.MessageConfigurationProperty.getGcmMessage()
- Parameters:
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.- Returns:
this
-
inAppMessage
@Stability(Stable) public CfnCampaign.MessageConfigurationProperty.Builder inAppMessage(IResolvable inAppMessage) Sets the value ofCfnCampaign.MessageConfigurationProperty.getInAppMessage()
- Parameters:
inAppMessage
- The default message for the in-app messaging channel. This message overrides the default message (DefaultMessage
).- Returns:
this
-
inAppMessage
@Stability(Stable) public CfnCampaign.MessageConfigurationProperty.Builder inAppMessage(CfnCampaign.CampaignInAppMessageProperty inAppMessage) Sets the value ofCfnCampaign.MessageConfigurationProperty.getInAppMessage()
- Parameters:
inAppMessage
- The default message for the in-app messaging channel. This message overrides the default message (DefaultMessage
).- Returns:
this
-
smsMessage
@Stability(Stable) public CfnCampaign.MessageConfigurationProperty.Builder smsMessage(IResolvable smsMessage) Sets the value ofCfnCampaign.MessageConfigurationProperty.getSmsMessage()
- Parameters:
smsMessage
- The message that the campaign sends through the SMS channel. If specified, this message overrides the default message.- Returns:
this
-
smsMessage
@Stability(Stable) public CfnCampaign.MessageConfigurationProperty.Builder smsMessage(CfnCampaign.CampaignSmsMessageProperty smsMessage) Sets the value ofCfnCampaign.MessageConfigurationProperty.getSmsMessage()
- Parameters:
smsMessage
- The message that the campaign sends through the SMS channel. If specified, this message overrides the default message.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnCampaign.MessageConfigurationProperty>
- Returns:
- a new instance of
CfnCampaign.MessageConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-