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>
20namespace CustomerProfiles {
42 template <
typename PhoneT = Aws::Vector<ContactPreference>>
44 m_phoneHasBeenSet =
true;
45 m_phone = std::forward<PhoneT>(value);
47 template <
typename PhoneT = Aws::Vector<ContactPreference>>
49 SetPhone(std::forward<PhoneT>(value));
52 template <
typename PhoneT = ContactPreference>
54 m_phoneHasBeenSet =
true;
55 m_phone.emplace_back(std::forward<PhoneT>(value));
66 template <
typename EmailT = Aws::Vector<ContactPreference>>
68 m_emailHasBeenSet =
true;
69 m_email = std::forward<EmailT>(value);
71 template <
typename EmailT = Aws::Vector<ContactPreference>>
73 SetEmail(std::forward<EmailT>(value));
76 template <
typename EmailT = ContactPreference>
78 m_emailHasBeenSet =
true;
79 m_email.emplace_back(std::forward<EmailT>(value));
87 bool m_phoneHasBeenSet =
false;
88 bool m_emailHasBeenSet =
false;
AWS_CUSTOMERPROFILES_API EngagementPreferences & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPhone(PhoneT &&value)
EngagementPreferences & AddPhone(PhoneT &&value)
bool EmailHasBeenSet() const
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)
void SetEmail(EmailT &&value)
const Aws::Vector< ContactPreference > & GetEmail() const
AWS_CUSTOMERPROFILES_API EngagementPreferences()=default
bool PhoneHasBeenSet() const
EngagementPreferences & WithEmail(EmailT &&value)
const Aws::Vector< ContactPreference > & GetPhone() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue