Interface MessageConfiguration.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<MessageConfiguration.Builder,
,MessageConfiguration> SdkBuilder<MessageConfiguration.Builder,
,MessageConfiguration> SdkPojo
- Enclosing class:
MessageConfiguration
-
Method Summary
Modifier and TypeMethodDescriptiondefault MessageConfiguration.Builder
admMessage
(Consumer<Message.Builder> admMessage) The message that the campaign sends through the ADM (Amazon Device Messaging) channel.admMessage
(Message admMessage) The message that the campaign sends through the ADM (Amazon Device Messaging) channel.default MessageConfiguration.Builder
apnsMessage
(Consumer<Message.Builder> apnsMessage) The message that the campaign sends through the APNs (Apple Push Notification service) channel.apnsMessage
(Message apnsMessage) The message that the campaign sends through the APNs (Apple Push Notification service) channel.default MessageConfiguration.Builder
baiduMessage
(Consumer<Message.Builder> baiduMessage) The message that the campaign sends through the Baidu (Baidu Cloud Push) channel.baiduMessage
(Message baiduMessage) The message that the campaign sends through the Baidu (Baidu Cloud Push) channel.default MessageConfiguration.Builder
customMessage
(Consumer<CampaignCustomMessage.Builder> customMessage) The message that the campaign sends through a custom channel, as specified by the delivery configuration (CustomDeliveryConfiguration) settings for the campaign.customMessage
(CampaignCustomMessage customMessage) The message that the campaign sends through a custom channel, as specified by the delivery configuration (CustomDeliveryConfiguration) settings for the campaign.default MessageConfiguration.Builder
defaultMessage
(Consumer<Message.Builder> defaultMessage) The default message that the campaign sends through all the channels that are configured for the campaign.defaultMessage
(Message defaultMessage) The default message that the campaign sends through all the channels that are configured for the campaign.default MessageConfiguration.Builder
emailMessage
(Consumer<CampaignEmailMessage.Builder> emailMessage) The message that the campaign sends through the email channel.emailMessage
(CampaignEmailMessage emailMessage) The message that the campaign sends through the email channel.default MessageConfiguration.Builder
gcmMessage
(Consumer<Message.Builder> 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.gcmMessage
(Message 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.default MessageConfiguration.Builder
inAppMessage
(Consumer<CampaignInAppMessage.Builder> inAppMessage) The in-app message configuration.inAppMessage
(CampaignInAppMessage inAppMessage) The in-app message configuration.default MessageConfiguration.Builder
smsMessage
(Consumer<CampaignSmsMessage.Builder> smsMessage) The message that the campaign sends through the SMS channel.smsMessage
(CampaignSmsMessage smsMessage) The message that the campaign sends through the SMS channel.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
admMessage
The message that the campaign sends through the ADM (Amazon Device Messaging) channel. If specified, this message overrides the default message.
- Parameters:
admMessage
- The message that the campaign sends through the ADM (Amazon Device Messaging) channel. If specified, this message overrides the default message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
admMessage
The message that the campaign sends through the ADM (Amazon Device Messaging) channel. If specified, this message overrides the default message.
This is a convenience method that creates an instance of theMessage.Builder
avoiding the need to create one manually viaMessage.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toadmMessage(Message)
.- Parameters:
admMessage
- a consumer that will call methods onMessage.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
apnsMessage
The message that the campaign sends through the APNs (Apple Push Notification service) channel. If specified, this message overrides the default message.
- 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:
- Returns a reference to this object so that method calls can be chained together.
-
apnsMessage
The message that the campaign sends through the APNs (Apple Push Notification service) channel. If specified, this message overrides the default message.
This is a convenience method that creates an instance of theMessage.Builder
avoiding the need to create one manually viaMessage.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toapnsMessage(Message)
.- Parameters:
apnsMessage
- a consumer that will call methods onMessage.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
baiduMessage
The message that the campaign sends through the Baidu (Baidu Cloud Push) channel. If specified, this message overrides the default message.
- Parameters:
baiduMessage
- The message that the campaign sends through the Baidu (Baidu Cloud Push) channel. If specified, this message overrides the default message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
baiduMessage
The message that the campaign sends through the Baidu (Baidu Cloud Push) channel. If specified, this message overrides the default message.
This is a convenience method that creates an instance of theMessage.Builder
avoiding the need to create one manually viaMessage.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tobaiduMessage(Message)
.- Parameters:
baiduMessage
- a consumer that will call methods onMessage.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
- 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:
- Returns a reference to this object so that method calls can be chained together.
-
customMessage
default MessageConfiguration.Builder customMessage(Consumer<CampaignCustomMessage.Builder> 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 is a convenience method that creates an instance of theCampaignCustomMessage.Builder
avoiding the need to create one manually viaCampaignCustomMessage.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocustomMessage(CampaignCustomMessage)
.- Parameters:
customMessage
- a consumer that will call methods onCampaignCustomMessage.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
defaultMessage
The default message that the campaign sends through all the channels that are configured for the campaign.
- Parameters:
defaultMessage
- The default message that the campaign sends through all the channels that are configured for the campaign.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
defaultMessage
The default message that the campaign sends through all the channels that are configured for the campaign.
This is a convenience method that creates an instance of theMessage.Builder
avoiding the need to create one manually viaMessage.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todefaultMessage(Message)
.- Parameters:
defaultMessage
- a consumer that will call methods onMessage.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
emailMessage
The message that the campaign sends through the email channel. If specified, this message overrides the default message.
- Parameters:
emailMessage
- The message that the campaign sends through the email channel. If specified, this message overrides the default message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
emailMessage
default MessageConfiguration.Builder emailMessage(Consumer<CampaignEmailMessage.Builder> emailMessage) The message that the campaign sends through the email channel. If specified, this message overrides the default message.
This is a convenience method that creates an instance of theCampaignEmailMessage.Builder
avoiding the need to create one manually viaCampaignEmailMessage.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toemailMessage(CampaignEmailMessage)
.- Parameters:
emailMessage
- a consumer that will call methods onCampaignEmailMessage.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
- 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:
- Returns a reference to this object so that method calls can be chained together.
-
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 is a convenience method that creates an instance of theMessage.Builder
avoiding the need to create one manually viaMessage.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed togcmMessage(Message)
.- Parameters:
gcmMessage
- a consumer that will call methods onMessage.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
smsMessage
The message that the campaign sends through the SMS channel. If specified, this message overrides the default message.
- Parameters:
smsMessage
- The message that the campaign sends through the SMS channel. If specified, this message overrides the default message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
smsMessage
The message that the campaign sends through the SMS channel. If specified, this message overrides the default message.
This is a convenience method that creates an instance of theCampaignSmsMessage.Builder
avoiding the need to create one manually viaCampaignSmsMessage.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosmsMessage(CampaignSmsMessage)
.- Parameters:
smsMessage
- a consumer that will call methods onCampaignSmsMessage.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
inAppMessage
The in-app message configuration.
- Parameters:
inAppMessage
- The in-app message configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inAppMessage
default MessageConfiguration.Builder inAppMessage(Consumer<CampaignInAppMessage.Builder> inAppMessage) The in-app message configuration.
This is a convenience method that creates an instance of theCampaignInAppMessage.Builder
avoiding the need to create one manually viaCampaignInAppMessage.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toinAppMessage(CampaignInAppMessage)
.- Parameters:
inAppMessage
- a consumer that will call methods onCampaignInAppMessage.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-