AWS SDK for C++

AWS SDK for C++ Version 1.11.643

Loading...
Searching...
No Matches
UpdateProfileRequest.h
1
6#pragma once
7#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
8#include <aws/customer-profiles/CustomerProfilesRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/customer-profiles/model/PartyType.h>
11#include <aws/customer-profiles/model/Gender.h>
12#include <aws/customer-profiles/model/UpdateAddress.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/customer-profiles/model/ProfileType.h>
15#include <aws/customer-profiles/model/EngagementPreferences.h>
16#include <utility>
17
18namespace Aws
19{
20namespace CustomerProfiles
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_CUSTOMERPROFILES_API UpdateProfileRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "UpdateProfile"; }
37
38 AWS_CUSTOMERPROFILES_API Aws::String SerializePayload() const override;
39
40
42
45 inline const Aws::String& GetDomainName() const { return m_domainName; }
46 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
47 template<typename DomainNameT = Aws::String>
48 void SetDomainName(DomainNameT&& value) { m_domainNameHasBeenSet = true; m_domainName = std::forward<DomainNameT>(value); }
49 template<typename DomainNameT = Aws::String>
50 UpdateProfileRequest& WithDomainName(DomainNameT&& value) { SetDomainName(std::forward<DomainNameT>(value)); return *this;}
52
54
57 inline const Aws::String& GetProfileId() const { return m_profileId; }
58 inline bool ProfileIdHasBeenSet() const { return m_profileIdHasBeenSet; }
59 template<typename ProfileIdT = Aws::String>
60 void SetProfileId(ProfileIdT&& value) { m_profileIdHasBeenSet = true; m_profileId = std::forward<ProfileIdT>(value); }
61 template<typename ProfileIdT = Aws::String>
62 UpdateProfileRequest& WithProfileId(ProfileIdT&& value) { SetProfileId(std::forward<ProfileIdT>(value)); return *this;}
64
66
69 inline const Aws::String& GetAdditionalInformation() const { return m_additionalInformation; }
70 inline bool AdditionalInformationHasBeenSet() const { return m_additionalInformationHasBeenSet; }
71 template<typename AdditionalInformationT = Aws::String>
72 void SetAdditionalInformation(AdditionalInformationT&& value) { m_additionalInformationHasBeenSet = true; m_additionalInformation = std::forward<AdditionalInformationT>(value); }
73 template<typename AdditionalInformationT = Aws::String>
74 UpdateProfileRequest& WithAdditionalInformation(AdditionalInformationT&& value) { SetAdditionalInformation(std::forward<AdditionalInformationT>(value)); return *this;}
76
78
81 inline const Aws::String& GetAccountNumber() const { return m_accountNumber; }
82 inline bool AccountNumberHasBeenSet() const { return m_accountNumberHasBeenSet; }
83 template<typename AccountNumberT = Aws::String>
84 void SetAccountNumber(AccountNumberT&& value) { m_accountNumberHasBeenSet = true; m_accountNumber = std::forward<AccountNumberT>(value); }
85 template<typename AccountNumberT = Aws::String>
86 UpdateProfileRequest& WithAccountNumber(AccountNumberT&& value) { SetAccountNumber(std::forward<AccountNumberT>(value)); return *this;}
88
90
93 inline PartyType GetPartyType() const { return m_partyType; }
94 inline bool PartyTypeHasBeenSet() const { return m_partyTypeHasBeenSet; }
95 inline void SetPartyType(PartyType value) { m_partyTypeHasBeenSet = true; m_partyType = value; }
96 inline UpdateProfileRequest& WithPartyType(PartyType value) { SetPartyType(value); return *this;}
98
100
103 inline const Aws::String& GetBusinessName() const { return m_businessName; }
104 inline bool BusinessNameHasBeenSet() const { return m_businessNameHasBeenSet; }
105 template<typename BusinessNameT = Aws::String>
106 void SetBusinessName(BusinessNameT&& value) { m_businessNameHasBeenSet = true; m_businessName = std::forward<BusinessNameT>(value); }
107 template<typename BusinessNameT = Aws::String>
108 UpdateProfileRequest& WithBusinessName(BusinessNameT&& value) { SetBusinessName(std::forward<BusinessNameT>(value)); return *this;}
110
112
115 inline const Aws::String& GetFirstName() const { return m_firstName; }
116 inline bool FirstNameHasBeenSet() const { return m_firstNameHasBeenSet; }
117 template<typename FirstNameT = Aws::String>
118 void SetFirstName(FirstNameT&& value) { m_firstNameHasBeenSet = true; m_firstName = std::forward<FirstNameT>(value); }
119 template<typename FirstNameT = Aws::String>
120 UpdateProfileRequest& WithFirstName(FirstNameT&& value) { SetFirstName(std::forward<FirstNameT>(value)); return *this;}
122
124
127 inline const Aws::String& GetMiddleName() const { return m_middleName; }
128 inline bool MiddleNameHasBeenSet() const { return m_middleNameHasBeenSet; }
129 template<typename MiddleNameT = Aws::String>
130 void SetMiddleName(MiddleNameT&& value) { m_middleNameHasBeenSet = true; m_middleName = std::forward<MiddleNameT>(value); }
131 template<typename MiddleNameT = Aws::String>
132 UpdateProfileRequest& WithMiddleName(MiddleNameT&& value) { SetMiddleName(std::forward<MiddleNameT>(value)); return *this;}
134
136
139 inline const Aws::String& GetLastName() const { return m_lastName; }
140 inline bool LastNameHasBeenSet() const { return m_lastNameHasBeenSet; }
141 template<typename LastNameT = Aws::String>
142 void SetLastName(LastNameT&& value) { m_lastNameHasBeenSet = true; m_lastName = std::forward<LastNameT>(value); }
143 template<typename LastNameT = Aws::String>
144 UpdateProfileRequest& WithLastName(LastNameT&& value) { SetLastName(std::forward<LastNameT>(value)); return *this;}
146
148
151 inline const Aws::String& GetBirthDate() const { return m_birthDate; }
152 inline bool BirthDateHasBeenSet() const { return m_birthDateHasBeenSet; }
153 template<typename BirthDateT = Aws::String>
154 void SetBirthDate(BirthDateT&& value) { m_birthDateHasBeenSet = true; m_birthDate = std::forward<BirthDateT>(value); }
155 template<typename BirthDateT = Aws::String>
156 UpdateProfileRequest& WithBirthDate(BirthDateT&& value) { SetBirthDate(std::forward<BirthDateT>(value)); return *this;}
158
160
163 inline Gender GetGender() const { return m_gender; }
164 inline bool GenderHasBeenSet() const { return m_genderHasBeenSet; }
165 inline void SetGender(Gender value) { m_genderHasBeenSet = true; m_gender = value; }
166 inline UpdateProfileRequest& WithGender(Gender value) { SetGender(value); return *this;}
168
170
174 inline const Aws::String& GetPhoneNumber() const { return m_phoneNumber; }
175 inline bool PhoneNumberHasBeenSet() const { return m_phoneNumberHasBeenSet; }
176 template<typename PhoneNumberT = Aws::String>
177 void SetPhoneNumber(PhoneNumberT&& value) { m_phoneNumberHasBeenSet = true; m_phoneNumber = std::forward<PhoneNumberT>(value); }
178 template<typename PhoneNumberT = Aws::String>
179 UpdateProfileRequest& WithPhoneNumber(PhoneNumberT&& value) { SetPhoneNumber(std::forward<PhoneNumberT>(value)); return *this;}
181
183
186 inline const Aws::String& GetMobilePhoneNumber() const { return m_mobilePhoneNumber; }
187 inline bool MobilePhoneNumberHasBeenSet() const { return m_mobilePhoneNumberHasBeenSet; }
188 template<typename MobilePhoneNumberT = Aws::String>
189 void SetMobilePhoneNumber(MobilePhoneNumberT&& value) { m_mobilePhoneNumberHasBeenSet = true; m_mobilePhoneNumber = std::forward<MobilePhoneNumberT>(value); }
190 template<typename MobilePhoneNumberT = Aws::String>
191 UpdateProfileRequest& WithMobilePhoneNumber(MobilePhoneNumberT&& value) { SetMobilePhoneNumber(std::forward<MobilePhoneNumberT>(value)); return *this;}
193
195
198 inline const Aws::String& GetHomePhoneNumber() const { return m_homePhoneNumber; }
199 inline bool HomePhoneNumberHasBeenSet() const { return m_homePhoneNumberHasBeenSet; }
200 template<typename HomePhoneNumberT = Aws::String>
201 void SetHomePhoneNumber(HomePhoneNumberT&& value) { m_homePhoneNumberHasBeenSet = true; m_homePhoneNumber = std::forward<HomePhoneNumberT>(value); }
202 template<typename HomePhoneNumberT = Aws::String>
203 UpdateProfileRequest& WithHomePhoneNumber(HomePhoneNumberT&& value) { SetHomePhoneNumber(std::forward<HomePhoneNumberT>(value)); return *this;}
205
207
210 inline const Aws::String& GetBusinessPhoneNumber() const { return m_businessPhoneNumber; }
211 inline bool BusinessPhoneNumberHasBeenSet() const { return m_businessPhoneNumberHasBeenSet; }
212 template<typename BusinessPhoneNumberT = Aws::String>
213 void SetBusinessPhoneNumber(BusinessPhoneNumberT&& value) { m_businessPhoneNumberHasBeenSet = true; m_businessPhoneNumber = std::forward<BusinessPhoneNumberT>(value); }
214 template<typename BusinessPhoneNumberT = Aws::String>
215 UpdateProfileRequest& WithBusinessPhoneNumber(BusinessPhoneNumberT&& value) { SetBusinessPhoneNumber(std::forward<BusinessPhoneNumberT>(value)); return *this;}
217
219
223 inline const Aws::String& GetEmailAddress() const { return m_emailAddress; }
224 inline bool EmailAddressHasBeenSet() const { return m_emailAddressHasBeenSet; }
225 template<typename EmailAddressT = Aws::String>
226 void SetEmailAddress(EmailAddressT&& value) { m_emailAddressHasBeenSet = true; m_emailAddress = std::forward<EmailAddressT>(value); }
227 template<typename EmailAddressT = Aws::String>
228 UpdateProfileRequest& WithEmailAddress(EmailAddressT&& value) { SetEmailAddress(std::forward<EmailAddressT>(value)); return *this;}
230
232
235 inline const Aws::String& GetPersonalEmailAddress() const { return m_personalEmailAddress; }
236 inline bool PersonalEmailAddressHasBeenSet() const { return m_personalEmailAddressHasBeenSet; }
237 template<typename PersonalEmailAddressT = Aws::String>
238 void SetPersonalEmailAddress(PersonalEmailAddressT&& value) { m_personalEmailAddressHasBeenSet = true; m_personalEmailAddress = std::forward<PersonalEmailAddressT>(value); }
239 template<typename PersonalEmailAddressT = Aws::String>
240 UpdateProfileRequest& WithPersonalEmailAddress(PersonalEmailAddressT&& value) { SetPersonalEmailAddress(std::forward<PersonalEmailAddressT>(value)); return *this;}
242
244
247 inline const Aws::String& GetBusinessEmailAddress() const { return m_businessEmailAddress; }
248 inline bool BusinessEmailAddressHasBeenSet() const { return m_businessEmailAddressHasBeenSet; }
249 template<typename BusinessEmailAddressT = Aws::String>
250 void SetBusinessEmailAddress(BusinessEmailAddressT&& value) { m_businessEmailAddressHasBeenSet = true; m_businessEmailAddress = std::forward<BusinessEmailAddressT>(value); }
251 template<typename BusinessEmailAddressT = Aws::String>
252 UpdateProfileRequest& WithBusinessEmailAddress(BusinessEmailAddressT&& value) { SetBusinessEmailAddress(std::forward<BusinessEmailAddressT>(value)); return *this;}
254
256
260 inline const UpdateAddress& GetAddress() const { return m_address; }
261 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
262 template<typename AddressT = UpdateAddress>
263 void SetAddress(AddressT&& value) { m_addressHasBeenSet = true; m_address = std::forward<AddressT>(value); }
264 template<typename AddressT = UpdateAddress>
265 UpdateProfileRequest& WithAddress(AddressT&& value) { SetAddress(std::forward<AddressT>(value)); return *this;}
267
269
272 inline const UpdateAddress& GetShippingAddress() const { return m_shippingAddress; }
273 inline bool ShippingAddressHasBeenSet() const { return m_shippingAddressHasBeenSet; }
274 template<typename ShippingAddressT = UpdateAddress>
275 void SetShippingAddress(ShippingAddressT&& value) { m_shippingAddressHasBeenSet = true; m_shippingAddress = std::forward<ShippingAddressT>(value); }
276 template<typename ShippingAddressT = UpdateAddress>
277 UpdateProfileRequest& WithShippingAddress(ShippingAddressT&& value) { SetShippingAddress(std::forward<ShippingAddressT>(value)); return *this;}
279
281
284 inline const UpdateAddress& GetMailingAddress() const { return m_mailingAddress; }
285 inline bool MailingAddressHasBeenSet() const { return m_mailingAddressHasBeenSet; }
286 template<typename MailingAddressT = UpdateAddress>
287 void SetMailingAddress(MailingAddressT&& value) { m_mailingAddressHasBeenSet = true; m_mailingAddress = std::forward<MailingAddressT>(value); }
288 template<typename MailingAddressT = UpdateAddress>
289 UpdateProfileRequest& WithMailingAddress(MailingAddressT&& value) { SetMailingAddress(std::forward<MailingAddressT>(value)); return *this;}
291
293
296 inline const UpdateAddress& GetBillingAddress() const { return m_billingAddress; }
297 inline bool BillingAddressHasBeenSet() const { return m_billingAddressHasBeenSet; }
298 template<typename BillingAddressT = UpdateAddress>
299 void SetBillingAddress(BillingAddressT&& value) { m_billingAddressHasBeenSet = true; m_billingAddress = std::forward<BillingAddressT>(value); }
300 template<typename BillingAddressT = UpdateAddress>
301 UpdateProfileRequest& WithBillingAddress(BillingAddressT&& value) { SetBillingAddress(std::forward<BillingAddressT>(value)); return *this;}
303
305
308 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const { return m_attributes; }
309 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
310 template<typename AttributesT = Aws::Map<Aws::String, Aws::String>>
311 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes = std::forward<AttributesT>(value); }
312 template<typename AttributesT = Aws::Map<Aws::String, Aws::String>>
313 UpdateProfileRequest& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
314 template<typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
315 UpdateProfileRequest& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
316 m_attributesHasBeenSet = true; m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value)); return *this;
317 }
319
321
325 inline const Aws::String& GetPartyTypeString() const { return m_partyTypeString; }
326 inline bool PartyTypeStringHasBeenSet() const { return m_partyTypeStringHasBeenSet; }
327 template<typename PartyTypeStringT = Aws::String>
328 void SetPartyTypeString(PartyTypeStringT&& value) { m_partyTypeStringHasBeenSet = true; m_partyTypeString = std::forward<PartyTypeStringT>(value); }
329 template<typename PartyTypeStringT = Aws::String>
330 UpdateProfileRequest& WithPartyTypeString(PartyTypeStringT&& value) { SetPartyTypeString(std::forward<PartyTypeStringT>(value)); return *this;}
332
334
337 inline const Aws::String& GetGenderString() const { return m_genderString; }
338 inline bool GenderStringHasBeenSet() const { return m_genderStringHasBeenSet; }
339 template<typename GenderStringT = Aws::String>
340 void SetGenderString(GenderStringT&& value) { m_genderStringHasBeenSet = true; m_genderString = std::forward<GenderStringT>(value); }
341 template<typename GenderStringT = Aws::String>
342 UpdateProfileRequest& WithGenderString(GenderStringT&& value) { SetGenderString(std::forward<GenderStringT>(value)); return *this;}
344
346
349 inline ProfileType GetProfileType() const { return m_profileType; }
350 inline bool ProfileTypeHasBeenSet() const { return m_profileTypeHasBeenSet; }
351 inline void SetProfileType(ProfileType value) { m_profileTypeHasBeenSet = true; m_profileType = value; }
352 inline UpdateProfileRequest& WithProfileType(ProfileType value) { SetProfileType(value); return *this;}
354
356
359 inline const EngagementPreferences& GetEngagementPreferences() const { return m_engagementPreferences; }
360 inline bool EngagementPreferencesHasBeenSet() const { return m_engagementPreferencesHasBeenSet; }
361 template<typename EngagementPreferencesT = EngagementPreferences>
362 void SetEngagementPreferences(EngagementPreferencesT&& value) { m_engagementPreferencesHasBeenSet = true; m_engagementPreferences = std::forward<EngagementPreferencesT>(value); }
363 template<typename EngagementPreferencesT = EngagementPreferences>
364 UpdateProfileRequest& WithEngagementPreferences(EngagementPreferencesT&& value) { SetEngagementPreferences(std::forward<EngagementPreferencesT>(value)); return *this;}
366 private:
367
368 Aws::String m_domainName;
369 bool m_domainNameHasBeenSet = false;
370
371 Aws::String m_profileId;
372 bool m_profileIdHasBeenSet = false;
373
374 Aws::String m_additionalInformation;
375 bool m_additionalInformationHasBeenSet = false;
376
377 Aws::String m_accountNumber;
378 bool m_accountNumberHasBeenSet = false;
379
380 PartyType m_partyType{PartyType::NOT_SET};
381 bool m_partyTypeHasBeenSet = false;
382
383 Aws::String m_businessName;
384 bool m_businessNameHasBeenSet = false;
385
386 Aws::String m_firstName;
387 bool m_firstNameHasBeenSet = false;
388
389 Aws::String m_middleName;
390 bool m_middleNameHasBeenSet = false;
391
392 Aws::String m_lastName;
393 bool m_lastNameHasBeenSet = false;
394
395 Aws::String m_birthDate;
396 bool m_birthDateHasBeenSet = false;
397
398 Gender m_gender{Gender::NOT_SET};
399 bool m_genderHasBeenSet = false;
400
401 Aws::String m_phoneNumber;
402 bool m_phoneNumberHasBeenSet = false;
403
404 Aws::String m_mobilePhoneNumber;
405 bool m_mobilePhoneNumberHasBeenSet = false;
406
407 Aws::String m_homePhoneNumber;
408 bool m_homePhoneNumberHasBeenSet = false;
409
410 Aws::String m_businessPhoneNumber;
411 bool m_businessPhoneNumberHasBeenSet = false;
412
413 Aws::String m_emailAddress;
414 bool m_emailAddressHasBeenSet = false;
415
416 Aws::String m_personalEmailAddress;
417 bool m_personalEmailAddressHasBeenSet = false;
418
419 Aws::String m_businessEmailAddress;
420 bool m_businessEmailAddressHasBeenSet = false;
421
422 UpdateAddress m_address;
423 bool m_addressHasBeenSet = false;
424
425 UpdateAddress m_shippingAddress;
426 bool m_shippingAddressHasBeenSet = false;
427
428 UpdateAddress m_mailingAddress;
429 bool m_mailingAddressHasBeenSet = false;
430
431 UpdateAddress m_billingAddress;
432 bool m_billingAddressHasBeenSet = false;
433
435 bool m_attributesHasBeenSet = false;
436
437 Aws::String m_partyTypeString;
438 bool m_partyTypeStringHasBeenSet = false;
439
440 Aws::String m_genderString;
441 bool m_genderStringHasBeenSet = false;
442
443 ProfileType m_profileType{ProfileType::NOT_SET};
444 bool m_profileTypeHasBeenSet = false;
445
446 EngagementPreferences m_engagementPreferences;
447 bool m_engagementPreferencesHasBeenSet = false;
448 };
449
450} // namespace Model
451} // namespace CustomerProfiles
452} // 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