aws_sdk_workmail/operation/update_user/
builders.rs1pub use crate::operation::update_user::_update_user_output::UpdateUserOutputBuilder;
3
4pub use crate::operation::update_user::_update_user_input::UpdateUserInputBuilder;
5
6impl crate::operation::update_user::builders::UpdateUserInputBuilder {
7 pub async fn send_with(
9 self,
10 client: &crate::Client,
11 ) -> ::std::result::Result<
12 crate::operation::update_user::UpdateUserOutput,
13 ::aws_smithy_runtime_api::client::result::SdkError<
14 crate::operation::update_user::UpdateUserError,
15 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16 >,
17 > {
18 let mut fluent_builder = client.update_user();
19 fluent_builder.inner = self;
20 fluent_builder.send().await
21 }
22}
23#[derive(::std::clone::Clone, ::std::fmt::Debug)]
27pub struct UpdateUserFluentBuilder {
28 handle: ::std::sync::Arc<crate::client::Handle>,
29 inner: crate::operation::update_user::builders::UpdateUserInputBuilder,
30 config_override: ::std::option::Option<crate::config::Builder>,
31}
32impl
33 crate::client::customize::internal::CustomizableSend<
34 crate::operation::update_user::UpdateUserOutput,
35 crate::operation::update_user::UpdateUserError,
36 > for UpdateUserFluentBuilder
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_user::UpdateUserOutput,
44 crate::operation::update_user::UpdateUserError,
45 >,
46 > {
47 ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
48 }
49}
50impl UpdateUserFluentBuilder {
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_user::builders::UpdateUserInputBuilder {
61 &self.inner
62 }
63 pub async fn send(
72 self,
73 ) -> ::std::result::Result<
74 crate::operation::update_user::UpdateUserOutput,
75 ::aws_smithy_runtime_api::client::result::SdkError<
76 crate::operation::update_user::UpdateUserError,
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_user::UpdateUser::operation_runtime_plugins(
85 self.handle.runtime_plugins.clone(),
86 &self.handle.conf,
87 self.config_override,
88 );
89 crate::operation::update_user::UpdateUser::orchestrate(&runtime_plugins, input).await
90 }
91
92 pub fn customize(
94 self,
95 ) -> crate::client::customize::CustomizableOperation<
96 crate::operation::update_user::UpdateUserOutput,
97 crate::operation::update_user::UpdateUserError,
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 organization_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
113 self.inner = self.inner.organization_id(input.into());
114 self
115 }
116 pub fn set_organization_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
118 self.inner = self.inner.set_organization_id(input);
119 self
120 }
121 pub fn get_organization_id(&self) -> &::std::option::Option<::std::string::String> {
123 self.inner.get_organization_id()
124 }
125 pub fn user_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
136 self.inner = self.inner.user_id(input.into());
137 self
138 }
139 pub fn set_user_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
150 self.inner = self.inner.set_user_id(input);
151 self
152 }
153 pub fn get_user_id(&self) -> &::std::option::Option<::std::string::String> {
164 self.inner.get_user_id()
165 }
166 pub fn role(mut self, input: crate::types::UserRole) -> Self {
169 self.inner = self.inner.role(input);
170 self
171 }
172 pub fn set_role(mut self, input: ::std::option::Option<crate::types::UserRole>) -> Self {
175 self.inner = self.inner.set_role(input);
176 self
177 }
178 pub fn get_role(&self) -> &::std::option::Option<crate::types::UserRole> {
181 self.inner.get_role()
182 }
183 pub fn display_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
185 self.inner = self.inner.display_name(input.into());
186 self
187 }
188 pub fn set_display_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
190 self.inner = self.inner.set_display_name(input);
191 self
192 }
193 pub fn get_display_name(&self) -> &::std::option::Option<::std::string::String> {
195 self.inner.get_display_name()
196 }
197 pub fn first_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
199 self.inner = self.inner.first_name(input.into());
200 self
201 }
202 pub fn set_first_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
204 self.inner = self.inner.set_first_name(input);
205 self
206 }
207 pub fn get_first_name(&self) -> &::std::option::Option<::std::string::String> {
209 self.inner.get_first_name()
210 }
211 pub fn last_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
213 self.inner = self.inner.last_name(input.into());
214 self
215 }
216 pub fn set_last_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
218 self.inner = self.inner.set_last_name(input);
219 self
220 }
221 pub fn get_last_name(&self) -> &::std::option::Option<::std::string::String> {
223 self.inner.get_last_name()
224 }
225 pub fn hidden_from_global_address_list(mut self, input: bool) -> Self {
227 self.inner = self.inner.hidden_from_global_address_list(input);
228 self
229 }
230 pub fn set_hidden_from_global_address_list(mut self, input: ::std::option::Option<bool>) -> Self {
232 self.inner = self.inner.set_hidden_from_global_address_list(input);
233 self
234 }
235 pub fn get_hidden_from_global_address_list(&self) -> &::std::option::Option<bool> {
237 self.inner.get_hidden_from_global_address_list()
238 }
239 pub fn initials(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
241 self.inner = self.inner.initials(input.into());
242 self
243 }
244 pub fn set_initials(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
246 self.inner = self.inner.set_initials(input);
247 self
248 }
249 pub fn get_initials(&self) -> &::std::option::Option<::std::string::String> {
251 self.inner.get_initials()
252 }
253 pub fn telephone(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
255 self.inner = self.inner.telephone(input.into());
256 self
257 }
258 pub fn set_telephone(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
260 self.inner = self.inner.set_telephone(input);
261 self
262 }
263 pub fn get_telephone(&self) -> &::std::option::Option<::std::string::String> {
265 self.inner.get_telephone()
266 }
267 pub fn street(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
269 self.inner = self.inner.street(input.into());
270 self
271 }
272 pub fn set_street(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
274 self.inner = self.inner.set_street(input);
275 self
276 }
277 pub fn get_street(&self) -> &::std::option::Option<::std::string::String> {
279 self.inner.get_street()
280 }
281 pub fn job_title(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
283 self.inner = self.inner.job_title(input.into());
284 self
285 }
286 pub fn set_job_title(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
288 self.inner = self.inner.set_job_title(input);
289 self
290 }
291 pub fn get_job_title(&self) -> &::std::option::Option<::std::string::String> {
293 self.inner.get_job_title()
294 }
295 pub fn city(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
297 self.inner = self.inner.city(input.into());
298 self
299 }
300 pub fn set_city(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
302 self.inner = self.inner.set_city(input);
303 self
304 }
305 pub fn get_city(&self) -> &::std::option::Option<::std::string::String> {
307 self.inner.get_city()
308 }
309 pub fn company(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
311 self.inner = self.inner.company(input.into());
312 self
313 }
314 pub fn set_company(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
316 self.inner = self.inner.set_company(input);
317 self
318 }
319 pub fn get_company(&self) -> &::std::option::Option<::std::string::String> {
321 self.inner.get_company()
322 }
323 pub fn zip_code(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
325 self.inner = self.inner.zip_code(input.into());
326 self
327 }
328 pub fn set_zip_code(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
330 self.inner = self.inner.set_zip_code(input);
331 self
332 }
333 pub fn get_zip_code(&self) -> &::std::option::Option<::std::string::String> {
335 self.inner.get_zip_code()
336 }
337 pub fn department(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
339 self.inner = self.inner.department(input.into());
340 self
341 }
342 pub fn set_department(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
344 self.inner = self.inner.set_department(input);
345 self
346 }
347 pub fn get_department(&self) -> &::std::option::Option<::std::string::String> {
349 self.inner.get_department()
350 }
351 pub fn country(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
353 self.inner = self.inner.country(input.into());
354 self
355 }
356 pub fn set_country(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
358 self.inner = self.inner.set_country(input);
359 self
360 }
361 pub fn get_country(&self) -> &::std::option::Option<::std::string::String> {
363 self.inner.get_country()
364 }
365 pub fn office(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
367 self.inner = self.inner.office(input.into());
368 self
369 }
370 pub fn set_office(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
372 self.inner = self.inner.set_office(input);
373 self
374 }
375 pub fn get_office(&self) -> &::std::option::Option<::std::string::String> {
377 self.inner.get_office()
378 }
379 pub fn identity_provider_user_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
381 self.inner = self.inner.identity_provider_user_id(input.into());
382 self
383 }
384 pub fn set_identity_provider_user_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
386 self.inner = self.inner.set_identity_provider_user_id(input);
387 self
388 }
389 pub fn get_identity_provider_user_id(&self) -> &::std::option::Option<::std::string::String> {
391 self.inner.get_identity_provider_user_id()
392 }
393}