aws_sdk_ssmcontacts/client/
list_contact_channels.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 [`ListContactChannels`](crate::operation::list_contact_channels::builders::ListContactChannelsFluentBuilder) operation.
4    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_contact_channels::builders::ListContactChannelsFluentBuilder::into_paginator).
5    ///
6    /// - The fluent builder is configurable:
7    ///   - [`contact_id(impl Into<String>)`](crate::operation::list_contact_channels::builders::ListContactChannelsFluentBuilder::contact_id) / [`set_contact_id(Option<String>)`](crate::operation::list_contact_channels::builders::ListContactChannelsFluentBuilder::set_contact_id):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the contact.</p><br>
8    ///   - [`next_token(impl Into<String>)`](crate::operation::list_contact_channels::builders::ListContactChannelsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_contact_channels::builders::ListContactChannelsFluentBuilder::set_next_token):<br>required: **false**<br><p>The pagination token to continue to the next page of results.</p><br>
9    ///   - [`max_results(i32)`](crate::operation::list_contact_channels::builders::ListContactChannelsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_contact_channels::builders::ListContactChannelsFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of contact channels per page.</p><br>
10    /// - On success, responds with [`ListContactChannelsOutput`](crate::operation::list_contact_channels::ListContactChannelsOutput) with field(s):
11    ///   - [`next_token(Option<String>)`](crate::operation::list_contact_channels::ListContactChannelsOutput::next_token): <p>The pagination token to continue to the next page of results.</p>
12    ///   - [`contact_channels(Vec::<ContactChannel>)`](crate::operation::list_contact_channels::ListContactChannelsOutput::contact_channels): <p>A list of contact channels related to the specified contact.</p>
13    /// - On failure, responds with [`SdkError<ListContactChannelsError>`](crate::operation::list_contact_channels::ListContactChannelsError)
14    pub fn list_contact_channels(&self) -> crate::operation::list_contact_channels::builders::ListContactChannelsFluentBuilder {
15        crate::operation::list_contact_channels::builders::ListContactChannelsFluentBuilder::new(self.handle.clone())
16    }
17}