aws_sdk_chimesdkmessaging/operation/list_channels/
builders.rs1pub use crate::operation::list_channels::_list_channels_output::ListChannelsOutputBuilder;
3
4pub use crate::operation::list_channels::_list_channels_input::ListChannelsInputBuilder;
5
6impl crate::operation::list_channels::builders::ListChannelsInputBuilder {
7 pub async fn send_with(
9 self,
10 client: &crate::Client,
11 ) -> ::std::result::Result<
12 crate::operation::list_channels::ListChannelsOutput,
13 ::aws_smithy_runtime_api::client::result::SdkError<
14 crate::operation::list_channels::ListChannelsError,
15 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16 >,
17 > {
18 let mut fluent_builder = client.list_channels();
19 fluent_builder.inner = self;
20 fluent_builder.send().await
21 }
22}
23#[derive(::std::clone::Clone, ::std::fmt::Debug)]
36pub struct ListChannelsFluentBuilder {
37 handle: ::std::sync::Arc<crate::client::Handle>,
38 inner: crate::operation::list_channels::builders::ListChannelsInputBuilder,
39 config_override: ::std::option::Option<crate::config::Builder>,
40}
41impl
42 crate::client::customize::internal::CustomizableSend<
43 crate::operation::list_channels::ListChannelsOutput,
44 crate::operation::list_channels::ListChannelsError,
45 > for ListChannelsFluentBuilder
46{
47 fn send(
48 self,
49 config_override: crate::config::Builder,
50 ) -> crate::client::customize::internal::BoxFuture<
51 crate::client::customize::internal::SendResult<
52 crate::operation::list_channels::ListChannelsOutput,
53 crate::operation::list_channels::ListChannelsError,
54 >,
55 > {
56 ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
57 }
58}
59impl ListChannelsFluentBuilder {
60 pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
62 Self {
63 handle,
64 inner: ::std::default::Default::default(),
65 config_override: ::std::option::Option::None,
66 }
67 }
68 pub fn as_input(&self) -> &crate::operation::list_channels::builders::ListChannelsInputBuilder {
70 &self.inner
71 }
72 pub async fn send(
81 self,
82 ) -> ::std::result::Result<
83 crate::operation::list_channels::ListChannelsOutput,
84 ::aws_smithy_runtime_api::client::result::SdkError<
85 crate::operation::list_channels::ListChannelsError,
86 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
87 >,
88 > {
89 let input = self
90 .inner
91 .build()
92 .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
93 let runtime_plugins = crate::operation::list_channels::ListChannels::operation_runtime_plugins(
94 self.handle.runtime_plugins.clone(),
95 &self.handle.conf,
96 self.config_override,
97 );
98 crate::operation::list_channels::ListChannels::orchestrate(&runtime_plugins, input).await
99 }
100
101 pub fn customize(
103 self,
104 ) -> crate::client::customize::CustomizableOperation<
105 crate::operation::list_channels::ListChannelsOutput,
106 crate::operation::list_channels::ListChannelsError,
107 Self,
108 > {
109 crate::client::customize::CustomizableOperation::new(self)
110 }
111 pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
112 self.set_config_override(::std::option::Option::Some(config_override.into()));
113 self
114 }
115
116 pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
117 self.config_override = config_override;
118 self
119 }
120 pub fn into_paginator(self) -> crate::operation::list_channels::paginator::ListChannelsPaginator {
124 crate::operation::list_channels::paginator::ListChannelsPaginator::new(self.handle, self.inner)
125 }
126 pub fn app_instance_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
128 self.inner = self.inner.app_instance_arn(input.into());
129 self
130 }
131 pub fn set_app_instance_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
133 self.inner = self.inner.set_app_instance_arn(input);
134 self
135 }
136 pub fn get_app_instance_arn(&self) -> &::std::option::Option<::std::string::String> {
138 self.inner.get_app_instance_arn()
139 }
140 pub fn privacy(mut self, input: crate::types::ChannelPrivacy) -> Self {
142 self.inner = self.inner.privacy(input);
143 self
144 }
145 pub fn set_privacy(mut self, input: ::std::option::Option<crate::types::ChannelPrivacy>) -> Self {
147 self.inner = self.inner.set_privacy(input);
148 self
149 }
150 pub fn get_privacy(&self) -> &::std::option::Option<crate::types::ChannelPrivacy> {
152 self.inner.get_privacy()
153 }
154 pub fn max_results(mut self, input: i32) -> Self {
156 self.inner = self.inner.max_results(input);
157 self
158 }
159 pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
161 self.inner = self.inner.set_max_results(input);
162 self
163 }
164 pub fn get_max_results(&self) -> &::std::option::Option<i32> {
166 self.inner.get_max_results()
167 }
168 pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
170 self.inner = self.inner.next_token(input.into());
171 self
172 }
173 pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
175 self.inner = self.inner.set_next_token(input);
176 self
177 }
178 pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
180 self.inner.get_next_token()
181 }
182 pub fn chime_bearer(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
184 self.inner = self.inner.chime_bearer(input.into());
185 self
186 }
187 pub fn set_chime_bearer(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
189 self.inner = self.inner.set_chime_bearer(input);
190 self
191 }
192 pub fn get_chime_bearer(&self) -> &::std::option::Option<::std::string::String> {
194 self.inner.get_chime_bearer()
195 }
196}