AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
ProfileAttributes.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/CustomerProfiles_EXPORTS.h>
10#include <aws/customer-profiles/model/AddressDimension.h>
11#include <aws/customer-profiles/model/AttributeDimension.h>
12#include <aws/customer-profiles/model/DateDimension.h>
13#include <aws/customer-profiles/model/ExtraLengthValueProfileDimension.h>
14#include <aws/customer-profiles/model/ProfileDimension.h>
15#include <aws/customer-profiles/model/ProfileTypeDimension.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace CustomerProfiles {
27namespace Model {
28
36 public:
37 AWS_CUSTOMERPROFILES_API ProfileAttributes() = default;
38 AWS_CUSTOMERPROFILES_API ProfileAttributes(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CUSTOMERPROFILES_API ProfileAttributes& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
46 inline const ProfileDimension& GetAccountNumber() const { return m_accountNumber; }
47 inline bool AccountNumberHasBeenSet() const { return m_accountNumberHasBeenSet; }
48 template <typename AccountNumberT = ProfileDimension>
49 void SetAccountNumber(AccountNumberT&& value) {
50 m_accountNumberHasBeenSet = true;
51 m_accountNumber = std::forward<AccountNumberT>(value);
52 }
53 template <typename AccountNumberT = ProfileDimension>
54 ProfileAttributes& WithAccountNumber(AccountNumberT&& value) {
55 SetAccountNumber(std::forward<AccountNumberT>(value));
56 return *this;
57 }
59
61
64 inline const ExtraLengthValueProfileDimension& GetAdditionalInformation() const { return m_additionalInformation; }
65 inline bool AdditionalInformationHasBeenSet() const { return m_additionalInformationHasBeenSet; }
66 template <typename AdditionalInformationT = ExtraLengthValueProfileDimension>
67 void SetAdditionalInformation(AdditionalInformationT&& value) {
68 m_additionalInformationHasBeenSet = true;
69 m_additionalInformation = std::forward<AdditionalInformationT>(value);
70 }
71 template <typename AdditionalInformationT = ExtraLengthValueProfileDimension>
72 ProfileAttributes& WithAdditionalInformation(AdditionalInformationT&& value) {
73 SetAdditionalInformation(std::forward<AdditionalInformationT>(value));
74 return *this;
75 }
77
79
82 inline const ProfileDimension& GetFirstName() const { return m_firstName; }
83 inline bool FirstNameHasBeenSet() const { return m_firstNameHasBeenSet; }
84 template <typename FirstNameT = ProfileDimension>
85 void SetFirstName(FirstNameT&& value) {
86 m_firstNameHasBeenSet = true;
87 m_firstName = std::forward<FirstNameT>(value);
88 }
89 template <typename FirstNameT = ProfileDimension>
90 ProfileAttributes& WithFirstName(FirstNameT&& value) {
91 SetFirstName(std::forward<FirstNameT>(value));
92 return *this;
93 }
95
97
100 inline const ProfileDimension& GetLastName() const { return m_lastName; }
101 inline bool LastNameHasBeenSet() const { return m_lastNameHasBeenSet; }
102 template <typename LastNameT = ProfileDimension>
103 void SetLastName(LastNameT&& value) {
104 m_lastNameHasBeenSet = true;
105 m_lastName = std::forward<LastNameT>(value);
106 }
107 template <typename LastNameT = ProfileDimension>
108 ProfileAttributes& WithLastName(LastNameT&& value) {
109 SetLastName(std::forward<LastNameT>(value));
110 return *this;
111 }
113
115
118 inline const ProfileDimension& GetMiddleName() const { return m_middleName; }
119 inline bool MiddleNameHasBeenSet() const { return m_middleNameHasBeenSet; }
120 template <typename MiddleNameT = ProfileDimension>
121 void SetMiddleName(MiddleNameT&& value) {
122 m_middleNameHasBeenSet = true;
123 m_middleName = std::forward<MiddleNameT>(value);
124 }
125 template <typename MiddleNameT = ProfileDimension>
126 ProfileAttributes& WithMiddleName(MiddleNameT&& value) {
127 SetMiddleName(std::forward<MiddleNameT>(value));
128 return *this;
129 }
131
133
136 inline const ProfileDimension& GetGenderString() const { return m_genderString; }
137 inline bool GenderStringHasBeenSet() const { return m_genderStringHasBeenSet; }
138 template <typename GenderStringT = ProfileDimension>
139 void SetGenderString(GenderStringT&& value) {
140 m_genderStringHasBeenSet = true;
141 m_genderString = std::forward<GenderStringT>(value);
142 }
143 template <typename GenderStringT = ProfileDimension>
144 ProfileAttributes& WithGenderString(GenderStringT&& value) {
145 SetGenderString(std::forward<GenderStringT>(value));
146 return *this;
147 }
149
151
154 inline const ProfileDimension& GetPartyTypeString() const { return m_partyTypeString; }
155 inline bool PartyTypeStringHasBeenSet() const { return m_partyTypeStringHasBeenSet; }
156 template <typename PartyTypeStringT = ProfileDimension>
157 void SetPartyTypeString(PartyTypeStringT&& value) {
158 m_partyTypeStringHasBeenSet = true;
159 m_partyTypeString = std::forward<PartyTypeStringT>(value);
160 }
161 template <typename PartyTypeStringT = ProfileDimension>
162 ProfileAttributes& WithPartyTypeString(PartyTypeStringT&& value) {
163 SetPartyTypeString(std::forward<PartyTypeStringT>(value));
164 return *this;
165 }
167
169
172 inline const DateDimension& GetBirthDate() const { return m_birthDate; }
173 inline bool BirthDateHasBeenSet() const { return m_birthDateHasBeenSet; }
174 template <typename BirthDateT = DateDimension>
175 void SetBirthDate(BirthDateT&& value) {
176 m_birthDateHasBeenSet = true;
177 m_birthDate = std::forward<BirthDateT>(value);
178 }
179 template <typename BirthDateT = DateDimension>
180 ProfileAttributes& WithBirthDate(BirthDateT&& value) {
181 SetBirthDate(std::forward<BirthDateT>(value));
182 return *this;
183 }
185
187
190 inline const ProfileDimension& GetPhoneNumber() const { return m_phoneNumber; }
191 inline bool PhoneNumberHasBeenSet() const { return m_phoneNumberHasBeenSet; }
192 template <typename PhoneNumberT = ProfileDimension>
193 void SetPhoneNumber(PhoneNumberT&& value) {
194 m_phoneNumberHasBeenSet = true;
195 m_phoneNumber = std::forward<PhoneNumberT>(value);
196 }
197 template <typename PhoneNumberT = ProfileDimension>
198 ProfileAttributes& WithPhoneNumber(PhoneNumberT&& value) {
199 SetPhoneNumber(std::forward<PhoneNumberT>(value));
200 return *this;
201 }
203
205
208 inline const ProfileDimension& GetBusinessName() const { return m_businessName; }
209 inline bool BusinessNameHasBeenSet() const { return m_businessNameHasBeenSet; }
210 template <typename BusinessNameT = ProfileDimension>
211 void SetBusinessName(BusinessNameT&& value) {
212 m_businessNameHasBeenSet = true;
213 m_businessName = std::forward<BusinessNameT>(value);
214 }
215 template <typename BusinessNameT = ProfileDimension>
216 ProfileAttributes& WithBusinessName(BusinessNameT&& value) {
217 SetBusinessName(std::forward<BusinessNameT>(value));
218 return *this;
219 }
221
223
226 inline const ProfileDimension& GetBusinessPhoneNumber() const { return m_businessPhoneNumber; }
227 inline bool BusinessPhoneNumberHasBeenSet() const { return m_businessPhoneNumberHasBeenSet; }
228 template <typename BusinessPhoneNumberT = ProfileDimension>
229 void SetBusinessPhoneNumber(BusinessPhoneNumberT&& value) {
230 m_businessPhoneNumberHasBeenSet = true;
231 m_businessPhoneNumber = std::forward<BusinessPhoneNumberT>(value);
232 }
233 template <typename BusinessPhoneNumberT = ProfileDimension>
234 ProfileAttributes& WithBusinessPhoneNumber(BusinessPhoneNumberT&& value) {
235 SetBusinessPhoneNumber(std::forward<BusinessPhoneNumberT>(value));
236 return *this;
237 }
239
241
244 inline const ProfileDimension& GetHomePhoneNumber() const { return m_homePhoneNumber; }
245 inline bool HomePhoneNumberHasBeenSet() const { return m_homePhoneNumberHasBeenSet; }
246 template <typename HomePhoneNumberT = ProfileDimension>
247 void SetHomePhoneNumber(HomePhoneNumberT&& value) {
248 m_homePhoneNumberHasBeenSet = true;
249 m_homePhoneNumber = std::forward<HomePhoneNumberT>(value);
250 }
251 template <typename HomePhoneNumberT = ProfileDimension>
252 ProfileAttributes& WithHomePhoneNumber(HomePhoneNumberT&& value) {
253 SetHomePhoneNumber(std::forward<HomePhoneNumberT>(value));
254 return *this;
255 }
257
259
262 inline const ProfileDimension& GetMobilePhoneNumber() const { return m_mobilePhoneNumber; }
263 inline bool MobilePhoneNumberHasBeenSet() const { return m_mobilePhoneNumberHasBeenSet; }
264 template <typename MobilePhoneNumberT = ProfileDimension>
265 void SetMobilePhoneNumber(MobilePhoneNumberT&& value) {
266 m_mobilePhoneNumberHasBeenSet = true;
267 m_mobilePhoneNumber = std::forward<MobilePhoneNumberT>(value);
268 }
269 template <typename MobilePhoneNumberT = ProfileDimension>
270 ProfileAttributes& WithMobilePhoneNumber(MobilePhoneNumberT&& value) {
271 SetMobilePhoneNumber(std::forward<MobilePhoneNumberT>(value));
272 return *this;
273 }
275
277
280 inline const ProfileDimension& GetEmailAddress() const { return m_emailAddress; }
281 inline bool EmailAddressHasBeenSet() const { return m_emailAddressHasBeenSet; }
282 template <typename EmailAddressT = ProfileDimension>
283 void SetEmailAddress(EmailAddressT&& value) {
284 m_emailAddressHasBeenSet = true;
285 m_emailAddress = std::forward<EmailAddressT>(value);
286 }
287 template <typename EmailAddressT = ProfileDimension>
288 ProfileAttributes& WithEmailAddress(EmailAddressT&& value) {
289 SetEmailAddress(std::forward<EmailAddressT>(value));
290 return *this;
291 }
293
295
298 inline const ProfileDimension& GetPersonalEmailAddress() const { return m_personalEmailAddress; }
299 inline bool PersonalEmailAddressHasBeenSet() const { return m_personalEmailAddressHasBeenSet; }
300 template <typename PersonalEmailAddressT = ProfileDimension>
301 void SetPersonalEmailAddress(PersonalEmailAddressT&& value) {
302 m_personalEmailAddressHasBeenSet = true;
303 m_personalEmailAddress = std::forward<PersonalEmailAddressT>(value);
304 }
305 template <typename PersonalEmailAddressT = ProfileDimension>
306 ProfileAttributes& WithPersonalEmailAddress(PersonalEmailAddressT&& value) {
307 SetPersonalEmailAddress(std::forward<PersonalEmailAddressT>(value));
308 return *this;
309 }
311
313
316 inline const ProfileDimension& GetBusinessEmailAddress() const { return m_businessEmailAddress; }
317 inline bool BusinessEmailAddressHasBeenSet() const { return m_businessEmailAddressHasBeenSet; }
318 template <typename BusinessEmailAddressT = ProfileDimension>
319 void SetBusinessEmailAddress(BusinessEmailAddressT&& value) {
320 m_businessEmailAddressHasBeenSet = true;
321 m_businessEmailAddress = std::forward<BusinessEmailAddressT>(value);
322 }
323 template <typename BusinessEmailAddressT = ProfileDimension>
324 ProfileAttributes& WithBusinessEmailAddress(BusinessEmailAddressT&& value) {
325 SetBusinessEmailAddress(std::forward<BusinessEmailAddressT>(value));
326 return *this;
327 }
329
331
334 inline const AddressDimension& GetAddress() const { return m_address; }
335 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
336 template <typename AddressT = AddressDimension>
337 void SetAddress(AddressT&& value) {
338 m_addressHasBeenSet = true;
339 m_address = std::forward<AddressT>(value);
340 }
341 template <typename AddressT = AddressDimension>
342 ProfileAttributes& WithAddress(AddressT&& value) {
343 SetAddress(std::forward<AddressT>(value));
344 return *this;
345 }
347
349
352 inline const AddressDimension& GetShippingAddress() const { return m_shippingAddress; }
353 inline bool ShippingAddressHasBeenSet() const { return m_shippingAddressHasBeenSet; }
354 template <typename ShippingAddressT = AddressDimension>
355 void SetShippingAddress(ShippingAddressT&& value) {
356 m_shippingAddressHasBeenSet = true;
357 m_shippingAddress = std::forward<ShippingAddressT>(value);
358 }
359 template <typename ShippingAddressT = AddressDimension>
360 ProfileAttributes& WithShippingAddress(ShippingAddressT&& value) {
361 SetShippingAddress(std::forward<ShippingAddressT>(value));
362 return *this;
363 }
365
367
370 inline const AddressDimension& GetMailingAddress() const { return m_mailingAddress; }
371 inline bool MailingAddressHasBeenSet() const { return m_mailingAddressHasBeenSet; }
372 template <typename MailingAddressT = AddressDimension>
373 void SetMailingAddress(MailingAddressT&& value) {
374 m_mailingAddressHasBeenSet = true;
375 m_mailingAddress = std::forward<MailingAddressT>(value);
376 }
377 template <typename MailingAddressT = AddressDimension>
378 ProfileAttributes& WithMailingAddress(MailingAddressT&& value) {
379 SetMailingAddress(std::forward<MailingAddressT>(value));
380 return *this;
381 }
383
385
388 inline const AddressDimension& GetBillingAddress() const { return m_billingAddress; }
389 inline bool BillingAddressHasBeenSet() const { return m_billingAddressHasBeenSet; }
390 template <typename BillingAddressT = AddressDimension>
391 void SetBillingAddress(BillingAddressT&& value) {
392 m_billingAddressHasBeenSet = true;
393 m_billingAddress = std::forward<BillingAddressT>(value);
394 }
395 template <typename BillingAddressT = AddressDimension>
396 ProfileAttributes& WithBillingAddress(BillingAddressT&& value) {
397 SetBillingAddress(std::forward<BillingAddressT>(value));
398 return *this;
399 }
401
403
406 inline const Aws::Map<Aws::String, AttributeDimension>& GetAttributes() const { return m_attributes; }
407 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
408 template <typename AttributesT = Aws::Map<Aws::String, AttributeDimension>>
409 void SetAttributes(AttributesT&& value) {
410 m_attributesHasBeenSet = true;
411 m_attributes = std::forward<AttributesT>(value);
412 }
413 template <typename AttributesT = Aws::Map<Aws::String, AttributeDimension>>
414 ProfileAttributes& WithAttributes(AttributesT&& value) {
415 SetAttributes(std::forward<AttributesT>(value));
416 return *this;
417 }
418 template <typename AttributesKeyT = Aws::String, typename AttributesValueT = AttributeDimension>
419 ProfileAttributes& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
420 m_attributesHasBeenSet = true;
421 m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value));
422 return *this;
423 }
425
427
430 inline const ProfileTypeDimension& GetProfileType() const { return m_profileType; }
431 inline bool ProfileTypeHasBeenSet() const { return m_profileTypeHasBeenSet; }
432 template <typename ProfileTypeT = ProfileTypeDimension>
433 void SetProfileType(ProfileTypeT&& value) {
434 m_profileTypeHasBeenSet = true;
435 m_profileType = std::forward<ProfileTypeT>(value);
436 }
437 template <typename ProfileTypeT = ProfileTypeDimension>
438 ProfileAttributes& WithProfileType(ProfileTypeT&& value) {
439 SetProfileType(std::forward<ProfileTypeT>(value));
440 return *this;
441 }
443 private:
444 ProfileDimension m_accountNumber;
445
446 ExtraLengthValueProfileDimension m_additionalInformation;
447
448 ProfileDimension m_firstName;
449
450 ProfileDimension m_lastName;
451
452 ProfileDimension m_middleName;
453
454 ProfileDimension m_genderString;
455
456 ProfileDimension m_partyTypeString;
457
458 DateDimension m_birthDate;
459
460 ProfileDimension m_phoneNumber;
461
462 ProfileDimension m_businessName;
463
464 ProfileDimension m_businessPhoneNumber;
465
466 ProfileDimension m_homePhoneNumber;
467
468 ProfileDimension m_mobilePhoneNumber;
469
470 ProfileDimension m_emailAddress;
471
472 ProfileDimension m_personalEmailAddress;
473
474 ProfileDimension m_businessEmailAddress;
475
476 AddressDimension m_address;
477
478 AddressDimension m_shippingAddress;
479
480 AddressDimension m_mailingAddress;
481
482 AddressDimension m_billingAddress;
483
485
486 ProfileTypeDimension m_profileType;
487 bool m_accountNumberHasBeenSet = false;
488 bool m_additionalInformationHasBeenSet = false;
489 bool m_firstNameHasBeenSet = false;
490 bool m_lastNameHasBeenSet = false;
491 bool m_middleNameHasBeenSet = false;
492 bool m_genderStringHasBeenSet = false;
493 bool m_partyTypeStringHasBeenSet = false;
494 bool m_birthDateHasBeenSet = false;
495 bool m_phoneNumberHasBeenSet = false;
496 bool m_businessNameHasBeenSet = false;
497 bool m_businessPhoneNumberHasBeenSet = false;
498 bool m_homePhoneNumberHasBeenSet = false;
499 bool m_mobilePhoneNumberHasBeenSet = false;
500 bool m_emailAddressHasBeenSet = false;
501 bool m_personalEmailAddressHasBeenSet = false;
502 bool m_businessEmailAddressHasBeenSet = false;
503 bool m_addressHasBeenSet = false;
504 bool m_shippingAddressHasBeenSet = false;
505 bool m_mailingAddressHasBeenSet = false;
506 bool m_billingAddressHasBeenSet = false;
507 bool m_attributesHasBeenSet = false;
508 bool m_profileTypeHasBeenSet = false;
509};
510
511} // namespace Model
512} // namespace CustomerProfiles
513} // namespace Aws
const ProfileDimension & GetHomePhoneNumber() const
const ProfileDimension & GetBusinessPhoneNumber() const
const ProfileTypeDimension & GetProfileType() const
const ProfileDimension & GetPartyTypeString() const
AWS_CUSTOMERPROFILES_API ProfileAttributes()=default
const AddressDimension & GetBillingAddress() const
const ProfileDimension & GetAccountNumber() const
ProfileAttributes & WithMobilePhoneNumber(MobilePhoneNumberT &&value)
const ProfileDimension & GetFirstName() const
ProfileAttributes & WithEmailAddress(EmailAddressT &&value)
void SetAdditionalInformation(AdditionalInformationT &&value)
ProfileAttributes & WithBillingAddress(BillingAddressT &&value)
const AddressDimension & GetMailingAddress() const
const ProfileDimension & GetPersonalEmailAddress() const
ProfileAttributes & WithAttributes(AttributesT &&value)
const ProfileDimension & GetGenderString() const
ProfileAttributes & WithPhoneNumber(PhoneNumberT &&value)
const ProfileDimension & GetMiddleName() const
ProfileAttributes & WithAccountNumber(AccountNumberT &&value)
AWS_CUSTOMERPROFILES_API ProfileAttributes & operator=(Aws::Utils::Json::JsonView jsonValue)
const AddressDimension & GetShippingAddress() const
const Aws::Map< Aws::String, AttributeDimension > & GetAttributes() const
ProfileAttributes & WithAdditionalInformation(AdditionalInformationT &&value)
const ProfileDimension & GetEmailAddress() const
void SetShippingAddress(ShippingAddressT &&value)
const ProfileDimension & GetMobilePhoneNumber() const
void SetPartyTypeString(PartyTypeStringT &&value)
ProfileAttributes & WithGenderString(GenderStringT &&value)
void SetBusinessEmailAddress(BusinessEmailAddressT &&value)
ProfileAttributes & WithHomePhoneNumber(HomePhoneNumberT &&value)
ProfileAttributes & WithAddress(AddressT &&value)
ProfileAttributes & WithMailingAddress(MailingAddressT &&value)
ProfileAttributes & WithLastName(LastNameT &&value)
void SetHomePhoneNumber(HomePhoneNumberT &&value)
const ExtraLengthValueProfileDimension & GetAdditionalInformation() const
const ProfileDimension & GetPhoneNumber() const
ProfileAttributes & WithShippingAddress(ShippingAddressT &&value)
AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const
ProfileAttributes & WithPartyTypeString(PartyTypeStringT &&value)
AWS_CUSTOMERPROFILES_API ProfileAttributes(Aws::Utils::Json::JsonView jsonValue)
void SetBusinessPhoneNumber(BusinessPhoneNumberT &&value)
ProfileAttributes & WithBusinessName(BusinessNameT &&value)
ProfileAttributes & WithPersonalEmailAddress(PersonalEmailAddressT &&value)
ProfileAttributes & WithBusinessPhoneNumber(BusinessPhoneNumberT &&value)
ProfileAttributes & AddAttributes(AttributesKeyT &&key, AttributesValueT &&value)
ProfileAttributes & WithProfileType(ProfileTypeT &&value)
ProfileAttributes & WithBirthDate(BirthDateT &&value)
ProfileAttributes & WithFirstName(FirstNameT &&value)
ProfileAttributes & WithBusinessEmailAddress(BusinessEmailAddressT &&value)
void SetPersonalEmailAddress(PersonalEmailAddressT &&value)
ProfileAttributes & WithMiddleName(MiddleNameT &&value)
const ProfileDimension & GetBusinessName() const
void SetMobilePhoneNumber(MobilePhoneNumberT &&value)
const ProfileDimension & GetBusinessEmailAddress() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue