Interface MessageConfiguration.Builder

  • Method Details

    • 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.
    • admMessage

      default MessageConfiguration.Builder admMessage(Consumer<Message.Builder> 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 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 admMessage(Message).

      Parameters:
      admMessage - 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:
    • 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.
    • apnsMessage

      default MessageConfiguration.Builder apnsMessage(Consumer<Message.Builder> 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 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 apnsMessage(Message).

      Parameters:
      apnsMessage - 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:
    • 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.
    • baiduMessage

      default MessageConfiguration.Builder baiduMessage(Consumer<Message.Builder> 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 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 baiduMessage(Message).

      Parameters:
      baiduMessage - 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:
    • 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

      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 the CampaignCustomMessage.Builder avoiding the need to create one manually via CampaignCustomMessage.builder().

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

      Parameters:
      customMessage - a consumer that will call methods on CampaignCustomMessage.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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.
    • defaultMessage

      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.

      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 defaultMessage(Message).

      Parameters:
      defaultMessage - 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:
    • 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

      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 the CampaignEmailMessage.Builder avoiding the need to create one manually via CampaignEmailMessage.builder().

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

      Parameters:
      emailMessage - a consumer that will call methods on CampaignEmailMessage.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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:
    • 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 the CampaignSmsMessage.Builder avoiding the need to create one manually via CampaignSmsMessage.builder().

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

      Parameters:
      smsMessage - a consumer that will call methods on CampaignSmsMessage.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

      The in-app message configuration.

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

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

      Parameters:
      inAppMessage - a consumer that will call methods on CampaignInAppMessage.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: