Skip to content

Commit 1de0c77

Browse files
committed
Merge branch 'cailinn' of github.com:aws/aws-sdk-cpp into cailinn
2 parents b0be9f4 + 938f653 commit 1de0c77

File tree

810 files changed

+38340
-17053
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

810 files changed

+38340
-17053
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.11.616
1+
1.11.617
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
/**
2+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
* SPDX-License-Identifier: Apache-2.0.
4+
*/
5+
6+
#pragma once
7+
#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
8+
#include <aws/core/utils/memory/stl/AWSString.h>
9+
#include <aws/customer-profiles/model/ContactType.h>
10+
#include <utility>
11+
12+
namespace Aws
13+
{
14+
namespace Utils
15+
{
16+
namespace Json
17+
{
18+
class JsonValue;
19+
class JsonView;
20+
} // namespace Json
21+
} // namespace Utils
22+
namespace CustomerProfiles
23+
{
24+
namespace Model
25+
{
26+
27+
/**
28+
* <p>Object that defines users contact preference.</p><p><h3>See Also:</h3> <a
29+
* href="http://docs.aws.amazon.com/goto/WebAPI/customer-profiles-2020-08-15/ContactPreference">AWS
30+
* API Reference</a></p>
31+
*/
32+
class ContactPreference
33+
{
34+
public:
35+
AWS_CUSTOMERPROFILES_API ContactPreference() = default;
36+
AWS_CUSTOMERPROFILES_API ContactPreference(Aws::Utils::Json::JsonView jsonValue);
37+
AWS_CUSTOMERPROFILES_API ContactPreference& operator=(Aws::Utils::Json::JsonView jsonValue);
38+
AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
39+
40+
41+
///@{
42+
/**
43+
* <p>A searchable, unique identifier of a customer profile.</p>
44+
*/
45+
inline const Aws::String& GetKeyName() const { return m_keyName; }
46+
inline bool KeyNameHasBeenSet() const { return m_keyNameHasBeenSet; }
47+
template<typename KeyNameT = Aws::String>
48+
void SetKeyName(KeyNameT&& value) { m_keyNameHasBeenSet = true; m_keyName = std::forward<KeyNameT>(value); }
49+
template<typename KeyNameT = Aws::String>
50+
ContactPreference& WithKeyName(KeyNameT&& value) { SetKeyName(std::forward<KeyNameT>(value)); return *this;}
51+
///@}
52+
53+
///@{
54+
/**
55+
* <p>The key value used to look up profile based off the keyName.</p>
56+
*/
57+
inline const Aws::String& GetKeyValue() const { return m_keyValue; }
58+
inline bool KeyValueHasBeenSet() const { return m_keyValueHasBeenSet; }
59+
template<typename KeyValueT = Aws::String>
60+
void SetKeyValue(KeyValueT&& value) { m_keyValueHasBeenSet = true; m_keyValue = std::forward<KeyValueT>(value); }
61+
template<typename KeyValueT = Aws::String>
62+
ContactPreference& WithKeyValue(KeyValueT&& value) { SetKeyValue(std::forward<KeyValueT>(value)); return *this;}
63+
///@}
64+
65+
///@{
66+
/**
67+
* <p>The unique identifier of a customer profile.</p>
68+
*/
69+
inline const Aws::String& GetProfileId() const { return m_profileId; }
70+
inline bool ProfileIdHasBeenSet() const { return m_profileIdHasBeenSet; }
71+
template<typename ProfileIdT = Aws::String>
72+
void SetProfileId(ProfileIdT&& value) { m_profileIdHasBeenSet = true; m_profileId = std::forward<ProfileIdT>(value); }
73+
template<typename ProfileIdT = Aws::String>
74+
ContactPreference& WithProfileId(ProfileIdT&& value) { SetProfileId(std::forward<ProfileIdT>(value)); return *this;}
75+
///@}
76+
77+
///@{
78+
/**
79+
* <p>The contact type used for engagement. For example: HomePhoneNumber,
80+
* PersonalEmailAddress.</p>
81+
*/
82+
inline ContactType GetContactType() const { return m_contactType; }
83+
inline bool ContactTypeHasBeenSet() const { return m_contactTypeHasBeenSet; }
84+
inline void SetContactType(ContactType value) { m_contactTypeHasBeenSet = true; m_contactType = value; }
85+
inline ContactPreference& WithContactType(ContactType value) { SetContactType(value); return *this;}
86+
///@}
87+
private:
88+
89+
Aws::String m_keyName;
90+
bool m_keyNameHasBeenSet = false;
91+
92+
Aws::String m_keyValue;
93+
bool m_keyValueHasBeenSet = false;
94+
95+
Aws::String m_profileId;
96+
bool m_profileIdHasBeenSet = false;
97+
98+
ContactType m_contactType{ContactType::NOT_SET};
99+
bool m_contactTypeHasBeenSet = false;
100+
};
101+
102+
} // namespace Model
103+
} // namespace CustomerProfiles
104+
} // namespace Aws
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/**
2+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
* SPDX-License-Identifier: Apache-2.0.
4+
*/
5+
6+
#pragma once
7+
#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
8+
#include <aws/core/utils/memory/stl/AWSString.h>
9+
10+
namespace Aws
11+
{
12+
namespace CustomerProfiles
13+
{
14+
namespace Model
15+
{
16+
enum class ContactType
17+
{
18+
NOT_SET,
19+
PhoneNumber,
20+
MobilePhoneNumber,
21+
HomePhoneNumber,
22+
BusinessPhoneNumber,
23+
EmailAddress,
24+
PersonalEmailAddress,
25+
BusinessEmailAddress
26+
};
27+
28+
namespace ContactTypeMapper
29+
{
30+
AWS_CUSTOMERPROFILES_API ContactType GetContactTypeForName(const Aws::String& name);
31+
32+
AWS_CUSTOMERPROFILES_API Aws::String GetNameForContactType(ContactType value);
33+
} // namespace ContactTypeMapper
34+
} // namespace Model
35+
} // namespace CustomerProfiles
36+
} // namespace Aws

