1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateChannelModerator`](crate::operation::create_channel_moderator::builders::CreateChannelModeratorFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`channel_arn(impl Into<String>)`](crate::operation::create_channel_moderator::builders::CreateChannelModeratorFluentBuilder::channel_arn) / [`set_channel_arn(Option<String>)`](crate::operation::create_channel_moderator::builders::CreateChannelModeratorFluentBuilder::set_channel_arn): <p>The ARN of the channel.</p>
    ///   - [`channel_moderator_arn(impl Into<String>)`](crate::operation::create_channel_moderator::builders::CreateChannelModeratorFluentBuilder::channel_moderator_arn) / [`set_channel_moderator_arn(Option<String>)`](crate::operation::create_channel_moderator::builders::CreateChannelModeratorFluentBuilder::set_channel_moderator_arn): <p>The ARN of the moderator.</p>
    ///   - [`chime_bearer(impl Into<String>)`](crate::operation::create_channel_moderator::builders::CreateChannelModeratorFluentBuilder::chime_bearer) / [`set_chime_bearer(Option<String>)`](crate::operation::create_channel_moderator::builders::CreateChannelModeratorFluentBuilder::set_chime_bearer): <p>The <code>AppInstanceUserArn</code> of the user that makes the API call.</p>
    /// - On success, responds with [`CreateChannelModeratorOutput`](crate::operation::create_channel_moderator::CreateChannelModeratorOutput) with field(s):
    ///   - [`channel_arn(Option<String>)`](crate::operation::create_channel_moderator::CreateChannelModeratorOutput::channel_arn): <p>The ARN of the channel.</p>
    ///   - [`channel_moderator(Option<Identity>)`](crate::operation::create_channel_moderator::CreateChannelModeratorOutput::channel_moderator): <p>The ARNs of the channel and the moderator.</p>
    /// - On failure, responds with [`SdkError<CreateChannelModeratorError>`](crate::operation::create_channel_moderator::CreateChannelModeratorError)
    pub fn create_channel_moderator(
        &self,
    ) -> crate::operation::create_channel_moderator::builders::CreateChannelModeratorFluentBuilder
    {
        crate::operation::create_channel_moderator::builders::CreateChannelModeratorFluentBuilder::new(self.handle.clone())
    }
}