Interface SnsSmsOperations

All Known Implementing Classes:
SnsSmsTemplate

public interface SnsSmsOperations
High level SNS operations for sending SMS. Read more in the official AWS documentation:
Since:
3.0.0
Author:
Matej Nedic
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    send(String phoneNumber, String message)
    Sends SMS directly to a phone number without a need for a phone number to be subscribed to an SNS topic.
    void
    send(String phoneNumber, String message, SmsMessageAttributes attributes)
    Sends SMS directly to a phone number without a need for a phone number to be subscribed to an SNS topic.
    default void
    sendToTopicArn(String topicArn, String message)
    Sends SMS to a topic to which phone numbers are subscribed.
    void
    sendToTopicArn(String topicArn, String message, SmsMessageAttributes attributes)
    Sends SMS to a topic to which phone numbers are subscribed.
  • Method Details

    • send

      void send(String phoneNumber, String message, @Nullable SmsMessageAttributes attributes)
      Sends SMS directly to a phone number without a need for a phone number to be subscribed to an SNS topic.
      Parameters:
      phoneNumber - - phone number to receive a message in E.164 format (for example +14155552671)
      message - - content of the SMS
      attributes - - the message attributes
    • send

      default void send(String phoneNumber, String message)
      Sends SMS directly to a phone number without a need for a phone number to be subscribed to an SNS topic.
      Parameters:
      phoneNumber - - phone number to receive a message in E.164 format (for example +14155552671)
      message - - content of the SMS
    • sendToTopicArn

      void sendToTopicArn(String topicArn, String message, @Nullable SmsMessageAttributes attributes)
      Sends SMS to a topic to which phone numbers are subscribed.
      Parameters:
      topicArn - - the topic ARN
      message - - content of the SMS
      attributes - - the message attributes
    • sendToTopicArn

      default void sendToTopicArn(String topicArn, String message)
      Sends SMS to a topic to which phone numbers are subscribed.
      Parameters:
      topicArn - - the topic ARN
      message - - content of the SMS