generated/src/aws-cpp-sdk-customer-profiles/include/aws/customer-profiles/model/CreateProfileRequest.h

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
#include <aws/customer-profiles/model/Gender.h>
1212
#include <aws/customer-profiles/model/Address.h>
1313
#include <aws/core/utils/memory/stl/AWSMap.h>
14+
#include <aws/customer-profiles/model/ProfileType.h>
15+
#include <aws/customer-profiles/model/EngagementPreferences.h>
1416
#include <utility>
1517

1618
namespace Aws
@@ -327,6 +329,28 @@ namespace Model
327329
template<typename GenderStringT = Aws::String>
328330
CreateProfileRequest& WithGenderString(GenderStringT&& value) { SetGenderString(std::forward<GenderStringT>(value)); return *this;}
329331
///@}
332+
333+
///@{
334+
/**
335+
* <p>The type of the profile.</p>
336+
*/
337+
inline ProfileType GetProfileType() const { return m_profileType; }
338+
inline bool ProfileTypeHasBeenSet() const { return m_profileTypeHasBeenSet; }
339+
inline void SetProfileType(ProfileType value) { m_profileTypeHasBeenSet = true; m_profileType = value; }
340+
inline CreateProfileRequest& WithProfileType(ProfileType value) { SetProfileType(value); return *this;}
341+
///@}
342+
343+
///@{
344+
/**
345+
* <p>Object that defines the preferred methods of engagement, per channel.</p>
346+
*/
347+
inline const EngagementPreferences& GetEngagementPreferences() const { return m_engagementPreferences; }
348+
inline bool EngagementPreferencesHasBeenSet() const { return m_engagementPreferencesHasBeenSet; }
349+
template<typename EngagementPreferencesT = EngagementPreferences>
350+
void SetEngagementPreferences(EngagementPreferencesT&& value) { m_engagementPreferencesHasBeenSet = true; m_engagementPreferences = std::forward<EngagementPreferencesT>(value); }
351+
template<typename EngagementPreferencesT = EngagementPreferences>
352+
CreateProfileRequest& WithEngagementPreferences(EngagementPreferencesT&& value) { SetEngagementPreferences(std::forward<EngagementPreferencesT>(value)); return *this;}
353+
///@}
330354
private:
331355

332356
Aws::String m_domainName;
@@ -400,6 +424,12 @@ namespace Model
400424

401425
Aws::String m_genderString;
402426
bool m_genderStringHasBeenSet = false;
427+
428+
ProfileType m_profileType{ProfileType::NOT_SET};
429+
bool m_profileTypeHasBeenSet = false;
430+
431+
EngagementPreferences m_engagementPreferences;
432+
bool m_engagementPreferencesHasBeenSet = false;
403433
};
404434

