aws-sdk-customerprofiles 1.118.0

AWS SDK for Amazon Connect Customer Profiles
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>The standard profile of a customer.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
pub struct Profile {
    /// <p>The unique identifier of a customer profile.</p>
    pub profile_id: ::std::option::Option<::std::string::String>,
    /// <p>An account number that you have assigned to the customer.</p>
    pub account_number: ::std::option::Option<::std::string::String>,
    /// <p>Any additional information relevant to the customer’s profile.</p>
    pub additional_information: ::std::option::Option<::std::string::String>,
    /// <p>The type of profile used to describe the customer.</p>
    pub party_type: ::std::option::Option<crate::types::PartyType>,
    /// <p>The name of the customer’s business.</p>
    pub business_name: ::std::option::Option<::std::string::String>,
    /// <p>The customer’s first name.</p>
    pub first_name: ::std::option::Option<::std::string::String>,
    /// <p>The customer’s middle name.</p>
    pub middle_name: ::std::option::Option<::std::string::String>,
    /// <p>The customer’s last name.</p>
    pub last_name: ::std::option::Option<::std::string::String>,
    /// <p>The customer’s birth date.</p>
    pub birth_date: ::std::option::Option<::std::string::String>,
    /// <p>The gender with which the customer identifies.</p>
    pub gender: ::std::option::Option<crate::types::Gender>,
    /// <p>The customer's phone number, which has not been specified as a mobile, home, or business number.</p>
    pub phone_number: ::std::option::Option<::std::string::String>,
    /// <p>The customer’s mobile phone number.</p>
    pub mobile_phone_number: ::std::option::Option<::std::string::String>,
    /// <p>The customer’s home phone number.</p>
    pub home_phone_number: ::std::option::Option<::std::string::String>,
    /// <p>The customer’s home phone number.</p>
    pub business_phone_number: ::std::option::Option<::std::string::String>,
    /// <p>The customer’s email address, which has not been specified as a personal or business address.</p>
    pub email_address: ::std::option::Option<::std::string::String>,
    /// <p>The customer’s personal email address.</p>
    pub personal_email_address: ::std::option::Option<::std::string::String>,
    /// <p>The customer’s business email address.</p>
    pub business_email_address: ::std::option::Option<::std::string::String>,
    /// <p>A generic address associated with the customer that is not mailing, shipping, or billing.</p>
    pub address: ::std::option::Option<crate::types::Address>,
    /// <p>The customer’s shipping address.</p>
    pub shipping_address: ::std::option::Option<crate::types::Address>,
    /// <p>The customer’s mailing address.</p>
    pub mailing_address: ::std::option::Option<crate::types::Address>,
    /// <p>The customer’s billing address.</p>
    pub billing_address: ::std::option::Option<crate::types::Address>,
    /// <p>A key value pair of attributes of a customer profile.</p>
    pub attributes: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
    /// <p>A list of items used to find a profile returned in a <a href="https://docs.aws.amazon.com/customerprofiles/latest/APIReference/API_SearchProfiles.html">SearchProfiles</a> response. An item is a key-value(s) pair that matches an attribute in the profile.</p>
    /// <p>If the optional <code>AdditionalSearchKeys</code> parameter was included in the <a href="https://docs.aws.amazon.com/customerprofiles/latest/APIReference/API_SearchProfiles.html">SearchProfiles</a> request, the <code>FoundByItems</code> list should be interpreted based on the <code>LogicalOperator</code> used in the request:</p>
    /// <ul>
    /// <li>
    /// <p><code>AND</code> - The profile included in the response matched all of the search keys specified in the request. The <code>FoundByItems</code> will include all of the key-value(s) pairs that were specified in the request (as this is a requirement of <code>AND</code> search logic).</p></li>
    /// <li>
    /// <p><code>OR</code> - The profile included in the response matched at least one of the search keys specified in the request. The <code>FoundByItems</code> will include each of the key-value(s) pairs that the profile was found by.</p></li>
    /// </ul>
    /// <p>The <code>OR</code> relationship is the default behavior if the <code>LogicalOperator</code> parameter is not included in the <a href="https://docs.aws.amazon.com/customerprofiles/latest/APIReference/API_SearchProfiles.html">SearchProfiles</a> request.</p>
    pub found_by_items: ::std::option::Option<::std::vec::Vec<crate::types::FoundByKeyValue>>,
    /// <p>An alternative to PartyType which accepts any string as input.</p>
    pub party_type_string: ::std::option::Option<::std::string::String>,
    /// <p>An alternative to Gender which accepts any string as input.</p>
    pub gender_string: ::std::option::Option<::std::string::String>,
    /// <p>The type of the profile.</p>
    pub profile_type: ::std::option::Option<crate::types::ProfileType>,
    /// <p>The customer or account’s engagement preferences.</p>
    pub engagement_preferences: ::std::option::Option<crate::types::EngagementPreferences>,
}
impl Profile {
    /// <p>The unique identifier of a customer profile.</p>
    pub fn profile_id(&self) -> ::std::option::Option<&str> {
        self.profile_id.as_deref()
    }
    /// <p>An account number that you have assigned to the customer.</p>
    pub fn account_number(&self) -> ::std::option::Option<&str> {
        self.account_number.as_deref()
    }
    /// <p>Any additional information relevant to the customer’s profile.</p>
    pub fn additional_information(&self) -> ::std::option::Option<&str> {
        self.additional_information.as_deref()
    }
    /// <p>The type of profile used to describe the customer.</p>
    pub fn party_type(&self) -> ::std::option::Option<&crate::types::PartyType> {
        self.party_type.as_ref()
    }
    /// <p>The name of the customer’s business.</p>
    pub fn business_name(&self) -> ::std::option::Option<&str> {
        self.business_name.as_deref()
    }
    /// <p>The customer’s first name.</p>
    pub fn first_name(&self) -> ::std::option::Option<&str> {
        self.first_name.as_deref()
    }
    /// <p>The customer’s middle name.</p>
    pub fn middle_name(&self) -> ::std::option::Option<&str> {
        self.middle_name.as_deref()
    }
    /// <p>The customer’s last name.</p>
    pub fn last_name(&self) -> ::std::option::Option<&str> {
        self.last_name.as_deref()
    }
    /// <p>The customer’s birth date.</p>
    pub fn birth_date(&self) -> ::std::option::Option<&str> {
        self.birth_date.as_deref()
    }
    /// <p>The gender with which the customer identifies.</p>
    pub fn gender(&self) -> ::std::option::Option<&crate::types::Gender> {
        self.gender.as_ref()
    }
    /// <p>The customer's phone number, which has not been specified as a mobile, home, or business number.</p>
    pub fn phone_number(&self) -> ::std::option::Option<&str> {
        self.phone_number.as_deref()
    }
    /// <p>The customer’s mobile phone number.</p>
    pub fn mobile_phone_number(&self) -> ::std::option::Option<&str> {
        self.mobile_phone_number.as_deref()
    }
    /// <p>The customer’s home phone number.</p>
    pub fn home_phone_number(&self) -> ::std::option::Option<&str> {
        self.home_phone_number.as_deref()
    }
    /// <p>The customer’s home phone number.</p>
    pub fn business_phone_number(&self) -> ::std::option::Option<&str> {
        self.business_phone_number.as_deref()
    }
    /// <p>The customer’s email address, which has not been specified as a personal or business address.</p>
    pub fn email_address(&self) -> ::std::option::Option<&str> {
        self.email_address.as_deref()
    }
    /// <p>The customer’s personal email address.</p>
    pub fn personal_email_address(&self) -> ::std::option::Option<&str> {
        self.personal_email_address.as_deref()
    }
    /// <p>The customer’s business email address.</p>
    pub fn business_email_address(&self) -> ::std::option::Option<&str> {
        self.business_email_address.as_deref()
    }
    /// <p>A generic address associated with the customer that is not mailing, shipping, or billing.</p>
    pub fn address(&self) -> ::std::option::Option<&crate::types::Address> {
        self.address.as_ref()
    }
    /// <p>The customer’s shipping address.</p>
    pub fn shipping_address(&self) -> ::std::option::Option<&crate::types::Address> {
        self.shipping_address.as_ref()
    }
    /// <p>The customer’s mailing address.</p>
    pub fn mailing_address(&self) -> ::std::option::Option<&crate::types::Address> {
        self.mailing_address.as_ref()
    }
    /// <p>The customer’s billing address.</p>
    pub fn billing_address(&self) -> ::std::option::Option<&crate::types::Address> {
        self.billing_address.as_ref()
    }
    /// <p>A key value pair of attributes of a customer profile.</p>
    pub fn attributes(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::std::string::String>> {
        self.attributes.as_ref()
    }
    /// <p>A list of items used to find a profile returned in a <a href="https://docs.aws.amazon.com/customerprofiles/latest/APIReference/API_SearchProfiles.html">SearchProfiles</a> response. An item is a key-value(s) pair that matches an attribute in the profile.</p>
    /// <p>If the optional <code>AdditionalSearchKeys</code> parameter was included in the <a href="https://docs.aws.amazon.com/customerprofiles/latest/APIReference/API_SearchProfiles.html">SearchProfiles</a> request, the <code>FoundByItems</code> list should be interpreted based on the <code>LogicalOperator</code> used in the request:</p>
    /// <ul>
    /// <li>
    /// <p><code>AND</code> - The profile included in the response matched all of the search keys specified in the request. The <code>FoundByItems</code> will include all of the key-value(s) pairs that were specified in the request (as this is a requirement of <code>AND</code> search logic).</p></li>
    /// <li>
    /// <p><code>OR</code> - The profile included in the response matched at least one of the search keys specified in the request. The <code>FoundByItems</code> will include each of the key-value(s) pairs that the profile was found by.</p></li>
    /// </ul>
    /// <p>The <code>OR</code> relationship is the default behavior if the <code>LogicalOperator</code> parameter is not included in the <a href="https://docs.aws.amazon.com/customerprofiles/latest/APIReference/API_SearchProfiles.html">SearchProfiles</a> request.</p>
    ///
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.found_by_items.is_none()`.
    pub fn found_by_items(&self) -> &[crate::types::FoundByKeyValue] {
        self.found_by_items.as_deref().unwrap_or_default()
    }
    /// <p>An alternative to PartyType which accepts any string as input.</p>
    pub fn party_type_string(&self) -> ::std::option::Option<&str> {
        self.party_type_string.as_deref()
    }
    /// <p>An alternative to Gender which accepts any string as input.</p>
    pub fn gender_string(&self) -> ::std::option::Option<&str> {
        self.gender_string.as_deref()
    }
    /// <p>The type of the profile.</p>
    pub fn profile_type(&self) -> ::std::option::Option<&crate::types::ProfileType> {
        self.profile_type.as_ref()
    }
    /// <p>The customer or account’s engagement preferences.</p>
    pub fn engagement_preferences(&self) -> ::std::option::Option<&crate::types::EngagementPreferences> {
        self.engagement_preferences.as_ref()
    }
}
impl ::std::fmt::Debug for Profile {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        let mut formatter = f.debug_struct("Profile");
        formatter.field("profile_id", &self.profile_id);
        formatter.field("account_number", &"*** Sensitive Data Redacted ***");
        formatter.field("additional_information", &"*** Sensitive Data Redacted ***");
        formatter.field("party_type", &"*** Sensitive Data Redacted ***");
        formatter.field("business_name", &"*** Sensitive Data Redacted ***");
        formatter.field("first_name", &"*** Sensitive Data Redacted ***");
        formatter.field("middle_name", &"*** Sensitive Data Redacted ***");
        formatter.field("last_name", &"*** Sensitive Data Redacted ***");
        formatter.field("birth_date", &"*** Sensitive Data Redacted ***");
        formatter.field("gender", &"*** Sensitive Data Redacted ***");
        formatter.field("phone_number", &"*** Sensitive Data Redacted ***");
        formatter.field("mobile_phone_number", &"*** Sensitive Data Redacted ***");
        formatter.field("home_phone_number", &"*** Sensitive Data Redacted ***");
        formatter.field("business_phone_number", &"*** Sensitive Data Redacted ***");
        formatter.field("email_address", &"*** Sensitive Data Redacted ***");
        formatter.field("personal_email_address", &"*** Sensitive Data Redacted ***");
        formatter.field("business_email_address", &"*** Sensitive Data Redacted ***");
        formatter.field("address", &"*** Sensitive Data Redacted ***");
        formatter.field("shipping_address", &"*** Sensitive Data Redacted ***");
        formatter.field("mailing_address", &"*** Sensitive Data Redacted ***");
        formatter.field("billing_address", &"*** Sensitive Data Redacted ***");
        formatter.field("attributes", &"*** Sensitive Data Redacted ***");
        formatter.field("found_by_items", &self.found_by_items);
        formatter.field("party_type_string", &"*** Sensitive Data Redacted ***");
        formatter.field("gender_string", &"*** Sensitive Data Redacted ***");
        formatter.field("profile_type", &"*** Sensitive Data Redacted ***");
        formatter.field("engagement_preferences", &"*** Sensitive Data Redacted ***");
        formatter.finish()
    }
}
impl Profile {
    /// Creates a new builder-style object to manufacture [`Profile`](crate::types::Profile).
    pub fn builder() -> crate::types::builders::ProfileBuilder {
        crate::types::builders::ProfileBuilder::default()
    }
}

/// A builder for [`Profile`](crate::types::Profile).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
#[non_exhaustive]
pub struct ProfileBuilder {
    pub(crate) profile_id: ::std::option::Option<::std::string::String>,
    pub(crate) account_number: ::std::option::Option<::std::string::String>,
    pub(crate) additional_information: ::std::option::Option<::std::string::String>,
    pub(crate) party_type: ::std::option::Option<crate::types::PartyType>,
    pub(crate) business_name: ::std::option::Option<::std::string::String>,
    pub(crate) first_name: ::std::option::Option<::std::string::String>,
    pub(crate) middle_name: ::std::option::Option<::std::string::String>,
    pub(crate) last_name: ::std::option::Option<::std::string::String>,
    pub(crate) birth_date: ::std::option::Option<::std::string::String>,
    pub(crate) gender: ::std::option::Option<crate::types::Gender>,
    pub(crate) phone_number: ::std::option::Option<::std::string::String>,
    pub(crate) mobile_phone_number: ::std::option::Option<::std::string::String>,
    pub(crate) home_phone_number: ::std::option::Option<::std::string::String>,
    pub(crate) business_phone_number: ::std::option::Option<::std::string::String>,
    pub(crate) email_address: ::std::option::Option<::std::string::String>,
    pub(crate) personal_email_address: ::std::option::Option<::std::string::String>,
    pub(crate) business_email_address: ::std::option::Option<::std::string::String>,
    pub(crate) address: ::std::option::Option<crate::types::Address>,
    pub(crate) shipping_address: ::std::option::Option<crate::types::Address>,
    pub(crate) mailing_address: ::std::option::Option<crate::types::Address>,
    pub(crate) billing_address: ::std::option::Option<crate::types::Address>,
    pub(crate) attributes: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
    pub(crate) found_by_items: ::std::option::Option<::std::vec::Vec<crate::types::FoundByKeyValue>>,
    pub(crate) party_type_string: ::std::option::Option<::std::string::String>,
    pub(crate) gender_string: ::std::option::Option<::std::string::String>,
    pub(crate) profile_type: ::std::option::Option<crate::types::ProfileType>,
    pub(crate) engagement_preferences: ::std::option::Option<crate::types::EngagementPreferences>,
}
impl ProfileBuilder {
    /// <p>The unique identifier of a customer profile.</p>
    pub fn profile_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.profile_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The unique identifier of a customer profile.</p>
    pub fn set_profile_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.profile_id = input;
        self
    }
    /// <p>The unique identifier of a customer profile.</p>
    pub fn get_profile_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.profile_id
    }
    /// <p>An account number that you have assigned to the customer.</p>
    pub fn account_number(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.account_number = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>An account number that you have assigned to the customer.</p>
    pub fn set_account_number(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.account_number = input;
        self
    }
    /// <p>An account number that you have assigned to the customer.</p>
    pub fn get_account_number(&self) -> &::std::option::Option<::std::string::String> {
        &self.account_number
    }
    /// <p>Any additional information relevant to the customer’s profile.</p>
    pub fn additional_information(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.additional_information = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>Any additional information relevant to the customer’s profile.</p>
    pub fn set_additional_information(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.additional_information = input;
        self
    }
    /// <p>Any additional information relevant to the customer’s profile.</p>
    pub fn get_additional_information(&self) -> &::std::option::Option<::std::string::String> {
        &self.additional_information
    }
    /// <p>The type of profile used to describe the customer.</p>
    pub fn party_type(mut self, input: crate::types::PartyType) -> Self {
        self.party_type = ::std::option::Option::Some(input);
        self
    }
    /// <p>The type of profile used to describe the customer.</p>
    pub fn set_party_type(mut self, input: ::std::option::Option<crate::types::PartyType>) -> Self {
        self.party_type = input;
        self
    }
    /// <p>The type of profile used to describe the customer.</p>
    pub fn get_party_type(&self) -> &::std::option::Option<crate::types::PartyType> {
        &self.party_type
    }
    /// <p>The name of the customer’s business.</p>
    pub fn business_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.business_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the customer’s business.</p>
    pub fn set_business_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.business_name = input;
        self
    }
    /// <p>The name of the customer’s business.</p>
    pub fn get_business_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.business_name
    }
    /// <p>The customer’s first name.</p>
    pub fn first_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.first_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The customer’s first name.</p>
    pub fn set_first_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.first_name = input;
        self
    }
    /// <p>The customer’s first name.</p>
    pub fn get_first_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.first_name
    }
    /// <p>The customer’s middle name.</p>
    pub fn middle_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.middle_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The customer’s middle name.</p>
    pub fn set_middle_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.middle_name = input;
        self
    }
    /// <p>The customer’s middle name.</p>
    pub fn get_middle_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.middle_name
    }
    /// <p>The customer’s last name.</p>
    pub fn last_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.last_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The customer’s last name.</p>
    pub fn set_last_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.last_name = input;
        self
    }
    /// <p>The customer’s last name.</p>
    pub fn get_last_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.last_name
    }
    /// <p>The customer’s birth date.</p>
    pub fn birth_date(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.birth_date = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The customer’s birth date.</p>
    pub fn set_birth_date(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.birth_date = input;
        self
    }
    /// <p>The customer’s birth date.</p>
    pub fn get_birth_date(&self) -> &::std::option::Option<::std::string::String> {
        &self.birth_date
    }
    /// <p>The gender with which the customer identifies.</p>
    pub fn gender(mut self, input: crate::types::Gender) -> Self {
        self.gender = ::std::option::Option::Some(input);
        self
    }
    /// <p>The gender with which the customer identifies.</p>
    pub fn set_gender(mut self, input: ::std::option::Option<crate::types::Gender>) -> Self {
        self.gender = input;
        self
    }
    /// <p>The gender with which the customer identifies.</p>
    pub fn get_gender(&self) -> &::std::option::Option<crate::types::Gender> {
        &self.gender
    }
    /// <p>The customer's phone number, which has not been specified as a mobile, home, or business number.</p>
    pub fn phone_number(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.phone_number = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The customer's phone number, which has not been specified as a mobile, home, or business number.</p>
    pub fn set_phone_number(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.phone_number = input;
        self
    }
    /// <p>The customer's phone number, which has not been specified as a mobile, home, or business number.</p>
    pub fn get_phone_number(&self) -> &::std::option::Option<::std::string::String> {
        &self.phone_number
    }
    /// <p>The customer’s mobile phone number.</p>
    pub fn mobile_phone_number(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.mobile_phone_number = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The customer’s mobile phone number.</p>
    pub fn set_mobile_phone_number(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.mobile_phone_number = input;
        self
    }
    /// <p>The customer’s mobile phone number.</p>
    pub fn get_mobile_phone_number(&self) -> &::std::option::Option<::std::string::String> {
        &self.mobile_phone_number
    }
    /// <p>The customer’s home phone number.</p>
    pub fn home_phone_number(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.home_phone_number = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The customer’s home phone number.</p>
    pub fn set_home_phone_number(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.home_phone_number = input;
        self
    }
    /// <p>The customer’s home phone number.</p>
    pub fn get_home_phone_number(&self) -> &::std::option::Option<::std::string::String> {
        &self.home_phone_number
    }
    /// <p>The customer’s home phone number.</p>
    pub fn business_phone_number(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.business_phone_number = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The customer’s home phone number.</p>
    pub fn set_business_phone_number(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.business_phone_number = input;
        self
    }
    /// <p>The customer’s home phone number.</p>
    pub fn get_business_phone_number(&self) -> &::std::option::Option<::std::string::String> {
        &self.business_phone_number
    }
    /// <p>The customer’s email address, which has not been specified as a personal or business address.</p>
    pub fn email_address(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.email_address = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The customer’s email address, which has not been specified as a personal or business address.</p>
    pub fn set_email_address(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.email_address = input;
        self
    }
    /// <p>The customer’s email address, which has not been specified as a personal or business address.</p>
    pub fn get_email_address(&self) -> &::std::option::Option<::std::string::String> {
        &self.email_address
    }
    /// <p>The customer’s personal email address.</p>
    pub fn personal_email_address(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.personal_email_address = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The customer’s personal email address.</p>
    pub fn set_personal_email_address(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.personal_email_address = input;
        self
    }
    /// <p>The customer’s personal email address.</p>
    pub fn get_personal_email_address(&self) -> &::std::option::Option<::std::string::String> {
        &self.personal_email_address
    }
    /// <p>The customer’s business email address.</p>
    pub fn business_email_address(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.business_email_address = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The customer’s business email address.</p>
    pub fn set_business_email_address(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.business_email_address = input;
        self
    }
    /// <p>The customer’s business email address.</p>
    pub fn get_business_email_address(&self) -> &::std::option::Option<::std::string::String> {
        &self.business_email_address
    }
    /// <p>A generic address associated with the customer that is not mailing, shipping, or billing.</p>
    pub fn address(mut self, input: crate::types::Address) -> Self {
        self.address = ::std::option::Option::Some(input);
        self
    }
    /// <p>A generic address associated with the customer that is not mailing, shipping, or billing.</p>
    pub fn set_address(mut self, input: ::std::option::Option<crate::types::Address>) -> Self {
        self.address = input;
        self
    }
    /// <p>A generic address associated with the customer that is not mailing, shipping, or billing.</p>
    pub fn get_address(&self) -> &::std::option::Option<crate::types::Address> {
        &self.address
    }
    /// <p>The customer’s shipping address.</p>
    pub fn shipping_address(mut self, input: crate::types::Address) -> Self {
        self.shipping_address = ::std::option::Option::Some(input);
        self
    }
    /// <p>The customer’s shipping address.</p>
    pub fn set_shipping_address(mut self, input: ::std::option::Option<crate::types::Address>) -> Self {
        self.shipping_address = input;
        self
    }
    /// <p>The customer’s shipping address.</p>
    pub fn get_shipping_address(&self) -> &::std::option::Option<crate::types::Address> {
        &self.shipping_address
    }
    /// <p>The customer’s mailing address.</p>
    pub fn mailing_address(mut self, input: crate::types::Address) -> Self {
        self.mailing_address = ::std::option::Option::Some(input);
        self
    }
    /// <p>The customer’s mailing address.</p>
    pub fn set_mailing_address(mut self, input: ::std::option::Option<crate::types::Address>) -> Self {
        self.mailing_address = input;
        self
    }
    /// <p>The customer’s mailing address.</p>
    pub fn get_mailing_address(&self) -> &::std::option::Option<crate::types::Address> {
        &self.mailing_address
    }
    /// <p>The customer’s billing address.</p>
    pub fn billing_address(mut self, input: crate::types::Address) -> Self {
        self.billing_address = ::std::option::Option::Some(input);
        self
    }
    /// <p>The customer’s billing address.</p>
    pub fn set_billing_address(mut self, input: ::std::option::Option<crate::types::Address>) -> Self {
        self.billing_address = input;
        self
    }
    /// <p>The customer’s billing address.</p>
    pub fn get_billing_address(&self) -> &::std::option::Option<crate::types::Address> {
        &self.billing_address
    }
    /// Adds a key-value pair to `attributes`.
    ///
    /// To override the contents of this collection use [`set_attributes`](Self::set_attributes).
    ///
    /// <p>A key value pair of attributes of a customer profile.</p>
    pub fn attributes(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
        let mut hash_map = self.attributes.unwrap_or_default();
        hash_map.insert(k.into(), v.into());
        self.attributes = ::std::option::Option::Some(hash_map);
        self
    }
    /// <p>A key value pair of attributes of a customer profile.</p>
    pub fn set_attributes(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>) -> Self {
        self.attributes = input;
        self
    }
    /// <p>A key value pair of attributes of a customer profile.</p>
    pub fn get_attributes(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
        &self.attributes
    }
    /// Appends an item to `found_by_items`.
    ///
    /// To override the contents of this collection use [`set_found_by_items`](Self::set_found_by_items).
    ///
    /// <p>A list of items used to find a profile returned in a <a href="https://docs.aws.amazon.com/customerprofiles/latest/APIReference/API_SearchProfiles.html">SearchProfiles</a> response. An item is a key-value(s) pair that matches an attribute in the profile.</p>
    /// <p>If the optional <code>AdditionalSearchKeys</code> parameter was included in the <a href="https://docs.aws.amazon.com/customerprofiles/latest/APIReference/API_SearchProfiles.html">SearchProfiles</a> request, the <code>FoundByItems</code> list should be interpreted based on the <code>LogicalOperator</code> used in the request:</p>
    /// <ul>
    /// <li>
    /// <p><code>AND</code> - The profile included in the response matched all of the search keys specified in the request. The <code>FoundByItems</code> will include all of the key-value(s) pairs that were specified in the request (as this is a requirement of <code>AND</code> search logic).</p></li>
    /// <li>
    /// <p><code>OR</code> - The profile included in the response matched at least one of the search keys specified in the request. The <code>FoundByItems</code> will include each of the key-value(s) pairs that the profile was found by.</p></li>
    /// </ul>
    /// <p>The <code>OR</code> relationship is the default behavior if the <code>LogicalOperator</code> parameter is not included in the <a href="https://docs.aws.amazon.com/customerprofiles/latest/APIReference/API_SearchProfiles.html">SearchProfiles</a> request.</p>
    pub fn found_by_items(mut self, input: crate::types::FoundByKeyValue) -> Self {
        let mut v = self.found_by_items.unwrap_or_default();
        v.push(input);
        self.found_by_items = ::std::option::Option::Some(v);
        self
    }
    /// <p>A list of items used to find a profile returned in a <a href="https://docs.aws.amazon.com/customerprofiles/latest/APIReference/API_SearchProfiles.html">SearchProfiles</a> response. An item is a key-value(s) pair that matches an attribute in the profile.</p>
    /// <p>If the optional <code>AdditionalSearchKeys</code> parameter was included in the <a href="https://docs.aws.amazon.com/customerprofiles/latest/APIReference/API_SearchProfiles.html">SearchProfiles</a> request, the <code>FoundByItems</code> list should be interpreted based on the <code>LogicalOperator</code> used in the request:</p>
    /// <ul>
    /// <li>
    /// <p><code>AND</code> - The profile included in the response matched all of the search keys specified in the request. The <code>FoundByItems</code> will include all of the key-value(s) pairs that were specified in the request (as this is a requirement of <code>AND</code> search logic).</p></li>
    /// <li>
    /// <p><code>OR</code> - The profile included in the response matched at least one of the search keys specified in the request. The <code>FoundByItems</code> will include each of the key-value(s) pairs that the profile was found by.</p></li>
    /// </ul>
    /// <p>The <code>OR</code> relationship is the default behavior if the <code>LogicalOperator</code> parameter is not included in the <a href="https://docs.aws.amazon.com/customerprofiles/latest/APIReference/API_SearchProfiles.html">SearchProfiles</a> request.</p>
    pub fn set_found_by_items(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::FoundByKeyValue>>) -> Self {
        self.found_by_items = input;
        self
    }
    /// <p>A list of items used to find a profile returned in a <a href="https://docs.aws.amazon.com/customerprofiles/latest/APIReference/API_SearchProfiles.html">SearchProfiles</a> response. An item is a key-value(s) pair that matches an attribute in the profile.</p>
    /// <p>If the optional <code>AdditionalSearchKeys</code> parameter was included in the <a href="https://docs.aws.amazon.com/customerprofiles/latest/APIReference/API_SearchProfiles.html">SearchProfiles</a> request, the <code>FoundByItems</code> list should be interpreted based on the <code>LogicalOperator</code> used in the request:</p>
    /// <ul>
    /// <li>
    /// <p><code>AND</code> - The profile included in the response matched all of the search keys specified in the request. The <code>FoundByItems</code> will include all of the key-value(s) pairs that were specified in the request (as this is a requirement of <code>AND</code> search logic).</p></li>
    /// <li>
    /// <p><code>OR</code> - The profile included in the response matched at least one of the search keys specified in the request. The <code>FoundByItems</code> will include each of the key-value(s) pairs that the profile was found by.</p></li>
    /// </ul>
    /// <p>The <code>OR</code> relationship is the default behavior if the <code>LogicalOperator</code> parameter is not included in the <a href="https://docs.aws.amazon.com/customerprofiles/latest/APIReference/API_SearchProfiles.html">SearchProfiles</a> request.</p>
    pub fn get_found_by_items(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::FoundByKeyValue>> {
        &self.found_by_items
    }
    /// <p>An alternative to PartyType which accepts any string as input.</p>
    pub fn party_type_string(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.party_type_string = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>An alternative to PartyType which accepts any string as input.</p>
    pub fn set_party_type_string(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.party_type_string = input;
        self
    }
    /// <p>An alternative to PartyType which accepts any string as input.</p>
    pub fn get_party_type_string(&self) -> &::std::option::Option<::std::string::String> {
        &self.party_type_string
    }
    /// <p>An alternative to Gender which accepts any string as input.</p>
    pub fn gender_string(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.gender_string = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>An alternative to Gender which accepts any string as input.</p>
    pub fn set_gender_string(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.gender_string = input;
        self
    }
    /// <p>An alternative to Gender which accepts any string as input.</p>
    pub fn get_gender_string(&self) -> &::std::option::Option<::std::string::String> {
        &self.gender_string
    }
    /// <p>The type of the profile.</p>
    pub fn profile_type(mut self, input: crate::types::ProfileType) -> Self {
        self.profile_type = ::std::option::Option::Some(input);
        self
    }
    /// <p>The type of the profile.</p>
    pub fn set_profile_type(mut self, input: ::std::option::Option<crate::types::ProfileType>) -> Self {
        self.profile_type = input;
        self
    }
    /// <p>The type of the profile.</p>
    pub fn get_profile_type(&self) -> &::std::option::Option<crate::types::ProfileType> {
        &self.profile_type
    }
    /// <p>The customer or account’s engagement preferences.</p>
    pub fn engagement_preferences(mut self, input: crate::types::EngagementPreferences) -> Self {
        self.engagement_preferences = ::std::option::Option::Some(input);
        self
    }
    /// <p>The customer or account’s engagement preferences.</p>
    pub fn set_engagement_preferences(mut self, input: ::std::option::Option<crate::types::EngagementPreferences>) -> Self {
        self.engagement_preferences = input;
        self
    }
    /// <p>The customer or account’s engagement preferences.</p>
    pub fn get_engagement_preferences(&self) -> &::std::option::Option<crate::types::EngagementPreferences> {
        &self.engagement_preferences
    }
    /// Consumes the builder and constructs a [`Profile`](crate::types::Profile).
    pub fn build(self) -> crate::types::Profile {
        crate::types::Profile {
            profile_id: self.profile_id,
            account_number: self.account_number,
            additional_information: self.additional_information,
            party_type: self.party_type,
            business_name: self.business_name,
            first_name: self.first_name,
            middle_name: self.middle_name,
            last_name: self.last_name,
            birth_date: self.birth_date,
            gender: self.gender,
            phone_number: self.phone_number,
            mobile_phone_number: self.mobile_phone_number,
            home_phone_number: self.home_phone_number,
            business_phone_number: self.business_phone_number,
            email_address: self.email_address,
            personal_email_address: self.personal_email_address,
            business_email_address: self.business_email_address,
            address: self.address,
            shipping_address: self.shipping_address,
            mailing_address: self.mailing_address,
            billing_address: self.billing_address,
            attributes: self.attributes,
            found_by_items: self.found_by_items,
            party_type_string: self.party_type_string,
            gender_string: self.gender_string,
            profile_type: self.profile_type,
            engagement_preferences: self.engagement_preferences,
        }
    }
}
impl ::std::fmt::Debug for ProfileBuilder {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        let mut formatter = f.debug_struct("ProfileBuilder");
        formatter.field("profile_id", &self.profile_id);
        formatter.field("account_number", &"*** Sensitive Data Redacted ***");
        formatter.field("additional_information", &"*** Sensitive Data Redacted ***");
        formatter.field("party_type", &"*** Sensitive Data Redacted ***");
        formatter.field("business_name", &"*** Sensitive Data Redacted ***");
        formatter.field("first_name", &"*** Sensitive Data Redacted ***");
        formatter.field("middle_name", &"*** Sensitive Data Redacted ***");
        formatter.field("last_name", &"*** Sensitive Data Redacted ***");
        formatter.field("birth_date", &"*** Sensitive Data Redacted ***");
        formatter.field("gender", &"*** Sensitive Data Redacted ***");
        formatter.field("phone_number", &"*** Sensitive Data Redacted ***");
        formatter.field("mobile_phone_number", &"*** Sensitive Data Redacted ***");
        formatter.field("home_phone_number", &"*** Sensitive Data Redacted ***");
        formatter.field("business_phone_number", &"*** Sensitive Data Redacted ***");
        formatter.field("email_address", &"*** Sensitive Data Redacted ***");
        formatter.field("personal_email_address", &"*** Sensitive Data Redacted ***");
        formatter.field("business_email_address", &"*** Sensitive Data Redacted ***");
        formatter.field("address", &"*** Sensitive Data Redacted ***");
        formatter.field("shipping_address", &"*** Sensitive Data Redacted ***");
        formatter.field("mailing_address", &"*** Sensitive Data Redacted ***");
        formatter.field("billing_address", &"*** Sensitive Data Redacted ***");
        formatter.field("attributes", &"*** Sensitive Data Redacted ***");
        formatter.field("found_by_items", &self.found_by_items);
        formatter.field("party_type_string", &"*** Sensitive Data Redacted ***");
        formatter.field("gender_string", &"*** Sensitive Data Redacted ***");
        formatter.field("profile_type", &"*** Sensitive Data Redacted ***");
        formatter.field("engagement_preferences", &"*** Sensitive Data Redacted ***");
        formatter.finish()
    }
}