Struct aws_sdk_pinpoint::model::CampaignSmsMessage
source · [−]#[non_exhaustive]pub struct CampaignSmsMessage {
pub body: Option<String>,
pub message_type: Option<MessageType>,
pub origination_number: Option<String>,
pub sender_id: Option<String>,
pub entity_id: Option<String>,
pub template_id: Option<String>,
}
Expand description
Specifies the content and settings for an SMS message that's sent to recipients of a campaign.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.body: Option<String>
The body of the SMS message.
message_type: Option<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).
origination_number: Option<String>
The long code to send the SMS message from. This value should be one of the dedicated long codes that's assigned to your AWS account. Although it isn't required, we recommend that you specify the long code using an E.164 format to ensure prompt and accurate delivery of the message. For example, +12065550100.
sender_id: Option<String>
The sender ID to display on recipients' devices when they receive the SMS message.
entity_id: Option<String>
The entity ID or Principal Entity (PE) id received from the regulatory body for sending SMS in your country.
template_id: Option<String>
The template ID received from the regulatory body for sending SMS in your country.
Implementations
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).
The long code to send the SMS message from. This value should be one of the dedicated long codes that's assigned to your AWS account. Although it isn't required, we recommend that you specify the long code using an E.164 format to ensure prompt and accurate delivery of the message. For example, +12065550100.
The sender ID to display on recipients' devices when they receive the SMS message.
The entity ID or Principal Entity (PE) id received from the regulatory body for sending SMS in your country.
The template ID received from the regulatory body for sending SMS in your country.
Creates a new builder-style object to manufacture CampaignSmsMessage
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for CampaignSmsMessage
impl Send for CampaignSmsMessage
impl Sync for CampaignSmsMessage
impl Unpin for CampaignSmsMessage
impl UnwindSafe for CampaignSmsMessage
Blanket Implementations
Mutably borrows from an owned value. Read more
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