Class PutKeywordRequest

    • Method Detail

      • originationIdentity

        public final String originationIdentity()

        The origination identity to use such as a PhoneNumberId, PhoneNumberArn, SenderId or SenderIdArn. You can use DescribePhoneNumbers get the values for PhoneNumberId and PhoneNumberArn while DescribeSenderIds can be used to get the values for SenderId and SenderIdArn.

        If you are using a shared AWS End User Messaging SMS and Voice resource then you must use the full Amazon Resource Name(ARN).

        Returns:
        The origination identity to use such as a PhoneNumberId, PhoneNumberArn, SenderId or SenderIdArn. You can use DescribePhoneNumbers get the values for PhoneNumberId and PhoneNumberArn while DescribeSenderIds can be used to get the values for SenderId and SenderIdArn.

        If you are using a shared AWS End User Messaging SMS and Voice resource then you must use the full Amazon Resource Name(ARN).

      • keyword

        public final String keyword()

        The new keyword to add.

        Returns:
        The new keyword to add.
      • keywordMessage

        public final String keywordMessage()

        The message associated with the keyword.

        Returns:
        The message associated with the keyword.
      • keywordAction

        public final KeywordAction keywordAction()

        The action to perform for the new keyword when it is received.

        • AUTOMATIC_RESPONSE: A message is sent to the recipient.

        • OPT_OUT: Keeps the recipient from receiving future messages.

        • OPT_IN: The recipient wants to receive future messages.

        If the service returns an enum value that is not available in the current SDK version, keywordAction will return KeywordAction.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from keywordActionAsString().

        Returns:
        The action to perform for the new keyword when it is received.

        • AUTOMATIC_RESPONSE: A message is sent to the recipient.

        • OPT_OUT: Keeps the recipient from receiving future messages.

        • OPT_IN: The recipient wants to receive future messages.

        See Also:
        KeywordAction
      • keywordActionAsString

        public final String keywordActionAsString()

        The action to perform for the new keyword when it is received.

        • AUTOMATIC_RESPONSE: A message is sent to the recipient.

        • OPT_OUT: Keeps the recipient from receiving future messages.

        • OPT_IN: The recipient wants to receive future messages.

        If the service returns an enum value that is not available in the current SDK version, keywordAction will return KeywordAction.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from keywordActionAsString().

        Returns:
        The action to perform for the new keyword when it is received.

        • AUTOMATIC_RESPONSE: A message is sent to the recipient.

        • OPT_OUT: Keeps the recipient from receiving future messages.

        • OPT_IN: The recipient wants to receive future messages.

        See Also:
        KeywordAction
      • 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