aws_sdk_pinpointsmsvoicev2/operation/update_pool/
builders.rs1pub use crate::operation::update_pool::_update_pool_output::UpdatePoolOutputBuilder;
3
4pub use crate::operation::update_pool::_update_pool_input::UpdatePoolInputBuilder;
5
6impl crate::operation::update_pool::builders::UpdatePoolInputBuilder {
7 pub async fn send_with(
9 self,
10 client: &crate::Client,
11 ) -> ::std::result::Result<
12 crate::operation::update_pool::UpdatePoolOutput,
13 ::aws_smithy_runtime_api::client::result::SdkError<
14 crate::operation::update_pool::UpdatePoolError,
15 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16 >,
17 > {
18 let mut fluent_builder = client.update_pool();
19 fluent_builder.inner = self;
20 fluent_builder.send().await
21 }
22}
23#[derive(::std::clone::Clone, ::std::fmt::Debug)]
27pub struct UpdatePoolFluentBuilder {
28 handle: ::std::sync::Arc<crate::client::Handle>,
29 inner: crate::operation::update_pool::builders::UpdatePoolInputBuilder,
30 config_override: ::std::option::Option<crate::config::Builder>,
31}
32impl
33 crate::client::customize::internal::CustomizableSend<
34 crate::operation::update_pool::UpdatePoolOutput,
35 crate::operation::update_pool::UpdatePoolError,
36 > for UpdatePoolFluentBuilder
37{
38 fn send(
39 self,
40 config_override: crate::config::Builder,
41 ) -> crate::client::customize::internal::BoxFuture<
42 crate::client::customize::internal::SendResult<
43 crate::operation::update_pool::UpdatePoolOutput,
44 crate::operation::update_pool::UpdatePoolError,
45 >,
46 > {
47 ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
48 }
49}
50impl UpdatePoolFluentBuilder {
51 pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
53 Self {
54 handle,
55 inner: ::std::default::Default::default(),
56 config_override: ::std::option::Option::None,
57 }
58 }
59 pub fn as_input(&self) -> &crate::operation::update_pool::builders::UpdatePoolInputBuilder {
61 &self.inner
62 }
63 pub async fn send(
72 self,
73 ) -> ::std::result::Result<
74 crate::operation::update_pool::UpdatePoolOutput,
75 ::aws_smithy_runtime_api::client::result::SdkError<
76 crate::operation::update_pool::UpdatePoolError,
77 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
78 >,
79 > {
80 let input = self
81 .inner
82 .build()
83 .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
84 let runtime_plugins = crate::operation::update_pool::UpdatePool::operation_runtime_plugins(
85 self.handle.runtime_plugins.clone(),
86 &self.handle.conf,
87 self.config_override,
88 );
89 crate::operation::update_pool::UpdatePool::orchestrate(&runtime_plugins, input).await
90 }
91
92 pub fn customize(
94 self,
95 ) -> crate::client::customize::CustomizableOperation<
96 crate::operation::update_pool::UpdatePoolOutput,
97 crate::operation::update_pool::UpdatePoolError,
98 Self,
99 > {
100 crate::client::customize::CustomizableOperation::new(self)
101 }
102 pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
103 self.set_config_override(::std::option::Option::Some(config_override.into()));
104 self
105 }
106
107 pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
108 self.config_override = config_override;
109 self
110 }
111 pub fn pool_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
115 self.inner = self.inner.pool_id(input.into());
116 self
117 }
118 pub fn set_pool_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
122 self.inner = self.inner.set_pool_id(input);
123 self
124 }
125 pub fn get_pool_id(&self) -> &::std::option::Option<::std::string::String> {
129 self.inner.get_pool_id()
130 }
131 pub fn two_way_enabled(mut self, input: bool) -> Self {
133 self.inner = self.inner.two_way_enabled(input);
134 self
135 }
136 pub fn set_two_way_enabled(mut self, input: ::std::option::Option<bool>) -> Self {
138 self.inner = self.inner.set_two_way_enabled(input);
139 self
140 }
141 pub fn get_two_way_enabled(&self) -> &::std::option::Option<bool> {
143 self.inner.get_two_way_enabled()
144 }
145 pub fn two_way_channel_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
147 self.inner = self.inner.two_way_channel_arn(input.into());
148 self
149 }
150 pub fn set_two_way_channel_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
152 self.inner = self.inner.set_two_way_channel_arn(input);
153 self
154 }
155 pub fn get_two_way_channel_arn(&self) -> &::std::option::Option<::std::string::String> {
157 self.inner.get_two_way_channel_arn()
158 }
159 pub fn two_way_channel_role(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
161 self.inner = self.inner.two_way_channel_role(input.into());
162 self
163 }
164 pub fn set_two_way_channel_role(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
166 self.inner = self.inner.set_two_way_channel_role(input);
167 self
168 }
169 pub fn get_two_way_channel_role(&self) -> &::std::option::Option<::std::string::String> {
171 self.inner.get_two_way_channel_role()
172 }
173 pub fn self_managed_opt_outs_enabled(mut self, input: bool) -> Self {
175 self.inner = self.inner.self_managed_opt_outs_enabled(input);
176 self
177 }
178 pub fn set_self_managed_opt_outs_enabled(mut self, input: ::std::option::Option<bool>) -> Self {
180 self.inner = self.inner.set_self_managed_opt_outs_enabled(input);
181 self
182 }
183 pub fn get_self_managed_opt_outs_enabled(&self) -> &::std::option::Option<bool> {
185 self.inner.get_self_managed_opt_outs_enabled()
186 }
187 pub fn opt_out_list_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
191 self.inner = self.inner.opt_out_list_name(input.into());
192 self
193 }
194 pub fn set_opt_out_list_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
198 self.inner = self.inner.set_opt_out_list_name(input);
199 self
200 }
201 pub fn get_opt_out_list_name(&self) -> &::std::option::Option<::std::string::String> {
205 self.inner.get_opt_out_list_name()
206 }
207 pub fn shared_routes_enabled(mut self, input: bool) -> Self {
209 self.inner = self.inner.shared_routes_enabled(input);
210 self
211 }
212 pub fn set_shared_routes_enabled(mut self, input: ::std::option::Option<bool>) -> Self {
214 self.inner = self.inner.set_shared_routes_enabled(input);
215 self
216 }
217 pub fn get_shared_routes_enabled(&self) -> &::std::option::Option<bool> {
219 self.inner.get_shared_routes_enabled()
220 }
221 pub fn deletion_protection_enabled(mut self, input: bool) -> Self {
223 self.inner = self.inner.deletion_protection_enabled(input);
224 self
225 }
226 pub fn set_deletion_protection_enabled(mut self, input: ::std::option::Option<bool>) -> Self {
228 self.inner = self.inner.set_deletion_protection_enabled(input);
229 self
230 }
231 pub fn get_deletion_protection_enabled(&self) -> &::std::option::Option<bool> {
233 self.inner.get_deletion_protection_enabled()
234 }
235}