405435
} // namespace Model
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
/**
2+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
* SPDX-License-Identifier: Apache-2.0.
4+
*/
5+
6+
#pragma once
7+
#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
8+
#include <aws/core/utils/memory/stl/AWSVector.h>
9+
#include <aws/customer-profiles/model/ContactPreference.h>
10+
#include <utility>
11+
12+
namespace Aws
13+
{
14+
namespace Utils
15+
{
16+
namespace Json
17+
{
18+
class JsonValue;
19+
class JsonView;
20+
} // namespace Json
21+
} // namespace Utils
22+
namespace CustomerProfiles
23+
{
24+
namespace Model
25+
{
26+
27+
/**
28+
* <p>Object that defines users preferred methods of engagement.</p><p><h3>See
29+
* Also:</h3> <a
30+
* href="http://docs.aws.amazon.com/goto/WebAPI/customer-profiles-2020-08-15/EngagementPreferences">AWS
31+
* API Reference</a></p>
32+
*/
33+
class EngagementPreferences
34+
{
35+
public:
36+
AWS_CUSTOMERPROFILES_API EngagementPreferences() = default;
37+
AWS_CUSTOMERPROFILES_API EngagementPreferences(Aws::Utils::Json::JsonView jsonValue);
38+
AWS_CUSTOMERPROFILES_API EngagementPreferences& operator=(Aws::Utils::Json::JsonView jsonValue);
39+
AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
40+
41+
42+
///@{
43+
/**
44+
* <p>A list of phone-related contact preferences</p>
45+
*/
46+
inline const Aws::Vector<ContactPreference>& GetPhone() const { return m_phone; }
47+
inline bool PhoneHasBeenSet() const { return m_phoneHasBeenSet; }
48+
template<typename PhoneT = Aws::Vector<ContactPreference>>
49+
void SetPhone(PhoneT&& value) { m_phoneHasBeenSet = true; m_phone = std::forward<PhoneT>(value); }
50+
template<typename PhoneT = Aws::Vector<ContactPreference>>
51+
EngagementPreferences& WithPhone(PhoneT&& value) { SetPhone(std::forward<PhoneT>(value)); return *this;}
52+
template<typename PhoneT = ContactPreference>
53+
EngagementPreferences& AddPhone(PhoneT&& value) { m_phoneHasBeenSet = true; m_phone.emplace_back(std::forward<PhoneT>(value)); return *this; }
54+
///@}
55+
56+
///@{
57+
/**
58+
* <p>A list of email-related contact preferences</p>
59+
*/
60+
inline const Aws::Vector<ContactPreference>& GetEmail() const { return m_email; }
61+
inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; }
62+
template<typename EmailT = Aws::Vector<ContactPreference>>
63+
void SetEmail(EmailT&& value) { m_emailHasBeenSet = true; m_email = std::forward<EmailT>(value); }
64+
template<typename EmailT = Aws::Vector<ContactPreference>>
65+
EngagementPreferences& WithEmail(EmailT&& value) { SetEmail(std::forward<EmailT>(value)); return *this;}
66+
template<typename EmailT = ContactPreference>
67+
EngagementPreferences& AddEmail(EmailT&& value) { m_emailHasBeenSet = true; m_email.emplace_back(std::forward<EmailT>(value)); return *this; }
68+
///@}
69+
private:
70+
71+
Aws::Vector<ContactPreference> m_phone;
72+
bool m_phoneHasBeenSet = false;
73+
74+
Aws::Vector<ContactPreference> m_email;
75+
bool m_emailHasBeenSet = false;
76+
};
77+
78+
} // namespace Model
79+
} // namespace CustomerProfiles
80+
} // namespace Aws

