1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`SendChannelMessage`](crate::operation::send_channel_message::builders::SendChannelMessageFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`channel_arn(impl Into<String>)`](crate::operation::send_channel_message::builders::SendChannelMessageFluentBuilder::channel_arn) / [`set_channel_arn(Option<String>)`](crate::operation::send_channel_message::builders::SendChannelMessageFluentBuilder::set_channel_arn): <p>The ARN of the channel.</p>
    ///   - [`content(impl Into<String>)`](crate::operation::send_channel_message::builders::SendChannelMessageFluentBuilder::content) / [`set_content(Option<String>)`](crate::operation::send_channel_message::builders::SendChannelMessageFluentBuilder::set_content): <p>The content of the message.</p>
    ///   - [`r#type(ChannelMessageType)`](crate::operation::send_channel_message::builders::SendChannelMessageFluentBuilder::type) / [`set_type(Option<ChannelMessageType>)`](crate::operation::send_channel_message::builders::SendChannelMessageFluentBuilder::set_type): <p>The type of message, <code>STANDARD</code> or <code>CONTROL</code>.</p>
    ///   - [`persistence(ChannelMessagePersistenceType)`](crate::operation::send_channel_message::builders::SendChannelMessageFluentBuilder::persistence) / [`set_persistence(Option<ChannelMessagePersistenceType>)`](crate::operation::send_channel_message::builders::SendChannelMessageFluentBuilder::set_persistence): <p>Boolean that controls whether the message is persisted on the back end. Required.</p>
    ///   - [`metadata(impl Into<String>)`](crate::operation::send_channel_message::builders::SendChannelMessageFluentBuilder::metadata) / [`set_metadata(Option<String>)`](crate::operation::send_channel_message::builders::SendChannelMessageFluentBuilder::set_metadata): <p>The optional metadata for each message.</p>
    ///   - [`client_request_token(impl Into<String>)`](crate::operation::send_channel_message::builders::SendChannelMessageFluentBuilder::client_request_token) / [`set_client_request_token(Option<String>)`](crate::operation::send_channel_message::builders::SendChannelMessageFluentBuilder::set_client_request_token): <p>The <code>Idempotency</code> token for each client request.</p>
    ///   - [`chime_bearer(impl Into<String>)`](crate::operation::send_channel_message::builders::SendChannelMessageFluentBuilder::chime_bearer) / [`set_chime_bearer(Option<String>)`](crate::operation::send_channel_message::builders::SendChannelMessageFluentBuilder::set_chime_bearer): <p>The <code>AppInstanceUserArn</code> of the user that makes the API call.</p>
    /// - On success, responds with [`SendChannelMessageOutput`](crate::operation::send_channel_message::SendChannelMessageOutput) with field(s):
    ///   - [`channel_arn(Option<String>)`](crate::operation::send_channel_message::SendChannelMessageOutput::channel_arn): <p>The ARN of the channel.</p>
    ///   - [`message_id(Option<String>)`](crate::operation::send_channel_message::SendChannelMessageOutput::message_id): <p>The ID string assigned to each message.</p>
    /// - On failure, responds with [`SdkError<SendChannelMessageError>`](crate::operation::send_channel_message::SendChannelMessageError)
    pub fn send_channel_message(
        &self,
    ) -> crate::operation::send_channel_message::builders::SendChannelMessageFluentBuilder {
        crate::operation::send_channel_message::builders::SendChannelMessageFluentBuilder::new(
            self.handle.clone(),
        )
    }
}