AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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 <utility>
15
16namespace Aws
17{
18namespace CustomerProfiles
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_CUSTOMERPROFILES_API UpdateProfileRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "UpdateProfile"; }
35
36 AWS_CUSTOMERPROFILES_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Aws::String& GetDomainName() const { return m_domainName; }
44 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
45 template<typename DomainNameT = Aws::String>
46 void SetDomainName(DomainNameT&& value) { m_domainNameHasBeenSet = true; m_domainName = std::forward<DomainNameT>(value); }
47 template<typename DomainNameT = Aws::String>
48 UpdateProfileRequest& WithDomainName(DomainNameT&& value) { SetDomainName(std::forward<DomainNameT>(value)); return *this;}
50
52
55 inline const Aws::String& GetProfileId() const { return m_profileId; }
56 inline bool ProfileIdHasBeenSet() const { return m_profileIdHasBeenSet; }
57 template<typename ProfileIdT = Aws::String>
58 void SetProfileId(ProfileIdT&& value) { m_profileIdHasBeenSet = true; m_profileId = std::forward<ProfileIdT>(value); }
59 template<typename ProfileIdT = Aws::String>
60 UpdateProfileRequest& WithProfileId(ProfileIdT&& value) { SetProfileId(std::forward<ProfileIdT>(value)); return *this;}
62
64
67 inline const Aws::String& GetAdditionalInformation() const { return m_additionalInformation; }
68 inline bool AdditionalInformationHasBeenSet() const { return m_additionalInformationHasBeenSet; }
69 template<typename AdditionalInformationT = Aws::String>
70 void SetAdditionalInformation(AdditionalInformationT&& value) { m_additionalInformationHasBeenSet = true; m_additionalInformation = std::forward<AdditionalInformationT>(value); }
71 template<typename AdditionalInformationT = Aws::String>
72 UpdateProfileRequest& WithAdditionalInformation(AdditionalInformationT&& value) { SetAdditionalInformation(std::forward<AdditionalInformationT>(value)); return *this;}
74
76
79 inline const Aws::String& GetAccountNumber() const { return m_accountNumber; }
80 inline bool AccountNumberHasBeenSet() const { return m_accountNumberHasBeenSet; }
81 template<typename AccountNumberT = Aws::String>
82 void SetAccountNumber(AccountNumberT&& value) { m_accountNumberHasBeenSet = true; m_accountNumber = std::forward<AccountNumberT>(value); }
83 template<typename AccountNumberT = Aws::String>
84 UpdateProfileRequest& WithAccountNumber(AccountNumberT&& value) { SetAccountNumber(std::forward<AccountNumberT>(value)); return *this;}
86
88
91 inline PartyType GetPartyType() const { return m_partyType; }
92 inline bool PartyTypeHasBeenSet() const { return m_partyTypeHasBeenSet; }
93 inline void SetPartyType(PartyType value) { m_partyTypeHasBeenSet = true; m_partyType = value; }
94 inline UpdateProfileRequest& WithPartyType(PartyType value) { SetPartyType(value); return *this;}
96
98
101 inline const Aws::String& GetBusinessName() const { return m_businessName; }
102 inline bool BusinessNameHasBeenSet() const { return m_businessNameHasBeenSet; }
103 template<typename BusinessNameT = Aws::String>
104 void SetBusinessName(BusinessNameT&& value) { m_businessNameHasBeenSet = true; m_businessName = std::forward<BusinessNameT>(value); }
105 template<typename BusinessNameT = Aws::String>
106 UpdateProfileRequest& WithBusinessName(BusinessNameT&& value) { SetBusinessName(std::forward<BusinessNameT>(value)); return *this;}
108
110
113 inline const Aws::String& GetFirstName() const { return m_firstName; }
114 inline bool FirstNameHasBeenSet() const { return m_firstNameHasBeenSet; }
115 template<typename FirstNameT = Aws::String>
116 void SetFirstName(FirstNameT&& value) { m_firstNameHasBeenSet = true; m_firstName = std::forward<FirstNameT>(value); }
117 template<typename FirstNameT = Aws::String>
118 UpdateProfileRequest& WithFirstName(FirstNameT&& value) { SetFirstName(std::forward<FirstNameT>(value)); return *this;}
120
122
125 inline const Aws::String& GetMiddleName() const { return m_middleName; }
126 inline bool MiddleNameHasBeenSet() const { return m_middleNameHasBeenSet; }
127 template<typename MiddleNameT = Aws::String>
128 void SetMiddleName(MiddleNameT&& value) { m_middleNameHasBeenSet = true; m_middleName = std::forward<MiddleNameT>(value); }
129 template<typename MiddleNameT = Aws::String>
130 UpdateProfileRequest& WithMiddleName(MiddleNameT&& value) { SetMiddleName(std::forward<MiddleNameT>(value)); return *this;}
132
134
137 inline const Aws::String& GetLastName() const { return m_lastName; }
138 inline bool LastNameHasBeenSet() const { return m_lastNameHasBeenSet; }
139 template<typename LastNameT = Aws::String>
140 void SetLastName(LastNameT&& value) { m_lastNameHasBeenSet = true; m_lastName = std::forward<LastNameT>(value); }
141 template<typename LastNameT = Aws::String>
142 UpdateProfileRequest& WithLastName(LastNameT&& value) { SetLastName(std::forward<LastNameT>(value)); return *this;}
144
146
149 inline const Aws::String& GetBirthDate() const { return m_birthDate; }
150 inline bool BirthDateHasBeenSet() const { return m_birthDateHasBeenSet; }
151 template<typename BirthDateT = Aws::String>
152 void SetBirthDate(BirthDateT&& value) { m_birthDateHasBeenSet = true; m_birthDate = std::forward<BirthDateT>(value); }
153 template<typename BirthDateT = Aws::String>
154 UpdateProfileRequest& WithBirthDate(BirthDateT&& value) { SetBirthDate(std::forward<BirthDateT>(value)); return *this;}
156
158
161 inline Gender GetGender() const { return m_gender; }
162 inline bool GenderHasBeenSet() const { return m_genderHasBeenSet; }
163 inline void SetGender(Gender value) { m_genderHasBeenSet = true; m_gender = value; }
164 inline UpdateProfileRequest& WithGender(Gender value) { SetGender(value); return *this;}
166
168
172 inline const Aws::String& GetPhoneNumber() const { return m_phoneNumber; }
173 inline bool PhoneNumberHasBeenSet() const { return m_phoneNumberHasBeenSet; }
174 template<typename PhoneNumberT = Aws::String>
175 void SetPhoneNumber(PhoneNumberT&& value) { m_phoneNumberHasBeenSet = true; m_phoneNumber = std::forward<PhoneNumberT>(value); }
176 template<typename PhoneNumberT = Aws::String>
177 UpdateProfileRequest& WithPhoneNumber(PhoneNumberT&& value) { SetPhoneNumber(std::forward<PhoneNumberT>(value)); return *this;}
179
181
184 inline const Aws::String& GetMobilePhoneNumber() const { return m_mobilePhoneNumber; }
185 inline bool MobilePhoneNumberHasBeenSet() const { return m_mobilePhoneNumberHasBeenSet; }
186 template<typename MobilePhoneNumberT = Aws::String>
187 void SetMobilePhoneNumber(MobilePhoneNumberT&& value) { m_mobilePhoneNumberHasBeenSet = true; m_mobilePhoneNumber = std::forward<MobilePhoneNumberT>(value); }
188 template<typename MobilePhoneNumberT = Aws::String>
189 UpdateProfileRequest& WithMobilePhoneNumber(MobilePhoneNumberT&& value) { SetMobilePhoneNumber(std::forward<MobilePhoneNumberT>(value)); return *this;}
191
193
196 inline const Aws::String& GetHomePhoneNumber() const { return m_homePhoneNumber; }
197 inline bool HomePhoneNumberHasBeenSet() const { return m_homePhoneNumberHasBeenSet; }
198 template<typename HomePhoneNumberT = Aws::String>
199 void SetHomePhoneNumber(HomePhoneNumberT&& value) { m_homePhoneNumberHasBeenSet = true; m_homePhoneNumber = std::forward<HomePhoneNumberT>(value); }
200 template<typename HomePhoneNumberT = Aws::String>
201 UpdateProfileRequest& WithHomePhoneNumber(HomePhoneNumberT&& value) { SetHomePhoneNumber(std::forward<HomePhoneNumberT>(value)); return *this;}
203
205
208 inline const Aws::String& GetBusinessPhoneNumber() const { return m_businessPhoneNumber; }
209 inline bool BusinessPhoneNumberHasBeenSet() const { return m_businessPhoneNumberHasBeenSet; }
210 template<typename BusinessPhoneNumberT = Aws::String>
211 void SetBusinessPhoneNumber(BusinessPhoneNumberT&& value) { m_businessPhoneNumberHasBeenSet = true; m_businessPhoneNumber = std::forward<BusinessPhoneNumberT>(value); }
212 template<typename BusinessPhoneNumberT = Aws::String>
213 UpdateProfileRequest& WithBusinessPhoneNumber(BusinessPhoneNumberT&& value) { SetBusinessPhoneNumber(std::forward<BusinessPhoneNumberT>(value)); return *this;}
215
217
221 inline const Aws::String& GetEmailAddress() const { return m_emailAddress; }
222 inline bool EmailAddressHasBeenSet() const { return m_emailAddressHasBeenSet; }
223 template<typename EmailAddressT = Aws::String>
224 void SetEmailAddress(EmailAddressT&& value) { m_emailAddressHasBeenSet = true; m_emailAddress = std::forward<EmailAddressT>(value); }
225 template<typename EmailAddressT = Aws::String>
226 UpdateProfileRequest& WithEmailAddress(EmailAddressT&& value) { SetEmailAddress(std::forward<EmailAddressT>(value)); return *this;}
228
230
233 inline const Aws::String& GetPersonalEmailAddress() const { return m_personalEmailAddress; }
234 inline bool PersonalEmailAddressHasBeenSet() const { return m_personalEmailAddressHasBeenSet; }
235 template<typename PersonalEmailAddressT = Aws::String>
236 void SetPersonalEmailAddress(PersonalEmailAddressT&& value) { m_personalEmailAddressHasBeenSet = true; m_personalEmailAddress = std::forward<PersonalEmailAddressT>(value); }
237 template<typename PersonalEmailAddressT = Aws::String>
238 UpdateProfileRequest& WithPersonalEmailAddress(PersonalEmailAddressT&& value) { SetPersonalEmailAddress(std::forward<PersonalEmailAddressT>(value)); return *this;}
240
242
245 inline const Aws::String& GetBusinessEmailAddress() const { return m_businessEmailAddress; }
246 inline bool BusinessEmailAddressHasBeenSet() const { return m_businessEmailAddressHasBeenSet; }
247 template<typename BusinessEmailAddressT = Aws::String>
248 void SetBusinessEmailAddress(BusinessEmailAddressT&& value) { m_businessEmailAddressHasBeenSet = true; m_businessEmailAddress = std::forward<BusinessEmailAddressT>(value); }
249 template<typename BusinessEmailAddressT = Aws::String>
250 UpdateProfileRequest& WithBusinessEmailAddress(BusinessEmailAddressT&& value) { SetBusinessEmailAddress(std::forward<BusinessEmailAddressT>(value)); return *this;}
252
254
258 inline const UpdateAddress& GetAddress() const { return m_address; }
259 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
260 template<typename AddressT = UpdateAddress>
261 void SetAddress(AddressT&& value) { m_addressHasBeenSet = true; m_address = std::forward<AddressT>(value); }
262 template<typename AddressT = UpdateAddress>
263 UpdateProfileRequest& WithAddress(AddressT&& value) { SetAddress(std::forward<AddressT>(value)); return *this;}
265
267
270 inline const UpdateAddress& GetShippingAddress() const { return m_shippingAddress; }
271 inline bool ShippingAddressHasBeenSet() const { return m_shippingAddressHasBeenSet; }
272 template<typename ShippingAddressT = UpdateAddress>
273 void SetShippingAddress(ShippingAddressT&& value) { m_shippingAddressHasBeenSet = true; m_shippingAddress = std::forward<ShippingAddressT>(value); }
274 template<typename ShippingAddressT = UpdateAddress>
275 UpdateProfileRequest& WithShippingAddress(ShippingAddressT&& value) { SetShippingAddress(std::forward<ShippingAddressT>(value)); return *this;}
277
279
282 inline const UpdateAddress& GetMailingAddress() const { return m_mailingAddress; }
283 inline bool MailingAddressHasBeenSet() const { return m_mailingAddressHasBeenSet; }
284 template<typename MailingAddressT = UpdateAddress>
285 void SetMailingAddress(MailingAddressT&& value) { m_mailingAddressHasBeenSet = true; m_mailingAddress = std::forward<MailingAddressT>(value); }
286 template<typename MailingAddressT = UpdateAddress>
287 UpdateProfileRequest& WithMailingAddress(MailingAddressT&& value) { SetMailingAddress(std::forward<MailingAddressT>(value)); return *this;}
289
291
294 inline const UpdateAddress& GetBillingAddress() const { return m_billingAddress; }
295 inline bool BillingAddressHasBeenSet() const { return m_billingAddressHasBeenSet; }
296 template<typename BillingAddressT = UpdateAddress>
297 void SetBillingAddress(BillingAddressT&& value) { m_billingAddressHasBeenSet = true; m_billingAddress = std::forward<BillingAddressT>(value); }
298 template<typename BillingAddressT = UpdateAddress>
299 UpdateProfileRequest& WithBillingAddress(BillingAddressT&& value) { SetBillingAddress(std::forward<BillingAddressT>(value)); return *this;}
301
303
306 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const { return m_attributes; }
307 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
308 template<typename AttributesT = Aws::Map<Aws::String, Aws::String>>
309 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes = std::forward<AttributesT>(value); }
310 template<typename AttributesT = Aws::Map<Aws::String, Aws::String>>
311 UpdateProfileRequest& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
312 template<typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
313 UpdateProfileRequest& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
314 m_attributesHasBeenSet = true; m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value)); return *this;
315 }
317
319
323 inline const Aws::String& GetPartyTypeString() const { return m_partyTypeString; }
324 inline bool PartyTypeStringHasBeenSet() const { return m_partyTypeStringHasBeenSet; }
325 template<typename PartyTypeStringT = Aws::String>
326 void SetPartyTypeString(PartyTypeStringT&& value) { m_partyTypeStringHasBeenSet = true; m_partyTypeString = std::forward<PartyTypeStringT>(value); }
327 template<typename PartyTypeStringT = Aws::String>
328 UpdateProfileRequest& WithPartyTypeString(PartyTypeStringT&& value) { SetPartyTypeString(std::forward<PartyTypeStringT>(value)); return *this;}
330
332
335 inline const Aws::String& GetGenderString() const { return m_genderString; }
336 inline bool GenderStringHasBeenSet() const { return m_genderStringHasBeenSet; }
337 template<typename GenderStringT = Aws::String>
338 void SetGenderString(GenderStringT&& value) { m_genderStringHasBeenSet = true; m_genderString = std::forward<GenderStringT>(value); }
339 template<typename GenderStringT = Aws::String>
340 UpdateProfileRequest& WithGenderString(GenderStringT&& value) { SetGenderString(std::forward<GenderStringT>(value)); return *this;}
342 private:
343
344 Aws::String m_domainName;
345 bool m_domainNameHasBeenSet = false;
346
347 Aws::String m_profileId;
348 bool m_profileIdHasBeenSet = false;
349
350 Aws::String m_additionalInformation;
351 bool m_additionalInformationHasBeenSet = false;
352
353 Aws::String m_accountNumber;
354 bool m_accountNumberHasBeenSet = false;
355
356 PartyType m_partyType{PartyType::NOT_SET};
357 bool m_partyTypeHasBeenSet = false;
358
359 Aws::String m_businessName;
360 bool m_businessNameHasBeenSet = false;
361
362 Aws::String m_firstName;
363 bool m_firstNameHasBeenSet = false;
364
365 Aws::String m_middleName;
366 bool m_middleNameHasBeenSet = false;
367
368 Aws::String m_lastName;
369 bool m_lastNameHasBeenSet = false;
370
371 Aws::String m_birthDate;
372 bool m_birthDateHasBeenSet = false;
373
374 Gender m_gender{Gender::NOT_SET};
375 bool m_genderHasBeenSet = false;
376
377 Aws::String m_phoneNumber;
378 bool m_phoneNumberHasBeenSet = false;
379
380 Aws::String m_mobilePhoneNumber;
381 bool m_mobilePhoneNumberHasBeenSet = false;
382
383 Aws::String m_homePhoneNumber;
384 bool m_homePhoneNumberHasBeenSet = false;
385
386 Aws::String m_businessPhoneNumber;
387 bool m_businessPhoneNumberHasBeenSet = false;
388
389 Aws::String m_emailAddress;
390 bool m_emailAddressHasBeenSet = false;
391
392 Aws::String m_personalEmailAddress;
393 bool m_personalEmailAddressHasBeenSet = false;
394
395 Aws::String m_businessEmailAddress;
396 bool m_businessEmailAddressHasBeenSet = false;
397
398 UpdateAddress m_address;
399 bool m_addressHasBeenSet = false;
400
401 UpdateAddress m_shippingAddress;
402 bool m_shippingAddressHasBeenSet = false;
403
404 UpdateAddress m_mailingAddress;
405 bool m_mailingAddressHasBeenSet = false;
406
407 UpdateAddress m_billingAddress;
408 bool m_billingAddressHasBeenSet = false;
409
411 bool m_attributesHasBeenSet = false;
412
413 Aws::String m_partyTypeString;
414 bool m_partyTypeStringHasBeenSet = false;
415
416 Aws::String m_genderString;
417 bool m_genderStringHasBeenSet = false;
418 };
419
420} // namespace Model
421} // namespace CustomerProfiles
422} // 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 & 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)
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)
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