1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// 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):<br>required: **true**<br><p>The ARN of the channel.</p><br>
    ///   - [`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):<br>required: **true**<br><p>The content of the message.</p><br>
    ///   - [`r#type(ChannelMessageType)`](crate::operation::send_channel_message::builders::SendChannelMessageFluentBuilder::type) / [`set_type(Option<ChannelMessageType>)`](crate::operation::send_channel_message::builders::SendChannelMessageFluentBuilder::set_type):<br>required: **true**<br><p>The type of message, <code>STANDARD</code> or <code>CONTROL</code>.</p><br>
    ///   - [`persistence(ChannelMessagePersistenceType)`](crate::operation::send_channel_message::builders::SendChannelMessageFluentBuilder::persistence) / [`set_persistence(Option<ChannelMessagePersistenceType>)`](crate::operation::send_channel_message::builders::SendChannelMessageFluentBuilder::set_persistence):<br>required: **true**<br><p>Boolean that controls whether the message is persisted on the back end. Required.</p><br>
    ///   - [`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):<br>required: **false**<br><p>The optional metadata for each message.</p><br>
    ///   - [`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):<br>required: **true**<br><p>The <code>Idempotency</code> token for each client request.</p><br>
    ///   - [`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):<br>required: **false**<br><p>The <code>AppInstanceUserArn</code> of the user that makes the API call.</p><br>
    /// - 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)
    #[deprecated(note = "Replaced by SendChannelMessage in the Amazon Chime SDK Messaging Namespace")]
    pub fn send_channel_message(&self) -> crate::operation::send_channel_message::builders::SendChannelMessageFluentBuilder {
        crate::operation::send_channel_message::builders::SendChannelMessageFluentBuilder::new(self.handle.clone())
    }
}