Class MessageConfiguration

    • Method Detail

      • admMessage

        public final Message admMessage()

        The message that the campaign sends through the ADM (Amazon Device Messaging) channel. If specified, this message overrides the default message.

        Returns:
        The message that the campaign sends through the ADM (Amazon Device Messaging) channel. If specified, this message overrides the default message.
      • apnsMessage

        public final Message apnsMessage()

        The message that the campaign sends through the APNs (Apple Push Notification service) channel. If specified, this message overrides the default message.

        Returns:
        The message that the campaign sends through the APNs (Apple Push Notification service) channel. If specified, this message overrides the default message.
      • baiduMessage

        public final Message baiduMessage()

        The message that the campaign sends through the Baidu (Baidu Cloud Push) channel. If specified, this message overrides the default message.

        Returns:
        The message that the campaign sends through the Baidu (Baidu Cloud Push) channel. If specified, this message overrides the default message.
      • customMessage

        public final 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.

        Returns:
        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.
      • defaultMessage

        public final Message defaultMessage()

        The default message that the campaign sends through all the channels that are configured for the campaign.

        Returns:
        The default message that the campaign sends through all the channels that are configured for the campaign.
      • emailMessage

        public final CampaignEmailMessage emailMessage()

        The message that the campaign sends through the email channel. If specified, this message overrides the default message.

        Returns:
        The message that the campaign sends through the email channel. If specified, this message overrides the default message.
      • gcmMessage

        public final 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.

        Returns:
        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.
      • smsMessage

        public final CampaignSmsMessage smsMessage()

        The message that the campaign sends through the SMS channel. If specified, this message overrides the default message.

        Returns:
        The message that the campaign sends through the SMS channel. If specified, this message overrides the default message.
      • inAppMessage

        public final CampaignInAppMessage inAppMessage()

        The in-app message configuration.

        Returns:
        The in-app message configuration.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)