1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`ListChannels`](crate::operation::list_channels::builders::ListChannelsFluentBuilder) operation.
    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_channels::builders::ListChannelsFluentBuilder::into_paginator).
    ///
    /// - The fluent builder is configurable:
    ///   - [`app_instance_arn(impl Into<String>)`](crate::operation::list_channels::builders::ListChannelsFluentBuilder::app_instance_arn) / [`set_app_instance_arn(Option<String>)`](crate::operation::list_channels::builders::ListChannelsFluentBuilder::set_app_instance_arn):<br>required: **true**<br><p>The ARN of the <code>AppInstance</code>.</p><br>
    ///   - [`privacy(ChannelPrivacy)`](crate::operation::list_channels::builders::ListChannelsFluentBuilder::privacy) / [`set_privacy(Option<ChannelPrivacy>)`](crate::operation::list_channels::builders::ListChannelsFluentBuilder::set_privacy):<br>required: **false**<br><p>The privacy setting. <code>PUBLIC</code> retrieves all the public channels. <code>PRIVATE</code> retrieves private channels. Only an <code>AppInstanceAdmin</code> can retrieve private channels.</p><br>
    ///   - [`max_results(i32)`](crate::operation::list_channels::builders::ListChannelsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_channels::builders::ListChannelsFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of channels that you want to return.</p><br>
    ///   - [`next_token(impl Into<String>)`](crate::operation::list_channels::builders::ListChannelsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_channels::builders::ListChannelsFluentBuilder::set_next_token):<br>required: **false**<br><p>The token passed by previous API calls until all requested channels are returned.</p><br>
    ///   - [`chime_bearer(impl Into<String>)`](crate::operation::list_channels::builders::ListChannelsFluentBuilder::chime_bearer) / [`set_chime_bearer(Option<String>)`](crate::operation::list_channels::builders::ListChannelsFluentBuilder::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 [`ListChannelsOutput`](crate::operation::list_channels::ListChannelsOutput) with field(s):
    ///   - [`channels(Option<Vec::<ChannelSummary>>)`](crate::operation::list_channels::ListChannelsOutput::channels): <p>The information about each channel.</p>
    ///   - [`next_token(Option<String>)`](crate::operation::list_channels::ListChannelsOutput::next_token): <p>The token returned from previous API requests until the number of channels is reached.</p>
    /// - On failure, responds with [`SdkError<ListChannelsError>`](crate::operation::list_channels::ListChannelsError)
    #[deprecated(note = "Replaced by ListChannels in the Amazon Chime SDK Messaging Namespace")]
    pub fn list_channels(&self) -> crate::operation::list_channels::builders::ListChannelsFluentBuilder {
        crate::operation::list_channels::builders::ListChannelsFluentBuilder::new(self.handle.clone())
    }
}