Interface SMSMessage.Builder

    • Method Detail

      • body

        SMSMessage.Builder body​(String body)

        The body of the SMS message.

        Parameters:
        body - The body of the SMS message.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • keyword

        SMSMessage.Builder keyword​(String keyword)

        The SMS program name that you provided to AWS Support when you requested your dedicated number.

        Parameters:
        keyword - The SMS program name that you provided to AWS Support when you requested your dedicated number.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • mediaUrl

        SMSMessage.Builder mediaUrl​(String mediaUrl)

        This field is reserved for future use.

        Parameters:
        mediaUrl - This field is reserved for future use.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • messageType

        SMSMessage.Builder messageType​(String messageType)

        The SMS message type. Valid values are TRANSACTIONAL (for messages that are critical or time-sensitive, such as a one-time passwords) and PROMOTIONAL (for messsages that aren't critical or time-sensitive, such as marketing messages).

        Parameters:
        messageType - The SMS message type. Valid values are TRANSACTIONAL (for messages that are critical or time-sensitive, such as a one-time passwords) and PROMOTIONAL (for messsages that aren't critical or time-sensitive, such as marketing messages).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        MessageType, MessageType
      • messageType

        SMSMessage.Builder messageType​(MessageType messageType)

        The SMS message type. Valid values are TRANSACTIONAL (for messages that are critical or time-sensitive, such as a one-time passwords) and PROMOTIONAL (for messsages that aren't critical or time-sensitive, such as marketing messages).

        Parameters:
        messageType - The SMS message type. Valid values are TRANSACTIONAL (for messages that are critical or time-sensitive, such as a one-time passwords) and PROMOTIONAL (for messsages that aren't critical or time-sensitive, such as marketing messages).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        MessageType, MessageType
      • originationNumber

        SMSMessage.Builder originationNumber​(String originationNumber)

        The number to send the SMS message from. This value should be one of the dedicated long or short codes that's assigned to your AWS account. If you don't specify a long or short code, Amazon Pinpoint assigns a random long code to the SMS message and sends the message from that code.

        Parameters:
        originationNumber - The number to send the SMS message from. This value should be one of the dedicated long or short codes that's assigned to your AWS account. If you don't specify a long or short code, Amazon Pinpoint assigns a random long code to the SMS message and sends the message from that code.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • senderId

        SMSMessage.Builder senderId​(String senderId)

        The sender ID to display as the sender of the message on a recipient's device. Support for sender IDs varies by country or region.

        Parameters:
        senderId - The sender ID to display as the sender of the message on a recipient's device. Support for sender IDs varies by country or region.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • substitutions

        SMSMessage.Builder substitutions​(Map<String,​? extends Collection<String>> substitutions)

        The message variables to use in the SMS message. You can override the default variables with individual address variables.

        Parameters:
        substitutions - The message variables to use in the SMS message. You can override the default variables with individual address variables.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • entityId

        SMSMessage.Builder entityId​(String entityId)

        The entity ID or Principal Entity (PE) id received from the regulatory body for sending SMS in your country.

        Parameters:
        entityId - The entity ID or Principal Entity (PE) id received from the regulatory body for sending SMS in your country.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • templateId

        SMSMessage.Builder templateId​(String templateId)

        The template ID received from the regulatory body for sending SMS in your country.

        Parameters:
        templateId - The template ID received from the regulatory body for sending SMS in your country.
        Returns:
        Returns a reference to this object so that method calls can be chained together.