AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
UpdateProfileRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/customer-profiles/CustomerProfilesRequest.h>
10#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
11#include <aws/customer-profiles/model/EngagementPreferences.h>
12#include <aws/customer-profiles/model/Gender.h>
13#include <aws/customer-profiles/model/PartyType.h>
14#include <aws/customer-profiles/model/ProfileType.h>
15#include <aws/customer-profiles/model/UpdateAddress.h>
16
17#include <utility>
18
19namespace Aws {
20namespace CustomerProfiles {
21namespace Model {
22
26 public:
27 AWS_CUSTOMERPROFILES_API UpdateProfileRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateProfile"; }
34
35 AWS_CUSTOMERPROFILES_API Aws::String SerializePayload() const override;
36
38
41 inline const Aws::String& GetDomainName() const { return m_domainName; }
42 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
43 template <typename DomainNameT = Aws::String>
44 void SetDomainName(DomainNameT&& value) {
45 m_domainNameHasBeenSet = true;
46 m_domainName = std::forward<DomainNameT>(value);
47 }
48 template <typename DomainNameT = Aws::String>
49 UpdateProfileRequest& WithDomainName(DomainNameT&& value) {
50 SetDomainName(std::forward<DomainNameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetProfileId() const { return m_profileId; }
60 inline bool ProfileIdHasBeenSet() const { return m_profileIdHasBeenSet; }
61 template <typename ProfileIdT = Aws::String>
62 void SetProfileId(ProfileIdT&& value) {
63 m_profileIdHasBeenSet = true;
64 m_profileId = std::forward<ProfileIdT>(value);
65 }
66 template <typename ProfileIdT = Aws::String>
67 UpdateProfileRequest& WithProfileId(ProfileIdT&& value) {
68 SetProfileId(std::forward<ProfileIdT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetAdditionalInformation() const { return m_additionalInformation; }
78 inline bool AdditionalInformationHasBeenSet() const { return m_additionalInformationHasBeenSet; }
79 template <typename AdditionalInformationT = Aws::String>
80 void SetAdditionalInformation(AdditionalInformationT&& value) {
81 m_additionalInformationHasBeenSet = true;
82 m_additionalInformation = std::forward<AdditionalInformationT>(value);
83 }
84 template <typename AdditionalInformationT = Aws::String>
85 UpdateProfileRequest& WithAdditionalInformation(AdditionalInformationT&& value) {
86 SetAdditionalInformation(std::forward<AdditionalInformationT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetAccountNumber() const { return m_accountNumber; }
96 inline bool AccountNumberHasBeenSet() const { return m_accountNumberHasBeenSet; }
97 template <typename AccountNumberT = Aws::String>
98 void SetAccountNumber(AccountNumberT&& value) {
99 m_accountNumberHasBeenSet = true;
100 m_accountNumber = std::forward<AccountNumberT>(value);
101 }
102 template <typename AccountNumberT = Aws::String>
103 UpdateProfileRequest& WithAccountNumber(AccountNumberT&& value) {
104 SetAccountNumber(std::forward<AccountNumberT>(value));
105 return *this;
106 }
108
110
113 inline PartyType GetPartyType() const { return m_partyType; }
114 inline bool PartyTypeHasBeenSet() const { return m_partyTypeHasBeenSet; }
115 inline void SetPartyType(PartyType value) {
116 m_partyTypeHasBeenSet = true;
117 m_partyType = value;
118 }
120 SetPartyType(value);
121 return *this;
122 }
124
126
129 inline const Aws::String& GetBusinessName() const { return m_businessName; }
130 inline bool BusinessNameHasBeenSet() const { return m_businessNameHasBeenSet; }
131 template <typename BusinessNameT = Aws::String>
132 void SetBusinessName(BusinessNameT&& value) {
133 m_businessNameHasBeenSet = true;
134 m_businessName = std::forward<BusinessNameT>(value);
135 }
136 template <typename BusinessNameT = Aws::String>
137 UpdateProfileRequest& WithBusinessName(BusinessNameT&& value) {
138 SetBusinessName(std::forward<BusinessNameT>(value));
139 return *this;
140 }
142
144
147 inline const Aws::String& GetFirstName() const { return m_firstName; }
148 inline bool FirstNameHasBeenSet() const { return m_firstNameHasBeenSet; }
149 template <typename FirstNameT = Aws::String>
150 void SetFirstName(FirstNameT&& value) {
151 m_firstNameHasBeenSet = true;
152 m_firstName = std::forward<FirstNameT>(value);
153 }
154 template <typename FirstNameT = Aws::String>
155 UpdateProfileRequest& WithFirstName(FirstNameT&& value) {
156 SetFirstName(std::forward<FirstNameT>(value));
157 return *this;
158 }
160
162
165 inline const Aws::String& GetMiddleName() const { return m_middleName; }
166 inline bool MiddleNameHasBeenSet() const { return m_middleNameHasBeenSet; }
167 template <typename MiddleNameT = Aws::String>
168 void SetMiddleName(MiddleNameT&& value) {
169 m_middleNameHasBeenSet = true;
170 m_middleName = std::forward<MiddleNameT>(value);
171 }
172 template <typename MiddleNameT = Aws::String>
173 UpdateProfileRequest& WithMiddleName(MiddleNameT&& value) {
174 SetMiddleName(std::forward<MiddleNameT>(value));
175 return *this;
176 }
178
180
183 inline const Aws::String& GetLastName() const { return m_lastName; }
184 inline bool LastNameHasBeenSet() const { return m_lastNameHasBeenSet; }
185 template <typename LastNameT = Aws::String>
186 void SetLastName(LastNameT&& value) {
187 m_lastNameHasBeenSet = true;
188 m_lastName = std::forward<LastNameT>(value);
189 }
190 template <typename LastNameT = Aws::String>
191 UpdateProfileRequest& WithLastName(LastNameT&& value) {
192 SetLastName(std::forward<LastNameT>(value));
193 return *this;
194 }
196
198
201 inline const Aws::String& GetBirthDate() const { return m_birthDate; }
202 inline bool BirthDateHasBeenSet() const { return m_birthDateHasBeenSet; }
203 template <typename BirthDateT = Aws::String>
204 void SetBirthDate(BirthDateT&& value) {
205 m_birthDateHasBeenSet = true;
206 m_birthDate = std::forward<BirthDateT>(value);
207 }
208 template <typename BirthDateT = Aws::String>
209 UpdateProfileRequest& WithBirthDate(BirthDateT&& value) {
210 SetBirthDate(std::forward<BirthDateT>(value));
211 return *this;
212 }
214
216
219 inline Gender GetGender() const { return m_gender; }
220 inline bool GenderHasBeenSet() const { return m_genderHasBeenSet; }
221 inline void SetGender(Gender value) {
222 m_genderHasBeenSet = true;
223 m_gender = value;
224 }
226 SetGender(value);
227 return *this;
228 }
230
232
236 inline const Aws::String& GetPhoneNumber() const { return m_phoneNumber; }
237 inline bool PhoneNumberHasBeenSet() const { return m_phoneNumberHasBeenSet; }
238 template <typename PhoneNumberT = Aws::String>
239 void SetPhoneNumber(PhoneNumberT&& value) {
240 m_phoneNumberHasBeenSet = true;
241 m_phoneNumber = std::forward<PhoneNumberT>(value);
242 }
243 template <typename PhoneNumberT = Aws::String>
244 UpdateProfileRequest& WithPhoneNumber(PhoneNumberT&& value) {
245 SetPhoneNumber(std::forward<PhoneNumberT>(value));
246 return *this;
247 }
249
251
254 inline const Aws::String& GetMobilePhoneNumber() const { return m_mobilePhoneNumber; }
255 inline bool MobilePhoneNumberHasBeenSet() const { return m_mobilePhoneNumberHasBeenSet; }
256 template <typename MobilePhoneNumberT = Aws::String>
257 void SetMobilePhoneNumber(MobilePhoneNumberT&& value) {
258 m_mobilePhoneNumberHasBeenSet = true;
259 m_mobilePhoneNumber = std::forward<MobilePhoneNumberT>(value);
260 }
261 template <typename MobilePhoneNumberT = Aws::String>
262 UpdateProfileRequest& WithMobilePhoneNumber(MobilePhoneNumberT&& value) {
263 SetMobilePhoneNumber(std::forward<MobilePhoneNumberT>(value));
264 return *this;
265 }
267
269
272 inline const Aws::String& GetHomePhoneNumber() const { return m_homePhoneNumber; }
273 inline bool HomePhoneNumberHasBeenSet() const { return m_homePhoneNumberHasBeenSet; }
274 template <typename HomePhoneNumberT = Aws::String>
275 void SetHomePhoneNumber(HomePhoneNumberT&& value) {
276 m_homePhoneNumberHasBeenSet = true;
277 m_homePhoneNumber = std::forward<HomePhoneNumberT>(value);
278 }
279 template <typename HomePhoneNumberT = Aws::String>
280 UpdateProfileRequest& WithHomePhoneNumber(HomePhoneNumberT&& value) {
281 SetHomePhoneNumber(std::forward<HomePhoneNumberT>(value));
282 return *this;
283 }
285
287
290 inline const Aws::String& GetBusinessPhoneNumber() const { return m_businessPhoneNumber; }
291 inline bool BusinessPhoneNumberHasBeenSet() const { return m_businessPhoneNumberHasBeenSet; }
292 template <typename BusinessPhoneNumberT = Aws::String>
293 void SetBusinessPhoneNumber(BusinessPhoneNumberT&& value) {
294 m_businessPhoneNumberHasBeenSet = true;
295 m_businessPhoneNumber = std::forward<BusinessPhoneNumberT>(value);
296 }
297 template <typename BusinessPhoneNumberT = Aws::String>
298 UpdateProfileRequest& WithBusinessPhoneNumber(BusinessPhoneNumberT&& value) {
299 SetBusinessPhoneNumber(std::forward<BusinessPhoneNumberT>(value));
300 return *this;
301 }
303
305
309 inline const Aws::String& GetEmailAddress() const { return m_emailAddress; }
310 inline bool EmailAddressHasBeenSet() const { return m_emailAddressHasBeenSet; }
311 template <typename EmailAddressT = Aws::String>
312 void SetEmailAddress(EmailAddressT&& value) {
313 m_emailAddressHasBeenSet = true;
314 m_emailAddress = std::forward<EmailAddressT>(value);
315 }
316 template <typename EmailAddressT = Aws::String>
317 UpdateProfileRequest& WithEmailAddress(EmailAddressT&& value) {
318 SetEmailAddress(std::forward<EmailAddressT>(value));
319 return *this;
320 }
322
324
327 inline const Aws::String& GetPersonalEmailAddress() const { return m_personalEmailAddress; }
328 inline bool PersonalEmailAddressHasBeenSet() const { return m_personalEmailAddressHasBeenSet; }
329 template <typename PersonalEmailAddressT = Aws::String>
330 void SetPersonalEmailAddress(PersonalEmailAddressT&& value) {
331 m_personalEmailAddressHasBeenSet = true;
332 m_personalEmailAddress = std::forward<PersonalEmailAddressT>(value);
333 }
334 template <typename PersonalEmailAddressT = Aws::String>
335 UpdateProfileRequest& WithPersonalEmailAddress(PersonalEmailAddressT&& value) {
336 SetPersonalEmailAddress(std::forward<PersonalEmailAddressT>(value));
337 return *this;
338 }
340
342
345 inline const Aws::String& GetBusinessEmailAddress() const { return m_businessEmailAddress; }
346 inline bool BusinessEmailAddressHasBeenSet() const { return m_businessEmailAddressHasBeenSet; }
347 template <typename BusinessEmailAddressT = Aws::String>
348 void SetBusinessEmailAddress(BusinessEmailAddressT&& value) {
349 m_businessEmailAddressHasBeenSet = true;
350 m_businessEmailAddress = std::forward<BusinessEmailAddressT>(value);
351 }
352 template <typename BusinessEmailAddressT = Aws::String>
353 UpdateProfileRequest& WithBusinessEmailAddress(BusinessEmailAddressT&& value) {
354 SetBusinessEmailAddress(std::forward<BusinessEmailAddressT>(value));
355 return *this;
356 }
358
360
364 inline const UpdateAddress& GetAddress() const { return m_address; }
365 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
366 template <typename AddressT = UpdateAddress>
367 void SetAddress(AddressT&& value) {
368 m_addressHasBeenSet = true;
369 m_address = std::forward<AddressT>(value);
370 }
371 template <typename AddressT = UpdateAddress>
373 SetAddress(std::forward<AddressT>(value));
374 return *this;
375 }
377
379
382 inline const UpdateAddress& GetShippingAddress() const { return m_shippingAddress; }
383 inline bool ShippingAddressHasBeenSet() const { return m_shippingAddressHasBeenSet; }
384 template <typename ShippingAddressT = UpdateAddress>
385 void SetShippingAddress(ShippingAddressT&& value) {
386 m_shippingAddressHasBeenSet = true;
387 m_shippingAddress = std::forward<ShippingAddressT>(value);
388 }
389 template <typename ShippingAddressT = UpdateAddress>
390 UpdateProfileRequest& WithShippingAddress(ShippingAddressT&& value) {
391 SetShippingAddress(std::forward<ShippingAddressT>(value));
392 return *this;
393 }
395
397
400 inline const UpdateAddress& GetMailingAddress() const { return m_mailingAddress; }
401 inline bool MailingAddressHasBeenSet() const { return m_mailingAddressHasBeenSet; }
402 template <typename MailingAddressT = UpdateAddress>
403 void SetMailingAddress(MailingAddressT&& value) {
404 m_mailingAddressHasBeenSet = true;
405 m_mailingAddress = std::forward<MailingAddressT>(value);
406 }
407 template <typename MailingAddressT = UpdateAddress>
408 UpdateProfileRequest& WithMailingAddress(MailingAddressT&& value) {
409 SetMailingAddress(std::forward<MailingAddressT>(value));
410 return *this;
411 }
413
415
418 inline const UpdateAddress& GetBillingAddress() const { return m_billingAddress; }
419 inline bool BillingAddressHasBeenSet() const { return m_billingAddressHasBeenSet; }
420 template <typename BillingAddressT = UpdateAddress>
421 void SetBillingAddress(BillingAddressT&& value) {
422 m_billingAddressHasBeenSet = true;
423 m_billingAddress = std::forward<BillingAddressT>(value);
424 }
425 template <typename BillingAddressT = UpdateAddress>
426 UpdateProfileRequest& WithBillingAddress(BillingAddressT&& value) {
427 SetBillingAddress(std::forward<BillingAddressT>(value));
428 return *this;
429 }
431
433
436 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const { return m_attributes; }
437 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
438 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
439 void SetAttributes(AttributesT&& value) {
440 m_attributesHasBeenSet = true;
441 m_attributes = std::forward<AttributesT>(value);
442 }
443 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
444 UpdateProfileRequest& WithAttributes(AttributesT&& value) {
445 SetAttributes(std::forward<AttributesT>(value));
446 return *this;
447 }
448 template <typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
449 UpdateProfileRequest& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
450 m_attributesHasBeenSet = true;
451 m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value));
452 return *this;
453 }
455
457
461 inline const Aws::String& GetPartyTypeString() const { return m_partyTypeString; }
462 inline bool PartyTypeStringHasBeenSet() const { return m_partyTypeStringHasBeenSet; }
463 template <typename PartyTypeStringT = Aws::String>
464 void SetPartyTypeString(PartyTypeStringT&& value) {
465 m_partyTypeStringHasBeenSet = true;
466 m_partyTypeString = std::forward<PartyTypeStringT>(value);
467 }
468 template <typename PartyTypeStringT = Aws::String>
469 UpdateProfileRequest& WithPartyTypeString(PartyTypeStringT&& value) {
470 SetPartyTypeString(std::forward<PartyTypeStringT>(value));
471 return *this;
472 }
474
476
479 inline const Aws::String& GetGenderString() const { return m_genderString; }
480 inline bool GenderStringHasBeenSet() const { return m_genderStringHasBeenSet; }
481 template <typename GenderStringT = Aws::String>
482 void SetGenderString(GenderStringT&& value) {
483 m_genderStringHasBeenSet = true;
484 m_genderString = std::forward<GenderStringT>(value);
485 }
486 template <typename GenderStringT = Aws::String>
487 UpdateProfileRequest& WithGenderString(GenderStringT&& value) {
488 SetGenderString(std::forward<GenderStringT>(value));
489 return *this;
490 }
492
494
497 inline ProfileType GetProfileType() const { return m_profileType; }
498 inline bool ProfileTypeHasBeenSet() const { return m_profileTypeHasBeenSet; }
499 inline void SetProfileType(ProfileType value) {
500 m_profileTypeHasBeenSet = true;
501 m_profileType = value;
502 }
504 SetProfileType(value);
505 return *this;
506 }
508
510
513 inline const EngagementPreferences& GetEngagementPreferences() const { return m_engagementPreferences; }
514 inline bool EngagementPreferencesHasBeenSet() const { return m_engagementPreferencesHasBeenSet; }
515 template <typename EngagementPreferencesT = EngagementPreferences>
516 void SetEngagementPreferences(EngagementPreferencesT&& value) {
517 m_engagementPreferencesHasBeenSet = true;
518 m_engagementPreferences = std::forward<EngagementPreferencesT>(value);
519 }
520 template <typename EngagementPreferencesT = EngagementPreferences>
521 UpdateProfileRequest& WithEngagementPreferences(EngagementPreferencesT&& value) {
522 SetEngagementPreferences(std::forward<EngagementPreferencesT>(value));
523 return *this;
524 }
526 private:
527 Aws::String m_domainName;
528
529 Aws::String m_profileId;
530
531 Aws::String m_additionalInformation;
532
533 Aws::String m_accountNumber;
534
535 PartyType m_partyType{PartyType::NOT_SET};
536
537 Aws::String m_businessName;
538
539 Aws::String m_firstName;
540
541 Aws::String m_middleName;
542
543 Aws::String m_lastName;
544
545 Aws::String m_birthDate;
546
547 Gender m_gender{Gender::NOT_SET};
548
549 Aws::String m_phoneNumber;
550
551 Aws::String m_mobilePhoneNumber;
552
553 Aws::String m_homePhoneNumber;
554
555 Aws::String m_businessPhoneNumber;
556
557 Aws::String m_emailAddress;
558
559 Aws::String m_personalEmailAddress;
560
561 Aws::String m_businessEmailAddress;
562
563 UpdateAddress m_address;
564
565 UpdateAddress m_shippingAddress;
566
567 UpdateAddress m_mailingAddress;
568
569 UpdateAddress m_billingAddress;
570
572
573 Aws::String m_partyTypeString;
574
575 Aws::String m_genderString;
576
577 ProfileType m_profileType{ProfileType::NOT_SET};
578
579 EngagementPreferences m_engagementPreferences;
580 bool m_domainNameHasBeenSet = false;
581 bool m_profileIdHasBeenSet = false;
582 bool m_additionalInformationHasBeenSet = false;
583 bool m_accountNumberHasBeenSet = false;
584 bool m_partyTypeHasBeenSet = false;
585 bool m_businessNameHasBeenSet = false;
586 bool m_firstNameHasBeenSet = false;
587 bool m_middleNameHasBeenSet = false;
588 bool m_lastNameHasBeenSet = false;
589 bool m_birthDateHasBeenSet = false;
590 bool m_genderHasBeenSet = false;
591 bool m_phoneNumberHasBeenSet = false;
592 bool m_mobilePhoneNumberHasBeenSet = false;
593 bool m_homePhoneNumberHasBeenSet = false;
594 bool m_businessPhoneNumberHasBeenSet = false;
595 bool m_emailAddressHasBeenSet = false;
596 bool m_personalEmailAddressHasBeenSet = false;
597 bool m_businessEmailAddressHasBeenSet = false;
598 bool m_addressHasBeenSet = false;
599 bool m_shippingAddressHasBeenSet = false;
600 bool m_mailingAddressHasBeenSet = false;
601 bool m_billingAddressHasBeenSet = false;
602 bool m_attributesHasBeenSet = false;
603 bool m_partyTypeStringHasBeenSet = false;
604 bool m_genderStringHasBeenSet = false;
605 bool m_profileTypeHasBeenSet = false;
606 bool m_engagementPreferencesHasBeenSet = false;
607};
608
609} // namespace Model
610} // namespace CustomerProfiles
611} // namespace Aws
UpdateProfileRequest & WithMiddleName(MiddleNameT &&value)
UpdateProfileRequest & WithAdditionalInformation(AdditionalInformationT &&value)
virtual const char * GetServiceRequestName() const override
void SetAdditionalInformation(AdditionalInformationT &&value)
UpdateProfileRequest & WithProfileId(ProfileIdT &&value)
UpdateProfileRequest & WithEngagementPreferences(EngagementPreferencesT &&value)
UpdateProfileRequest & WithBusinessEmailAddress(BusinessEmailAddressT &&value)
UpdateProfileRequest & WithPhoneNumber(PhoneNumberT &&value)
UpdateProfileRequest & WithHomePhoneNumber(HomePhoneNumberT &&value)
UpdateProfileRequest & WithPartyTypeString(PartyTypeStringT &&value)
UpdateProfileRequest & WithShippingAddress(ShippingAddressT &&value)
UpdateProfileRequest & WithAccountNumber(AccountNumberT &&value)
UpdateProfileRequest & AddAttributes(AttributesKeyT &&key, AttributesValueT &&value)
UpdateProfileRequest & WithAttributes(AttributesT &&value)
void SetBusinessEmailAddress(BusinessEmailAddressT &&value)
UpdateProfileRequest & WithBusinessPhoneNumber(BusinessPhoneNumberT &&value)
UpdateProfileRequest & WithPersonalEmailAddress(PersonalEmailAddressT &&value)
UpdateProfileRequest & WithFirstName(FirstNameT &&value)
UpdateProfileRequest & WithPartyType(PartyType value)
UpdateProfileRequest & WithEmailAddress(EmailAddressT &&value)
UpdateProfileRequest & WithMailingAddress(MailingAddressT &&value)
UpdateProfileRequest & WithBillingAddress(BillingAddressT &&value)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
UpdateProfileRequest & WithBirthDate(BirthDateT &&value)
UpdateProfileRequest & WithAddress(AddressT &&value)
UpdateProfileRequest & WithMobilePhoneNumber(MobilePhoneNumberT &&value)
void SetEngagementPreferences(EngagementPreferencesT &&value)
AWS_CUSTOMERPROFILES_API Aws::String SerializePayload() const override
AWS_CUSTOMERPROFILES_API UpdateProfileRequest()=default
void SetBusinessPhoneNumber(BusinessPhoneNumberT &&value)
UpdateProfileRequest & WithLastName(LastNameT &&value)
UpdateProfileRequest & WithGenderString(GenderStringT &&value)
UpdateProfileRequest & WithDomainName(DomainNameT &&value)
const EngagementPreferences & GetEngagementPreferences() const
UpdateProfileRequest & WithProfileType(ProfileType value)
UpdateProfileRequest & WithBusinessName(BusinessNameT &&value)
void SetPersonalEmailAddress(PersonalEmailAddressT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String