aws_sdk_chimesdkmessaging/client/
put_channel_membership_preferences.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`PutChannelMembershipPreferences`](crate::operation::put_channel_membership_preferences::builders::PutChannelMembershipPreferencesFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`channel_arn(impl Into<String>)`](crate::operation::put_channel_membership_preferences::builders::PutChannelMembershipPreferencesFluentBuilder::channel_arn) / [`set_channel_arn(Option<String>)`](crate::operation::put_channel_membership_preferences::builders::PutChannelMembershipPreferencesFluentBuilder::set_channel_arn):<br>required: **true**<br><p>The ARN of the channel.</p><br>
7    ///   - [`member_arn(impl Into<String>)`](crate::operation::put_channel_membership_preferences::builders::PutChannelMembershipPreferencesFluentBuilder::member_arn) / [`set_member_arn(Option<String>)`](crate::operation::put_channel_membership_preferences::builders::PutChannelMembershipPreferencesFluentBuilder::set_member_arn):<br>required: **true**<br><p>The ARN of the member setting the preferences.</p><br>
8    ///   - [`chime_bearer(impl Into<String>)`](crate::operation::put_channel_membership_preferences::builders::PutChannelMembershipPreferencesFluentBuilder::chime_bearer) / [`set_chime_bearer(Option<String>)`](crate::operation::put_channel_membership_preferences::builders::PutChannelMembershipPreferencesFluentBuilder::set_chime_bearer):<br>required: **true**<br><p>The ARN of the <code>AppInstanceUser</code> or <code>AppInstanceBot</code> that makes the API call.</p><br>
9    ///   - [`preferences(ChannelMembershipPreferences)`](crate::operation::put_channel_membership_preferences::builders::PutChannelMembershipPreferencesFluentBuilder::preferences) / [`set_preferences(Option<ChannelMembershipPreferences>)`](crate::operation::put_channel_membership_preferences::builders::PutChannelMembershipPreferencesFluentBuilder::set_preferences):<br>required: **true**<br><p>The channel membership preferences of an <code>AppInstanceUser</code> .</p><br>
10    /// - On success, responds with [`PutChannelMembershipPreferencesOutput`](crate::operation::put_channel_membership_preferences::PutChannelMembershipPreferencesOutput) with field(s):
11    ///   - [`channel_arn(Option<String>)`](crate::operation::put_channel_membership_preferences::PutChannelMembershipPreferencesOutput::channel_arn): <p>The ARN of the channel.</p>
12    ///   - [`member(Option<Identity>)`](crate::operation::put_channel_membership_preferences::PutChannelMembershipPreferencesOutput::member): <p>The details of a user.</p>
13    ///   - [`preferences(Option<ChannelMembershipPreferences>)`](crate::operation::put_channel_membership_preferences::PutChannelMembershipPreferencesOutput::preferences): <p>The ARN and metadata of the member being added.</p>
14    /// - On failure, responds with [`SdkError<PutChannelMembershipPreferencesError>`](crate::operation::put_channel_membership_preferences::PutChannelMembershipPreferencesError)
15    pub fn put_channel_membership_preferences(
16        &self,
17    ) -> crate::operation::put_channel_membership_preferences::builders::PutChannelMembershipPreferencesFluentBuilder {
18        crate::operation::put_channel_membership_preferences::builders::PutChannelMembershipPreferencesFluentBuilder::new(self.handle.clone())
19    }
20}