aws-sdk-socialmessaging 1.72.0

AWS SDK for AWS End User Messaging Social
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`SendWhatsAppMessage`](crate::operation::send_whats_app_message::builders::SendWhatsAppMessageFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`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_GetLinkedWhatsAppBusinessAccount.html">GetLinkedWhatsAppBusinessAccount</a> to find a phone number's id.</p><br>
    ///   - [`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>
    ///   - [`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>
    /// - On success, responds with [`SendWhatsAppMessageOutput`](crate::operation::send_whats_app_message::SendWhatsAppMessageOutput) with field(s):
    ///   - [`message_id(Option<String>)`](crate::operation::send_whats_app_message::SendWhatsAppMessageOutput::message_id): <p>The unique identifier of the message.</p>
    /// - On failure, responds with [`SdkError<SendWhatsAppMessageError>`](crate::operation::send_whats_app_message::SendWhatsAppMessageError)
    pub fn send_whats_app_message(&self) -> crate::operation::send_whats_app_message::builders::SendWhatsAppMessageFluentBuilder {
        crate::operation::send_whats_app_message::builders::SendWhatsAppMessageFluentBuilder::new(self.handle.clone())
    }
}