aws_sdk_customerprofiles/operation/create_profile/
builders.rs1pub use crate::operation::create_profile::_create_profile_output::CreateProfileOutputBuilder;
3
4pub use crate::operation::create_profile::_create_profile_input::CreateProfileInputBuilder;
5
6impl crate::operation::create_profile::builders::CreateProfileInputBuilder {
7 pub async fn send_with(
9 self,
10 client: &crate::Client,
11 ) -> ::std::result::Result<
12 crate::operation::create_profile::CreateProfileOutput,
13 ::aws_smithy_runtime_api::client::result::SdkError<
14 crate::operation::create_profile::CreateProfileError,
15 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16 >,
17 > {
18 let mut fluent_builder = client.create_profile();
19 fluent_builder.inner = self;
20 fluent_builder.send().await
21 }
22}
23#[derive(::std::clone::Clone, ::std::fmt::Debug)]
28pub struct CreateProfileFluentBuilder {
29 handle: ::std::sync::Arc<crate::client::Handle>,
30 inner: crate::operation::create_profile::builders::CreateProfileInputBuilder,
31 config_override: ::std::option::Option<crate::config::Builder>,
32}
33impl
34 crate::client::customize::internal::CustomizableSend<
35 crate::operation::create_profile::CreateProfileOutput,
36 crate::operation::create_profile::CreateProfileError,
37 > for CreateProfileFluentBuilder
38{
39 fn send(
40 self,
41 config_override: crate::config::Builder,
42 ) -> crate::client::customize::internal::BoxFuture<
43 crate::client::customize::internal::SendResult<
44 crate::operation::create_profile::CreateProfileOutput,
45 crate::operation::create_profile::CreateProfileError,
46 >,
47 > {
48 ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
49 }
50}
51impl CreateProfileFluentBuilder {
52 pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
54 Self {
55 handle,
56 inner: ::std::default::Default::default(),
57 config_override: ::std::option::Option::None,
58 }
59 }
60 pub fn as_input(&self) -> &crate::operation::create_profile::builders::CreateProfileInputBuilder {
62 &self.inner
63 }
64 pub async fn send(
73 self,
74 ) -> ::std::result::Result<
75 crate::operation::create_profile::CreateProfileOutput,
76 ::aws_smithy_runtime_api::client::result::SdkError<
77 crate::operation::create_profile::CreateProfileError,
78 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
79 >,
80 > {
81 let input = self
82 .inner
83 .build()
84 .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
85 let runtime_plugins = crate::operation::create_profile::CreateProfile::operation_runtime_plugins(
86 self.handle.runtime_plugins.clone(),
87 &self.handle.conf,
88 self.config_override,
89 );
90 crate::operation::create_profile::CreateProfile::orchestrate(&runtime_plugins, input).await
91 }
92
93 pub fn customize(
95 self,
96 ) -> crate::client::customize::CustomizableOperation<
97 crate::operation::create_profile::CreateProfileOutput,
98 crate::operation::create_profile::CreateProfileError,
99 Self,
100 > {
101 crate::client::customize::CustomizableOperation::new(self)
102 }
103 pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
104 self.set_config_override(::std::option::Option::Some(config_override.into()));
105 self
106 }
107
108 pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
109 self.config_override = config_override;
110 self
111 }
112 pub fn domain_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
114 self.inner = self.inner.domain_name(input.into());
115 self
116 }
117 pub fn set_domain_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
119 self.inner = self.inner.set_domain_name(input);
120 self
121 }
122 pub fn get_domain_name(&self) -> &::std::option::Option<::std::string::String> {
124 self.inner.get_domain_name()
125 }
126 pub fn account_number(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
128 self.inner = self.inner.account_number(input.into());
129 self
130 }
131 pub fn set_account_number(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
133 self.inner = self.inner.set_account_number(input);
134 self
135 }
136 pub fn get_account_number(&self) -> &::std::option::Option<::std::string::String> {
138 self.inner.get_account_number()
139 }
140 pub fn additional_information(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
142 self.inner = self.inner.additional_information(input.into());
143 self
144 }
145 pub fn set_additional_information(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
147 self.inner = self.inner.set_additional_information(input);
148 self
149 }
150 pub fn get_additional_information(&self) -> &::std::option::Option<::std::string::String> {
152 self.inner.get_additional_information()
153 }
154 pub fn party_type(mut self, input: crate::types::PartyType) -> Self {
156 self.inner = self.inner.party_type(input);
157 self
158 }
159 pub fn set_party_type(mut self, input: ::std::option::Option<crate::types::PartyType>) -> Self {
161 self.inner = self.inner.set_party_type(input);
162 self
163 }
164 pub fn get_party_type(&self) -> &::std::option::Option<crate::types::PartyType> {
166 self.inner.get_party_type()
167 }
168 pub fn business_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
170 self.inner = self.inner.business_name(input.into());
171 self
172 }
173 pub fn set_business_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
175 self.inner = self.inner.set_business_name(input);
176 self
177 }
178 pub fn get_business_name(&self) -> &::std::option::Option<::std::string::String> {
180 self.inner.get_business_name()
181 }
182 pub fn first_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
184 self.inner = self.inner.first_name(input.into());
185 self
186 }
187 pub fn set_first_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
189 self.inner = self.inner.set_first_name(input);
190 self
191 }
192 pub fn get_first_name(&self) -> &::std::option::Option<::std::string::String> {
194 self.inner.get_first_name()
195 }
196 pub fn middle_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
198 self.inner = self.inner.middle_name(input.into());
199 self
200 }
201 pub fn set_middle_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
203 self.inner = self.inner.set_middle_name(input);
204 self
205 }
206 pub fn get_middle_name(&self) -> &::std::option::Option<::std::string::String> {
208 self.inner.get_middle_name()
209 }
210 pub fn last_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
212 self.inner = self.inner.last_name(input.into());
213 self
214 }
215 pub fn set_last_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
217 self.inner = self.inner.set_last_name(input);
218 self
219 }
220 pub fn get_last_name(&self) -> &::std::option::Option<::std::string::String> {
222 self.inner.get_last_name()
223 }
224 pub fn birth_date(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
226 self.inner = self.inner.birth_date(input.into());
227 self
228 }
229 pub fn set_birth_date(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
231 self.inner = self.inner.set_birth_date(input);
232 self
233 }
234 pub fn get_birth_date(&self) -> &::std::option::Option<::std::string::String> {
236 self.inner.get_birth_date()
237 }
238 pub fn gender(mut self, input: crate::types::Gender) -> Self {
240 self.inner = self.inner.gender(input);
241 self
242 }
243 pub fn set_gender(mut self, input: ::std::option::Option<crate::types::Gender>) -> Self {
245 self.inner = self.inner.set_gender(input);
246 self
247 }
248 pub fn get_gender(&self) -> &::std::option::Option<crate::types::Gender> {
250 self.inner.get_gender()
251 }
252 pub fn phone_number(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
254 self.inner = self.inner.phone_number(input.into());
255 self
256 }
257 pub fn set_phone_number(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
259 self.inner = self.inner.set_phone_number(input);
260 self
261 }
262 pub fn get_phone_number(&self) -> &::std::option::Option<::std::string::String> {
264 self.inner.get_phone_number()
265 }
266 pub fn mobile_phone_number(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
268 self.inner = self.inner.mobile_phone_number(input.into());
269 self
270 }
271 pub fn set_mobile_phone_number(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
273 self.inner = self.inner.set_mobile_phone_number(input);
274 self
275 }
276 pub fn get_mobile_phone_number(&self) -> &::std::option::Option<::std::string::String> {
278 self.inner.get_mobile_phone_number()
279 }
280 pub fn home_phone_number(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
282 self.inner = self.inner.home_phone_number(input.into());
283 self
284 }
285 pub fn set_home_phone_number(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
287 self.inner = self.inner.set_home_phone_number(input);
288 self
289 }
290 pub fn get_home_phone_number(&self) -> &::std::option::Option<::std::string::String> {
292 self.inner.get_home_phone_number()
293 }
294 pub fn business_phone_number(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
296 self.inner = self.inner.business_phone_number(input.into());
297 self
298 }
299 pub fn set_business_phone_number(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
301 self.inner = self.inner.set_business_phone_number(input);
302 self
303 }
304 pub fn get_business_phone_number(&self) -> &::std::option::Option<::std::string::String> {
306 self.inner.get_business_phone_number()
307 }
308 pub fn email_address(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
310 self.inner = self.inner.email_address(input.into());
311 self
312 }
313 pub fn set_email_address(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
315 self.inner = self.inner.set_email_address(input);
316 self
317 }
318 pub fn get_email_address(&self) -> &::std::option::Option<::std::string::String> {
320 self.inner.get_email_address()
321 }
322 pub fn personal_email_address(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
324 self.inner = self.inner.personal_email_address(input.into());
325 self
326 }
327 pub fn set_personal_email_address(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
329 self.inner = self.inner.set_personal_email_address(input);
330 self
331 }
332 pub fn get_personal_email_address(&self) -> &::std::option::Option<::std::string::String> {
334 self.inner.get_personal_email_address()
335 }
336 pub fn business_email_address(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
338 self.inner = self.inner.business_email_address(input.into());
339 self
340 }
341 pub fn set_business_email_address(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
343 self.inner = self.inner.set_business_email_address(input);
344 self
345 }
346 pub fn get_business_email_address(&self) -> &::std::option::Option<::std::string::String> {
348 self.inner.get_business_email_address()
349 }
350 pub fn address(mut self, input: crate::types::Address) -> Self {
352 self.inner = self.inner.address(input);
353 self
354 }
355 pub fn set_address(mut self, input: ::std::option::Option<crate::types::Address>) -> Self {
357 self.inner = self.inner.set_address(input);
358 self
359 }
360 pub fn get_address(&self) -> &::std::option::Option<crate::types::Address> {
362 self.inner.get_address()
363 }
364 pub fn shipping_address(mut self, input: crate::types::Address) -> Self {
366 self.inner = self.inner.shipping_address(input);
367 self
368 }
369 pub fn set_shipping_address(mut self, input: ::std::option::Option<crate::types::Address>) -> Self {
371 self.inner = self.inner.set_shipping_address(input);
372 self
373 }
374 pub fn get_shipping_address(&self) -> &::std::option::Option<crate::types::Address> {
376 self.inner.get_shipping_address()
377 }
378 pub fn mailing_address(mut self, input: crate::types::Address) -> Self {
380 self.inner = self.inner.mailing_address(input);
381 self
382 }
383 pub fn set_mailing_address(mut self, input: ::std::option::Option<crate::types::Address>) -> Self {
385 self.inner = self.inner.set_mailing_address(input);
386 self
387 }
388 pub fn get_mailing_address(&self) -> &::std::option::Option<crate::types::Address> {
390 self.inner.get_mailing_address()
391 }
392 pub fn billing_address(mut self, input: crate::types::Address) -> Self {
394 self.inner = self.inner.billing_address(input);
395 self
396 }
397 pub fn set_billing_address(mut self, input: ::std::option::Option<crate::types::Address>) -> Self {
399 self.inner = self.inner.set_billing_address(input);
400 self
401 }
402 pub fn get_billing_address(&self) -> &::std::option::Option<crate::types::Address> {
404 self.inner.get_billing_address()
405 }
406 pub fn attributes(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
413 self.inner = self.inner.attributes(k.into(), v.into());
414 self
415 }
416 pub fn set_attributes(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>) -> Self {
418 self.inner = self.inner.set_attributes(input);
419 self
420 }
421 pub fn get_attributes(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
423 self.inner.get_attributes()
424 }
425 pub fn party_type_string(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
427 self.inner = self.inner.party_type_string(input.into());
428 self
429 }
430 pub fn set_party_type_string(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
432 self.inner = self.inner.set_party_type_string(input);
433 self
434 }
435 pub fn get_party_type_string(&self) -> &::std::option::Option<::std::string::String> {
437 self.inner.get_party_type_string()
438 }
439 pub fn gender_string(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
441 self.inner = self.inner.gender_string(input.into());
442 self
443 }
444 pub fn set_gender_string(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
446 self.inner = self.inner.set_gender_string(input);
447 self
448 }
449 pub fn get_gender_string(&self) -> &::std::option::Option<::std::string::String> {
451 self.inner.get_gender_string()
452 }
453 pub fn profile_type(mut self, input: crate::types::ProfileType) -> Self {
455 self.inner = self.inner.profile_type(input);
456 self
457 }
458 pub fn set_profile_type(mut self, input: ::std::option::Option<crate::types::ProfileType>) -> Self {
460 self.inner = self.inner.set_profile_type(input);
461 self
462 }
463 pub fn get_profile_type(&self) -> &::std::option::Option<crate::types::ProfileType> {
465 self.inner.get_profile_type()
466 }
467 pub fn engagement_preferences(mut self, input: crate::types::EngagementPreferences) -> Self {
469 self.inner = self.inner.engagement_preferences(input);
470 self
471 }
472 pub fn set_engagement_preferences(mut self, input: ::std::option::Option<crate::types::EngagementPreferences>) -> Self {
474 self.inner = self.inner.set_engagement_preferences(input);
475 self
476 }
477 pub fn get_engagement_preferences(&self) -> &::std::option::Option<crate::types::EngagementPreferences> {
479 self.inner.get_engagement_preferences()
480 }
481}