Class SnsNotification<T>

java.lang.Object
io.awspring.cloud.sns.core.SnsNotification<T>
Type Parameters:
T - - type of payload

public class SnsNotification<T> extends Object
SNS notification object.
  • Constructor Details

  • Method Details

    • of

      public static <T> SnsNotification<T> of(T payload)
      Creates notification from payload.
      Type Parameters:
      T - - type of payload
      Parameters:
      payload - - notification payload
      Returns:
      the notification
    • builder

      public static <T> SnsNotification.Builder<T> builder(T payload)
      Creates a builder with payload.
      Type Parameters:
      T - - type of payload
      Parameters:
      payload - - notification payload
      Returns:
      the notification
    • getSubject

      @Nullable public String getSubject()
    • getPayload

      public T getPayload()
    • getHeaders

      @Nullable public Map<String,Object> getHeaders()
    • getGroupId

      @Nullable public String getGroupId()
    • getDeduplicationId

      @Nullable public String getDeduplicationId()