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 [`SendWhatsAppCallEvent`](crate::operation::send_whats_app_call_event::builders::SendWhatsAppCallEventFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`origination_phone_number_id(impl Into<String>)`](crate::operation::send_whats_app_call_event::builders::SendWhatsAppCallEventFluentBuilder::origination_phone_number_id) / [`set_origination_phone_number_id(Option<String>)`](crate::operation::send_whats_app_call_event::builders::SendWhatsAppCallEventFluentBuilder::set_origination_phone_number_id):<br>required: **true**<br><p>The unique identifier of the origination phone number for the call. The phone number identifiers are formatted as <code>phone-number-id-01234567890123456789012345678901</code>. Use <code>GetLinkedWhatsAppBusinessAccount</code> to find a phone number's ID.</p><br>
    ///   - [`meta_api_version(impl Into<String>)`](crate::operation::send_whats_app_call_event::builders::SendWhatsAppCallEventFluentBuilder::meta_api_version) / [`set_meta_api_version(Option<String>)`](crate::operation::send_whats_app_call_event::builders::SendWhatsAppCallEventFluentBuilder::set_meta_api_version):<br>required: **true**<br><p>The version of the Meta Graph API to use for the request.</p><br>
    ///   - [`call_event(Blob)`](crate::operation::send_whats_app_call_event::builders::SendWhatsAppCallEventFluentBuilder::call_event) / [`set_call_event(Option<Blob>)`](crate::operation::send_whats_app_call_event::builders::SendWhatsAppCallEventFluentBuilder::set_call_event):<br>required: **true**<br><p>The call event payload to send, as a JSON blob in the format defined by the Meta calling API.</p><br>
    /// - On success, responds with [`SendWhatsAppCallEventOutput`](crate::operation::send_whats_app_call_event::SendWhatsAppCallEventOutput) with field(s):
    ///   - [`call_id(String)`](crate::operation::send_whats_app_call_event::SendWhatsAppCallEventOutput::call_id): <p>The unique identifier that Meta assigns to the call.</p>
    /// - On failure, responds with [`SdkError<SendWhatsAppCallEventError>`](crate::operation::send_whats_app_call_event::SendWhatsAppCallEventError)
    pub fn send_whats_app_call_event(&self) -> crate::operation::send_whats_app_call_event::builders::SendWhatsAppCallEventFluentBuilder {
        crate::operation::send_whats_app_call_event::builders::SendWhatsAppCallEventFluentBuilder::new(self.handle.clone())
    }
}