AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
EngagementPreferences.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
9#include <aws/customer-profiles/model/ContactPreference.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CustomerProfiles {
21namespace Model {
22
30 public:
31 AWS_CUSTOMERPROFILES_API EngagementPreferences() = default;
32 AWS_CUSTOMERPROFILES_API EngagementPreferences(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CUSTOMERPROFILES_API EngagementPreferences& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::Vector<ContactPreference>& GetPhone() const { return m_phone; }
41 inline bool PhoneHasBeenSet() const { return m_phoneHasBeenSet; }
42 template <typename PhoneT = Aws::Vector<ContactPreference>>
43 void SetPhone(PhoneT&& value) {
44 m_phoneHasBeenSet = true;
45 m_phone = std::forward<PhoneT>(value);
46 }
47 template <typename PhoneT = Aws::Vector<ContactPreference>>
49 SetPhone(std::forward<PhoneT>(value));
50 return *this;
51 }
52 template <typename PhoneT = ContactPreference>
54 m_phoneHasBeenSet = true;
55 m_phone.emplace_back(std::forward<PhoneT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::Vector<ContactPreference>& GetEmail() const { return m_email; }
65 inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; }
66 template <typename EmailT = Aws::Vector<ContactPreference>>
67 void SetEmail(EmailT&& value) {
68 m_emailHasBeenSet = true;
69 m_email = std::forward<EmailT>(value);
70 }
71 template <typename EmailT = Aws::Vector<ContactPreference>>
73 SetEmail(std::forward<EmailT>(value));
74 return *this;
75 }
76 template <typename EmailT = ContactPreference>
78 m_emailHasBeenSet = true;
79 m_email.emplace_back(std::forward<EmailT>(value));
80 return *this;
81 }
83 private:
85
87 bool m_phoneHasBeenSet = false;
88 bool m_emailHasBeenSet = false;
89};
90
91} // namespace Model
92} // namespace CustomerProfiles
93} // namespace Aws
AWS_CUSTOMERPROFILES_API EngagementPreferences & operator=(Aws::Utils::Json::JsonView jsonValue)
EngagementPreferences & AddPhone(PhoneT &&value)
AWS_CUSTOMERPROFILES_API EngagementPreferences(Aws::Utils::Json::JsonView jsonValue)
EngagementPreferences & AddEmail(EmailT &&value)
AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const
EngagementPreferences & WithPhone(PhoneT &&value)
const Aws::Vector< ContactPreference > & GetEmail() const
AWS_CUSTOMERPROFILES_API EngagementPreferences()=default
EngagementPreferences & WithEmail(EmailT &&value)
const Aws::Vector< ContactPreference > & GetPhone() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue