pub struct SendTextMessage { /* private fields */ }
Expand description

Fluent builder constructing a request to SendTextMessage.

Creates a new text message and sends it to a recipient's phone number.

SMS throughput limits are measured in Message Parts per Second (MPS). Your MPS limit depends on the destination country of your messages, as well as the type of phone number (origination number) that you use to send the message. For more information, see Message Parts per Second (MPS) limits in the Amazon Pinpoint User Guide.

Implementations

Sends the request and returns the response.

If an error occurs, an SdkError will be returned with additional details that can be matched against.

By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.

The destination phone number in E.164 format.

The destination phone number in E.164 format.

The origination identity of the message. This can be either the PhoneNumber, PhoneNumberId, PhoneNumberArn, SenderId, SenderIdArn, PoolId, or PoolArn.

The origination identity of the message. This can be either the PhoneNumber, PhoneNumberId, PhoneNumberArn, SenderId, SenderIdArn, PoolId, or PoolArn.

The body of the text message.

The body of the text message.

The type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive and PROMOTIONAL for messages that aren't critical or time-sensitive.

The type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive and PROMOTIONAL for messages that aren't critical or time-sensitive.

When you register a short code in the US, you must specify a program name. If you don’t have a US short code, omit this attribute.

When you register a short code in the US, you must specify a program name. If you don’t have a US short code, omit this attribute.

The name of the configuration set to use. This can be either the ConfigurationSetName or ConfigurationSetArn.

The name of the configuration set to use. This can be either the ConfigurationSetName or ConfigurationSetArn.

The maximum amount that you want to spend, in US dollars, per each text message part. A text message can contain multiple parts.

The maximum amount that you want to spend, in US dollars, per each text message part. A text message can contain multiple parts.

How long the text message is valid for. By default this is 72 hours.

How long the text message is valid for. By default this is 72 hours.

Adds a key-value pair to Context.

To override the contents of this collection use set_context.

You can specify custom data in this field. If you do, that data is logged to the event destination.

You can specify custom data in this field. If you do, that data is logged to the event destination.

Adds a key-value pair to DestinationCountryParameters.

To override the contents of this collection use set_destination_country_parameters.

This field is used for any country-specific registration requirements. Currently, this setting is only used when you send messages to recipients in India using a sender ID. For more information see Special requirements for sending SMS messages to recipients in India.

This field is used for any country-specific registration requirements. Currently, this setting is only used when you send messages to recipients in India using a sender ID. For more information see Special requirements for sending SMS messages to recipients in India.

When set to true, the message is checked and validated, but isn't sent to the end recipient.

When set to true, the message is checked and validated, but isn't sent to the end recipient.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more