AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
ProfileAttributes.h
1
6#pragma once
7#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
8#include <aws/customer-profiles/model/ProfileDimension.h>
9#include <aws/customer-profiles/model/ExtraLengthValueProfileDimension.h>
10#include <aws/customer-profiles/model/DateDimension.h>
11#include <aws/customer-profiles/model/AddressDimension.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/customer-profiles/model/AttributeDimension.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace CustomerProfiles
28{
29namespace Model
30{
31
39 {
40 public:
41 AWS_CUSTOMERPROFILES_API ProfileAttributes() = default;
42 AWS_CUSTOMERPROFILES_API ProfileAttributes(Aws::Utils::Json::JsonView jsonValue);
43 AWS_CUSTOMERPROFILES_API ProfileAttributes& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const ProfileDimension& GetAccountNumber() const { return m_accountNumber; }
52 inline bool AccountNumberHasBeenSet() const { return m_accountNumberHasBeenSet; }
53 template<typename AccountNumberT = ProfileDimension>
54 void SetAccountNumber(AccountNumberT&& value) { m_accountNumberHasBeenSet = true; m_accountNumber = std::forward<AccountNumberT>(value); }
55 template<typename AccountNumberT = ProfileDimension>
56 ProfileAttributes& WithAccountNumber(AccountNumberT&& value) { SetAccountNumber(std::forward<AccountNumberT>(value)); return *this;}
58
60
63 inline const ExtraLengthValueProfileDimension& GetAdditionalInformation() const { return m_additionalInformation; }
64 inline bool AdditionalInformationHasBeenSet() const { return m_additionalInformationHasBeenSet; }
65 template<typename AdditionalInformationT = ExtraLengthValueProfileDimension>
66 void SetAdditionalInformation(AdditionalInformationT&& value) { m_additionalInformationHasBeenSet = true; m_additionalInformation = std::forward<AdditionalInformationT>(value); }
67 template<typename AdditionalInformationT = ExtraLengthValueProfileDimension>
68 ProfileAttributes& WithAdditionalInformation(AdditionalInformationT&& value) { SetAdditionalInformation(std::forward<AdditionalInformationT>(value)); return *this;}
70
72
75 inline const ProfileDimension& GetFirstName() const { return m_firstName; }
76 inline bool FirstNameHasBeenSet() const { return m_firstNameHasBeenSet; }
77 template<typename FirstNameT = ProfileDimension>
78 void SetFirstName(FirstNameT&& value) { m_firstNameHasBeenSet = true; m_firstName = std::forward<FirstNameT>(value); }
79 template<typename FirstNameT = ProfileDimension>
80 ProfileAttributes& WithFirstName(FirstNameT&& value) { SetFirstName(std::forward<FirstNameT>(value)); return *this;}
82
84
87 inline const ProfileDimension& GetLastName() const { return m_lastName; }
88 inline bool LastNameHasBeenSet() const { return m_lastNameHasBeenSet; }
89 template<typename LastNameT = ProfileDimension>
90 void SetLastName(LastNameT&& value) { m_lastNameHasBeenSet = true; m_lastName = std::forward<LastNameT>(value); }
91 template<typename LastNameT = ProfileDimension>
92 ProfileAttributes& WithLastName(LastNameT&& value) { SetLastName(std::forward<LastNameT>(value)); return *this;}
94
96
99 inline const ProfileDimension& GetMiddleName() const { return m_middleName; }
100 inline bool MiddleNameHasBeenSet() const { return m_middleNameHasBeenSet; }
101 template<typename MiddleNameT = ProfileDimension>
102 void SetMiddleName(MiddleNameT&& value) { m_middleNameHasBeenSet = true; m_middleName = std::forward<MiddleNameT>(value); }
103 template<typename MiddleNameT = ProfileDimension>
104 ProfileAttributes& WithMiddleName(MiddleNameT&& value) { SetMiddleName(std::forward<MiddleNameT>(value)); return *this;}
106
108
111 inline const ProfileDimension& GetGenderString() const { return m_genderString; }
112 inline bool GenderStringHasBeenSet() const { return m_genderStringHasBeenSet; }
113 template<typename GenderStringT = ProfileDimension>
114 void SetGenderString(GenderStringT&& value) { m_genderStringHasBeenSet = true; m_genderString = std::forward<GenderStringT>(value); }
115 template<typename GenderStringT = ProfileDimension>
116 ProfileAttributes& WithGenderString(GenderStringT&& value) { SetGenderString(std::forward<GenderStringT>(value)); return *this;}
118
120
123 inline const ProfileDimension& GetPartyTypeString() const { return m_partyTypeString; }
124 inline bool PartyTypeStringHasBeenSet() const { return m_partyTypeStringHasBeenSet; }
125 template<typename PartyTypeStringT = ProfileDimension>
126 void SetPartyTypeString(PartyTypeStringT&& value) { m_partyTypeStringHasBeenSet = true; m_partyTypeString = std::forward<PartyTypeStringT>(value); }
127 template<typename PartyTypeStringT = ProfileDimension>
128 ProfileAttributes& WithPartyTypeString(PartyTypeStringT&& value) { SetPartyTypeString(std::forward<PartyTypeStringT>(value)); return *this;}
130
132
135 inline const DateDimension& GetBirthDate() const { return m_birthDate; }
136 inline bool BirthDateHasBeenSet() const { return m_birthDateHasBeenSet; }
137 template<typename BirthDateT = DateDimension>
138 void SetBirthDate(BirthDateT&& value) { m_birthDateHasBeenSet = true; m_birthDate = std::forward<BirthDateT>(value); }
139 template<typename BirthDateT = DateDimension>
140 ProfileAttributes& WithBirthDate(BirthDateT&& value) { SetBirthDate(std::forward<BirthDateT>(value)); return *this;}
142
144
147 inline const ProfileDimension& GetPhoneNumber() const { return m_phoneNumber; }
148 inline bool PhoneNumberHasBeenSet() const { return m_phoneNumberHasBeenSet; }
149 template<typename PhoneNumberT = ProfileDimension>
150 void SetPhoneNumber(PhoneNumberT&& value) { m_phoneNumberHasBeenSet = true; m_phoneNumber = std::forward<PhoneNumberT>(value); }
151 template<typename PhoneNumberT = ProfileDimension>
152 ProfileAttributes& WithPhoneNumber(PhoneNumberT&& value) { SetPhoneNumber(std::forward<PhoneNumberT>(value)); return *this;}
154
156
159 inline const ProfileDimension& GetBusinessName() const { return m_businessName; }
160 inline bool BusinessNameHasBeenSet() const { return m_businessNameHasBeenSet; }
161 template<typename BusinessNameT = ProfileDimension>
162 void SetBusinessName(BusinessNameT&& value) { m_businessNameHasBeenSet = true; m_businessName = std::forward<BusinessNameT>(value); }
163 template<typename BusinessNameT = ProfileDimension>
164 ProfileAttributes& WithBusinessName(BusinessNameT&& value) { SetBusinessName(std::forward<BusinessNameT>(value)); return *this;}
166
168
171 inline const ProfileDimension& GetBusinessPhoneNumber() const { return m_businessPhoneNumber; }
172 inline bool BusinessPhoneNumberHasBeenSet() const { return m_businessPhoneNumberHasBeenSet; }
173 template<typename BusinessPhoneNumberT = ProfileDimension>
174 void SetBusinessPhoneNumber(BusinessPhoneNumberT&& value) { m_businessPhoneNumberHasBeenSet = true; m_businessPhoneNumber = std::forward<BusinessPhoneNumberT>(value); }
175 template<typename BusinessPhoneNumberT = ProfileDimension>
176 ProfileAttributes& WithBusinessPhoneNumber(BusinessPhoneNumberT&& value) { SetBusinessPhoneNumber(std::forward<BusinessPhoneNumberT>(value)); return *this;}
178
180
183 inline const ProfileDimension& GetHomePhoneNumber() const { return m_homePhoneNumber; }
184 inline bool HomePhoneNumberHasBeenSet() const { return m_homePhoneNumberHasBeenSet; }
185 template<typename HomePhoneNumberT = ProfileDimension>
186 void SetHomePhoneNumber(HomePhoneNumberT&& value) { m_homePhoneNumberHasBeenSet = true; m_homePhoneNumber = std::forward<HomePhoneNumberT>(value); }
187 template<typename HomePhoneNumberT = ProfileDimension>
188 ProfileAttributes& WithHomePhoneNumber(HomePhoneNumberT&& value) { SetHomePhoneNumber(std::forward<HomePhoneNumberT>(value)); return *this;}
190
192
195 inline const ProfileDimension& GetMobilePhoneNumber() const { return m_mobilePhoneNumber; }
196 inline bool MobilePhoneNumberHasBeenSet() const { return m_mobilePhoneNumberHasBeenSet; }
197 template<typename MobilePhoneNumberT = ProfileDimension>
198 void SetMobilePhoneNumber(MobilePhoneNumberT&& value) { m_mobilePhoneNumberHasBeenSet = true; m_mobilePhoneNumber = std::forward<MobilePhoneNumberT>(value); }
199 template<typename MobilePhoneNumberT = ProfileDimension>
200 ProfileAttributes& WithMobilePhoneNumber(MobilePhoneNumberT&& value) { SetMobilePhoneNumber(std::forward<MobilePhoneNumberT>(value)); return *this;}
202
204
207 inline const ProfileDimension& GetEmailAddress() const { return m_emailAddress; }
208 inline bool EmailAddressHasBeenSet() const { return m_emailAddressHasBeenSet; }
209 template<typename EmailAddressT = ProfileDimension>
210 void SetEmailAddress(EmailAddressT&& value) { m_emailAddressHasBeenSet = true; m_emailAddress = std::forward<EmailAddressT>(value); }
211 template<typename EmailAddressT = ProfileDimension>
212 ProfileAttributes& WithEmailAddress(EmailAddressT&& value) { SetEmailAddress(std::forward<EmailAddressT>(value)); return *this;}
214
216
219 inline const ProfileDimension& GetPersonalEmailAddress() const { return m_personalEmailAddress; }
220 inline bool PersonalEmailAddressHasBeenSet() const { return m_personalEmailAddressHasBeenSet; }
221 template<typename PersonalEmailAddressT = ProfileDimension>
222 void SetPersonalEmailAddress(PersonalEmailAddressT&& value) { m_personalEmailAddressHasBeenSet = true; m_personalEmailAddress = std::forward<PersonalEmailAddressT>(value); }
223 template<typename PersonalEmailAddressT = ProfileDimension>
224 ProfileAttributes& WithPersonalEmailAddress(PersonalEmailAddressT&& value) { SetPersonalEmailAddress(std::forward<PersonalEmailAddressT>(value)); return *this;}
226
228
231 inline const ProfileDimension& GetBusinessEmailAddress() const { return m_businessEmailAddress; }
232 inline bool BusinessEmailAddressHasBeenSet() const { return m_businessEmailAddressHasBeenSet; }
233 template<typename BusinessEmailAddressT = ProfileDimension>
234 void SetBusinessEmailAddress(BusinessEmailAddressT&& value) { m_businessEmailAddressHasBeenSet = true; m_businessEmailAddress = std::forward<BusinessEmailAddressT>(value); }
235 template<typename BusinessEmailAddressT = ProfileDimension>
236 ProfileAttributes& WithBusinessEmailAddress(BusinessEmailAddressT&& value) { SetBusinessEmailAddress(std::forward<BusinessEmailAddressT>(value)); return *this;}
238
240
243 inline const AddressDimension& GetAddress() const { return m_address; }
244 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
245 template<typename AddressT = AddressDimension>
246 void SetAddress(AddressT&& value) { m_addressHasBeenSet = true; m_address = std::forward<AddressT>(value); }
247 template<typename AddressT = AddressDimension>
248 ProfileAttributes& WithAddress(AddressT&& value) { SetAddress(std::forward<AddressT>(value)); return *this;}
250
252
255 inline const AddressDimension& GetShippingAddress() const { return m_shippingAddress; }
256 inline bool ShippingAddressHasBeenSet() const { return m_shippingAddressHasBeenSet; }
257 template<typename ShippingAddressT = AddressDimension>
258 void SetShippingAddress(ShippingAddressT&& value) { m_shippingAddressHasBeenSet = true; m_shippingAddress = std::forward<ShippingAddressT>(value); }
259 template<typename ShippingAddressT = AddressDimension>
260 ProfileAttributes& WithShippingAddress(ShippingAddressT&& value) { SetShippingAddress(std::forward<ShippingAddressT>(value)); return *this;}
262
264
267 inline const AddressDimension& GetMailingAddress() const { return m_mailingAddress; }
268 inline bool MailingAddressHasBeenSet() const { return m_mailingAddressHasBeenSet; }
269 template<typename MailingAddressT = AddressDimension>
270 void SetMailingAddress(MailingAddressT&& value) { m_mailingAddressHasBeenSet = true; m_mailingAddress = std::forward<MailingAddressT>(value); }
271 template<typename MailingAddressT = AddressDimension>
272 ProfileAttributes& WithMailingAddress(MailingAddressT&& value) { SetMailingAddress(std::forward<MailingAddressT>(value)); return *this;}
274
276
279 inline const AddressDimension& GetBillingAddress() const { return m_billingAddress; }
280 inline bool BillingAddressHasBeenSet() const { return m_billingAddressHasBeenSet; }
281 template<typename BillingAddressT = AddressDimension>
282 void SetBillingAddress(BillingAddressT&& value) { m_billingAddressHasBeenSet = true; m_billingAddress = std::forward<BillingAddressT>(value); }
283 template<typename BillingAddressT = AddressDimension>
284 ProfileAttributes& WithBillingAddress(BillingAddressT&& value) { SetBillingAddress(std::forward<BillingAddressT>(value)); return *this;}
286
288
291 inline const Aws::Map<Aws::String, AttributeDimension>& GetAttributes() const { return m_attributes; }
292 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
293 template<typename AttributesT = Aws::Map<Aws::String, AttributeDimension>>
294 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes = std::forward<AttributesT>(value); }
295 template<typename AttributesT = Aws::Map<Aws::String, AttributeDimension>>
296 ProfileAttributes& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
297 template<typename AttributesKeyT = Aws::String, typename AttributesValueT = AttributeDimension>
298 ProfileAttributes& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
299 m_attributesHasBeenSet = true; m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value)); return *this;
300 }
302 private:
303
304 ProfileDimension m_accountNumber;
305 bool m_accountNumberHasBeenSet = false;
306
307 ExtraLengthValueProfileDimension m_additionalInformation;
308 bool m_additionalInformationHasBeenSet = false;
309
310 ProfileDimension m_firstName;
311 bool m_firstNameHasBeenSet = false;
312
313 ProfileDimension m_lastName;
314 bool m_lastNameHasBeenSet = false;
315
316 ProfileDimension m_middleName;
317 bool m_middleNameHasBeenSet = false;
318
319 ProfileDimension m_genderString;
320 bool m_genderStringHasBeenSet = false;
321
322 ProfileDimension m_partyTypeString;
323 bool m_partyTypeStringHasBeenSet = false;
324
325 DateDimension m_birthDate;
326 bool m_birthDateHasBeenSet = false;
327
328 ProfileDimension m_phoneNumber;
329 bool m_phoneNumberHasBeenSet = false;
330
331 ProfileDimension m_businessName;
332 bool m_businessNameHasBeenSet = false;
333
334 ProfileDimension m_businessPhoneNumber;
335 bool m_businessPhoneNumberHasBeenSet = false;
336
337 ProfileDimension m_homePhoneNumber;
338 bool m_homePhoneNumberHasBeenSet = false;
339
340 ProfileDimension m_mobilePhoneNumber;
341 bool m_mobilePhoneNumberHasBeenSet = false;
342
343 ProfileDimension m_emailAddress;
344 bool m_emailAddressHasBeenSet = false;
345
346 ProfileDimension m_personalEmailAddress;
347 bool m_personalEmailAddressHasBeenSet = false;
348
349 ProfileDimension m_businessEmailAddress;
350 bool m_businessEmailAddressHasBeenSet = false;
351
352 AddressDimension m_address;
353 bool m_addressHasBeenSet = false;
354
355 AddressDimension m_shippingAddress;
356 bool m_shippingAddressHasBeenSet = false;
357
358 AddressDimension m_mailingAddress;
359 bool m_mailingAddressHasBeenSet = false;
360
361 AddressDimension m_billingAddress;
362 bool m_billingAddressHasBeenSet = false;
363
365 bool m_attributesHasBeenSet = false;
366 };
367
368} // namespace Model
369} // namespace CustomerProfiles
370} // namespace Aws
const ProfileDimension & GetHomePhoneNumber() const
const ProfileDimension & GetLastName() const
const ProfileDimension & GetBusinessPhoneNumber() 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 & 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