Interface MessageConfiguration.Builder

    • Method Detail

      • admMessage

        MessageConfiguration.Builder admMessage​(Message 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.
      • apnsMessage

        MessageConfiguration.Builder apnsMessage​(Message 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.
      • baiduMessage

        MessageConfiguration.Builder baiduMessage​(Message 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.
      • customMessage

        MessageConfiguration.Builder customMessage​(CampaignCustomMessage 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.
      • defaultMessage

        MessageConfiguration.Builder defaultMessage​(Message 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.
      • emailMessage

        MessageConfiguration.Builder emailMessage​(CampaignEmailMessage 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.
      • gcmMessage

        MessageConfiguration.Builder 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. 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

        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. If specified, this message overrides the default message.

        This is a convenience method that creates an instance of the Message.Builder avoiding the need to create one manually via Message.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to gcmMessage(Message).

        Parameters:
        gcmMessage - a consumer that will call methods on Message.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        gcmMessage(Message)
      • smsMessage

        MessageConfiguration.Builder smsMessage​(CampaignSmsMessage 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.
      • inAppMessage

        MessageConfiguration.Builder inAppMessage​(CampaignInAppMessage 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.