generated/src/aws-cpp-sdk-customer-profiles/include/aws/customer-profiles/model/FieldSourceProfileIds.h

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,30 @@ namespace Model
294294
m_attributesHasBeenSet = true; m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value)); return *this;
295295
}
296296
///@}
297+
298+
///@{
299+
/**
300+
* <p>A unique identifier for the profile type field to be merged.</p>
301+
*/
302+
inline const Aws::String& GetProfileType() const { return m_profileType; }
303+
inline bool ProfileTypeHasBeenSet() const { return m_profileTypeHasBeenSet; }
304+
template<typename ProfileTypeT = Aws::String>
305+
void SetProfileType(ProfileTypeT&& value) { m_profileTypeHasBeenSet = true; m_profileType = std::forward<ProfileTypeT>(value); }
306+
template<typename ProfileTypeT = Aws::String>
307+
FieldSourceProfileIds& WithProfileType(ProfileTypeT&& value) { SetProfileType(std::forward<ProfileTypeT>(value)); return *this;}
308+
///@}
309+
310+
///@{
311+
/**
312+
* <p>A unique identifier for the engagement preferences field to be merged.</p>
313+
*/
314+
inline const Aws::String& GetEngagementPreferences() const { return m_engagementPreferences; }
315+
inline bool EngagementPreferencesHasBeenSet() const { return m_engagementPreferencesHasBeenSet; }
316+
template<typename EngagementPreferencesT = Aws::String>
317+
void SetEngagementPreferences(EngagementPreferencesT&& value) { m_engagementPreferencesHasBeenSet = true; m_engagementPreferences = std::forward<EngagementPreferencesT>(value); }
318+
template<typename EngagementPreferencesT = Aws::String>
319+
FieldSourceProfileIds& WithEngagementPreferences(EngagementPreferencesT&& value) { SetEngagementPreferences(std::forward<EngagementPreferencesT>(value)); return *this;}
320+
///@}
297321
private:
298322

299323
Aws::String m_accountNumber;
@@ -358,6 +382,12 @@ namespace Model
358382

359383
Aws::Map<Aws::String, Aws::String> m_attributes;
360384
bool m_attributesHasBeenSet = false;
385+
386+
Aws::String m_profileType;
387+
bool m_profileTypeHasBeenSet = false;
388+
389+
Aws::String m_engagementPreferences;
390+
bool m_engagementPreferencesHasBeenSet = false;
361391
};
362392

363393
} // namespace Model

generated/src/aws-cpp-sdk-customer-profiles/include/aws/customer-profiles/model/Profile.h

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
#include <aws/customer-profiles/model/Address.h>
1212
#include <aws/core/utils/memory/stl/AWSMap.h>
1313
#include <aws/core/utils/memory/stl/AWSVector.h>
14+
#include <aws/customer-profiles/model/ProfileType.h>
15+
#include <aws/customer-profiles/model/EngagementPreferences.h>
1416
#include <aws/customer-profiles/model/FoundByKeyValue.h>
1517
#include <utility>
1618

@@ -365,6 +367,28 @@ namespace Model
365367
template<typename GenderStringT = Aws::String>
366368
Profile& WithGenderString(GenderStringT&& value) { SetGenderString(std::forward<GenderStringT>(value)); return *this;}
367369
///@}
370+
371+
///@{
372+
/**
373+
* <p>The type of the profile.</p>
374+
*/
375+
inline ProfileType GetProfileType() const { return m_profileType; }
376+
inline bool ProfileTypeHasBeenSet() const { return m_profileTypeHasBeenSet; }
377+
inline void SetProfileType(ProfileType value) { m_profileTypeHasBeenSet = true; m_profileType = value; }
378+
inline Profile& WithProfileType(ProfileType value) { SetProfileType(value); return *this;}
379+
///@}
380+
381+
///@{
382+
/**
383+
* <p>The customer or account’s engagement preferences.</p>
384+
*/
385+
inline const EngagementPreferences& GetEngagementPreferences() const { return m_engagementPreferences; }
386+
inline bool EngagementPreferencesHasBeenSet() const { return m_engagementPreferencesHasBeenSet; }
387+
template<typename EngagementPreferencesT = EngagementPreferences>
388+
void SetEngagementPreferences(EngagementPreferencesT&& value) { m_engagementPreferencesHasBeenSet = true; m_engagementPreferences = std::forward<EngagementPreferencesT>(value); }
389+
template<typename EngagementPreferencesT = EngagementPreferences>
390+
Profile& WithEngagementPreferences(EngagementPreferencesT&& value) { SetEngagementPreferences(std::forward<EngagementPreferencesT>(value)); return *this;}
391+
///@}
368392
private:
369393

370394
Aws::String m_profileId;
@@ -441,6 +465,12 @@ namespace Model
441465

442466
Aws::String m_genderString;
443467
bool m_genderStringHasBeenSet = false;
468+
469+
ProfileType m_profileType{ProfileType::NOT_SET};
470+
bool m_profileTypeHasBeenSet = false;
471+
472+
EngagementPreferences m_engagementPreferences;
473+
bool m_engagementPreferencesHasBeenSet = false;
444474
};
445475

446476
} // namespace Model

0 commit comments

Comments
 (0)