aws_sdk_socialmessaging/client/send_whats_app_message.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`SendWhatsAppMessage`](crate::operation::send_whats_app_message::builders::SendWhatsAppMessageFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`origination_phone_number_id(impl Into<String>)`](crate::operation::send_whats_app_message::builders::SendWhatsAppMessageFluentBuilder::origination_phone_number_id) / [`set_origination_phone_number_id(Option<String>)`](crate::operation::send_whats_app_message::builders::SendWhatsAppMessageFluentBuilder::set_origination_phone_number_id):<br>required: **true**<br><p>The ID of the phone number used to send the WhatsApp message. If you are sending a media file only the <code>originationPhoneNumberId</code> used to upload the file can be used. Phone number identifiers are formatted as <code>phone-number-id-01234567890123456789012345678901</code>. Use <a href="https://docs.aws.amazon.com/social-messaging/latest/APIReference/API_GetLinkedWhatsAppBusinessAccountPhoneNumber.html">GetLinkedWhatsAppBusinessAccount</a> to find a phone number's id.</p><br>
7 /// - [`message(Blob)`](crate::operation::send_whats_app_message::builders::SendWhatsAppMessageFluentBuilder::message) / [`set_message(Option<Blob>)`](crate::operation::send_whats_app_message::builders::SendWhatsAppMessageFluentBuilder::set_message):<br>required: **true**<br><p>The message to send through WhatsApp. The length is in KB. The message field passes through a WhatsApp Message object, see <a href="https://developers.facebook.com/docs/whatsapp/cloud-api/reference/messages">Messages</a> in the <i>WhatsApp Business Platform Cloud API Reference</i>.</p><br>
8 /// - [`meta_api_version(impl Into<String>)`](crate::operation::send_whats_app_message::builders::SendWhatsAppMessageFluentBuilder::meta_api_version) / [`set_meta_api_version(Option<String>)`](crate::operation::send_whats_app_message::builders::SendWhatsAppMessageFluentBuilder::set_meta_api_version):<br>required: **true**<br><p>The API version for the request formatted as <code>v{VersionNumber}</code>. For a list of supported API versions and Amazon Web Services Regions, see <a href="https://docs.aws.amazon.com/general/latest/gr/end-user-messaging.html"> <i>Amazon Web Services End User Messaging Social API</i> Service Endpoints</a> in the <i>Amazon Web Services General Reference</i>.</p><br>
9 /// - On success, responds with [`SendWhatsAppMessageOutput`](crate::operation::send_whats_app_message::SendWhatsAppMessageOutput) with field(s):
10 /// - [`message_id(Option<String>)`](crate::operation::send_whats_app_message::SendWhatsAppMessageOutput::message_id): <p>The unique identifier of the message.</p>
11 /// - On failure, responds with [`SdkError<SendWhatsAppMessageError>`](crate::operation::send_whats_app_message::SendWhatsAppMessageError)
12 pub fn send_whats_app_message(&self) -> crate::operation::send_whats_app_message::builders::SendWhatsAppMessageFluentBuilder {
13 crate::operation::send_whats_app_message::builders::SendWhatsAppMessageFluentBuilder::new(self.handle.clone())
14 }
15}