Class MessageConfiguration

java.lang.Object
software.amazon.awssdk.services.pinpoint.model.MessageConfiguration
All Implemented Interfaces:
Serializable, SdkPojo, ToCopyableBuilder<MessageConfiguration.Builder,MessageConfiguration>

@Generated("software.amazon.awssdk:codegen") public final class MessageConfiguration extends Object implements SdkPojo, Serializable, ToCopyableBuilder<MessageConfiguration.Builder,MessageConfiguration>

Specifies the message configuration settings for a campaign.

See Also:
  • Method Details

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

      public MessageConfiguration.Builder toBuilder()
      Description copied from interface: ToCopyableBuilder
      Take this object and create a builder that contains all of the current property values of this object.
      Specified by:
      toBuilder in interface ToCopyableBuilder<MessageConfiguration.Builder,MessageConfiguration>
      Returns:
      a builder for type T
    • builder

      public static MessageConfiguration.Builder builder()
    • serializableBuilderClass

      public static Class<? extends MessageConfiguration.Builder> serializableBuilderClass()
    • hashCode

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

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

      public final boolean equalsBySdkFields(Object obj)
      Description copied from interface: SdkPojo
      Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in an SdkPojo class, and is generated based on a service model.

      If an SdkPojo class does not have any inherited fields, equalsBySdkFields and equals are essentially the same.

      Specified by:
      equalsBySdkFields in interface SdkPojo
      Parameters:
      obj - the object to be compared with
      Returns:
      true if the other object equals to this object by sdk fields, false otherwise.
    • 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)
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
      Returns:
      List of SdkField in this POJO. May be empty list but should never be null.