AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Contact.h
1
6#pragma once
7#include <aws/sesv2/SESV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/sesv2/model/TopicPreference.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SESV2
25{
26namespace Model
27{
28
35 class Contact
36 {
37 public:
38 AWS_SESV2_API Contact();
39 AWS_SESV2_API Contact(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SESV2_API Contact& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetEmailAddress() const{ return m_emailAddress; }
49 inline bool EmailAddressHasBeenSet() const { return m_emailAddressHasBeenSet; }
50 inline void SetEmailAddress(const Aws::String& value) { m_emailAddressHasBeenSet = true; m_emailAddress = value; }
51 inline void SetEmailAddress(Aws::String&& value) { m_emailAddressHasBeenSet = true; m_emailAddress = std::move(value); }
52 inline void SetEmailAddress(const char* value) { m_emailAddressHasBeenSet = true; m_emailAddress.assign(value); }
53 inline Contact& WithEmailAddress(const Aws::String& value) { SetEmailAddress(value); return *this;}
54 inline Contact& WithEmailAddress(Aws::String&& value) { SetEmailAddress(std::move(value)); return *this;}
55 inline Contact& WithEmailAddress(const char* value) { SetEmailAddress(value); return *this;}
57
59
62 inline const Aws::Vector<TopicPreference>& GetTopicPreferences() const{ return m_topicPreferences; }
63 inline bool TopicPreferencesHasBeenSet() const { return m_topicPreferencesHasBeenSet; }
64 inline void SetTopicPreferences(const Aws::Vector<TopicPreference>& value) { m_topicPreferencesHasBeenSet = true; m_topicPreferences = value; }
65 inline void SetTopicPreferences(Aws::Vector<TopicPreference>&& value) { m_topicPreferencesHasBeenSet = true; m_topicPreferences = std::move(value); }
67 inline Contact& WithTopicPreferences(Aws::Vector<TopicPreference>&& value) { SetTopicPreferences(std::move(value)); return *this;}
68 inline Contact& AddTopicPreferences(const TopicPreference& value) { m_topicPreferencesHasBeenSet = true; m_topicPreferences.push_back(value); return *this; }
69 inline Contact& AddTopicPreferences(TopicPreference&& value) { m_topicPreferencesHasBeenSet = true; m_topicPreferences.push_back(std::move(value)); return *this; }
71
73
76 inline const Aws::Vector<TopicPreference>& GetTopicDefaultPreferences() const{ return m_topicDefaultPreferences; }
77 inline bool TopicDefaultPreferencesHasBeenSet() const { return m_topicDefaultPreferencesHasBeenSet; }
78 inline void SetTopicDefaultPreferences(const Aws::Vector<TopicPreference>& value) { m_topicDefaultPreferencesHasBeenSet = true; m_topicDefaultPreferences = value; }
79 inline void SetTopicDefaultPreferences(Aws::Vector<TopicPreference>&& value) { m_topicDefaultPreferencesHasBeenSet = true; m_topicDefaultPreferences = std::move(value); }
82 inline Contact& AddTopicDefaultPreferences(const TopicPreference& value) { m_topicDefaultPreferencesHasBeenSet = true; m_topicDefaultPreferences.push_back(value); return *this; }
83 inline Contact& AddTopicDefaultPreferences(TopicPreference&& value) { m_topicDefaultPreferencesHasBeenSet = true; m_topicDefaultPreferences.push_back(std::move(value)); return *this; }
85
87
91 inline bool GetUnsubscribeAll() const{ return m_unsubscribeAll; }
92 inline bool UnsubscribeAllHasBeenSet() const { return m_unsubscribeAllHasBeenSet; }
93 inline void SetUnsubscribeAll(bool value) { m_unsubscribeAllHasBeenSet = true; m_unsubscribeAll = value; }
94 inline Contact& WithUnsubscribeAll(bool value) { SetUnsubscribeAll(value); return *this;}
96
98
101 inline const Aws::Utils::DateTime& GetLastUpdatedTimestamp() const{ return m_lastUpdatedTimestamp; }
102 inline bool LastUpdatedTimestampHasBeenSet() const { return m_lastUpdatedTimestampHasBeenSet; }
103 inline void SetLastUpdatedTimestamp(const Aws::Utils::DateTime& value) { m_lastUpdatedTimestampHasBeenSet = true; m_lastUpdatedTimestamp = value; }
104 inline void SetLastUpdatedTimestamp(Aws::Utils::DateTime&& value) { m_lastUpdatedTimestampHasBeenSet = true; m_lastUpdatedTimestamp = std::move(value); }
106 inline Contact& WithLastUpdatedTimestamp(Aws::Utils::DateTime&& value) { SetLastUpdatedTimestamp(std::move(value)); return *this;}
108 private:
109
110 Aws::String m_emailAddress;
111 bool m_emailAddressHasBeenSet = false;
112
113 Aws::Vector<TopicPreference> m_topicPreferences;
114 bool m_topicPreferencesHasBeenSet = false;
115
116 Aws::Vector<TopicPreference> m_topicDefaultPreferences;
117 bool m_topicDefaultPreferencesHasBeenSet = false;
118
119 bool m_unsubscribeAll;
120 bool m_unsubscribeAllHasBeenSet = false;
121
122 Aws::Utils::DateTime m_lastUpdatedTimestamp;
123 bool m_lastUpdatedTimestampHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace SESV2
128} // namespace Aws
const Aws::Utils::DateTime & GetLastUpdatedTimestamp() const
Definition Contact.h:101
void SetTopicDefaultPreferences(Aws::Vector< TopicPreference > &&value)
Definition Contact.h:79
void SetEmailAddress(const char *value)
Definition Contact.h:52
AWS_SESV2_API Contact(Aws::Utils::Json::JsonView jsonValue)
Contact & AddTopicDefaultPreferences(TopicPreference &&value)
Definition Contact.h:83
Contact & WithLastUpdatedTimestamp(Aws::Utils::DateTime &&value)
Definition Contact.h:106
Contact & WithEmailAddress(const Aws::String &value)
Definition Contact.h:53
bool GetUnsubscribeAll() const
Definition Contact.h:91
bool TopicPreferencesHasBeenSet() const
Definition Contact.h:63
Contact & AddTopicPreferences(const TopicPreference &value)
Definition Contact.h:68
Contact & WithEmailAddress(Aws::String &&value)
Definition Contact.h:54
Contact & WithLastUpdatedTimestamp(const Aws::Utils::DateTime &value)
Definition Contact.h:105
AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const
Contact & WithTopicDefaultPreferences(const Aws::Vector< TopicPreference > &value)
Definition Contact.h:80
void SetEmailAddress(Aws::String &&value)
Definition Contact.h:51
void SetTopicPreferences(Aws::Vector< TopicPreference > &&value)
Definition Contact.h:65
Contact & AddTopicPreferences(TopicPreference &&value)
Definition Contact.h:69
Contact & WithEmailAddress(const char *value)
Definition Contact.h:55
const Aws::String & GetEmailAddress() const
Definition Contact.h:48
bool LastUpdatedTimestampHasBeenSet() const
Definition Contact.h:102
const Aws::Vector< TopicPreference > & GetTopicDefaultPreferences() const
Definition Contact.h:76
bool UnsubscribeAllHasBeenSet() const
Definition Contact.h:92
void SetEmailAddress(const Aws::String &value)
Definition Contact.h:50
Contact & WithTopicPreferences(const Aws::Vector< TopicPreference > &value)
Definition Contact.h:66
Contact & WithUnsubscribeAll(bool value)
Definition Contact.h:94
void SetTopicDefaultPreferences(const Aws::Vector< TopicPreference > &value)
Definition Contact.h:78
void SetTopicPreferences(const Aws::Vector< TopicPreference > &value)
Definition Contact.h:64
void SetUnsubscribeAll(bool value)
Definition Contact.h:93
bool EmailAddressHasBeenSet() const
Definition Contact.h:49
bool TopicDefaultPreferencesHasBeenSet() const
Definition Contact.h:77
const Aws::Vector< TopicPreference > & GetTopicPreferences() const
Definition Contact.h:62
void SetLastUpdatedTimestamp(const Aws::Utils::DateTime &value)
Definition Contact.h:103
Contact & AddTopicDefaultPreferences(const TopicPreference &value)
Definition Contact.h:82
Contact & WithTopicDefaultPreferences(Aws::Vector< TopicPreference > &&value)
Definition Contact.h:81
void SetLastUpdatedTimestamp(Aws::Utils::DateTime &&value)
Definition Contact.h:104
Contact & WithTopicPreferences(Aws::Vector< TopicPreference > &&value)
Definition Contact.h:67
AWS_SESV2_API Contact & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue