AWS SDK for C++  1.9.160
AWS SDK for C++
Contact.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace SESV2
25 {
26 namespace Model
27 {
28 
36  {
37  public:
42 
43 
47  inline const Aws::String& GetEmailAddress() const{ return m_emailAddress; }
48 
52  inline bool EmailAddressHasBeenSet() const { return m_emailAddressHasBeenSet; }
53 
57  inline void SetEmailAddress(const Aws::String& value) { m_emailAddressHasBeenSet = true; m_emailAddress = value; }
58 
62  inline void SetEmailAddress(Aws::String&& value) { m_emailAddressHasBeenSet = true; m_emailAddress = std::move(value); }
63 
67  inline void SetEmailAddress(const char* value) { m_emailAddressHasBeenSet = true; m_emailAddress.assign(value); }
68 
72  inline Contact& WithEmailAddress(const Aws::String& value) { SetEmailAddress(value); return *this;}
73 
77  inline Contact& WithEmailAddress(Aws::String&& value) { SetEmailAddress(std::move(value)); return *this;}
78 
82  inline Contact& WithEmailAddress(const char* value) { SetEmailAddress(value); return *this;}
83 
84 
88  inline const Aws::Vector<TopicPreference>& GetTopicPreferences() const{ return m_topicPreferences; }
89 
93  inline bool TopicPreferencesHasBeenSet() const { return m_topicPreferencesHasBeenSet; }
94 
98  inline void SetTopicPreferences(const Aws::Vector<TopicPreference>& value) { m_topicPreferencesHasBeenSet = true; m_topicPreferences = value; }
99 
103  inline void SetTopicPreferences(Aws::Vector<TopicPreference>&& value) { m_topicPreferencesHasBeenSet = true; m_topicPreferences = std::move(value); }
104 
108  inline Contact& WithTopicPreferences(const Aws::Vector<TopicPreference>& value) { SetTopicPreferences(value); return *this;}
109 
113  inline Contact& WithTopicPreferences(Aws::Vector<TopicPreference>&& value) { SetTopicPreferences(std::move(value)); return *this;}
114 
118  inline Contact& AddTopicPreferences(const TopicPreference& value) { m_topicPreferencesHasBeenSet = true; m_topicPreferences.push_back(value); return *this; }
119 
123  inline Contact& AddTopicPreferences(TopicPreference&& value) { m_topicPreferencesHasBeenSet = true; m_topicPreferences.push_back(std::move(value)); return *this; }
124 
125 
129  inline const Aws::Vector<TopicPreference>& GetTopicDefaultPreferences() const{ return m_topicDefaultPreferences; }
130 
134  inline bool TopicDefaultPreferencesHasBeenSet() const { return m_topicDefaultPreferencesHasBeenSet; }
135 
139  inline void SetTopicDefaultPreferences(const Aws::Vector<TopicPreference>& value) { m_topicDefaultPreferencesHasBeenSet = true; m_topicDefaultPreferences = value; }
140 
144  inline void SetTopicDefaultPreferences(Aws::Vector<TopicPreference>&& value) { m_topicDefaultPreferencesHasBeenSet = true; m_topicDefaultPreferences = std::move(value); }
145 
149  inline Contact& WithTopicDefaultPreferences(const Aws::Vector<TopicPreference>& value) { SetTopicDefaultPreferences(value); return *this;}
150 
154  inline Contact& WithTopicDefaultPreferences(Aws::Vector<TopicPreference>&& value) { SetTopicDefaultPreferences(std::move(value)); return *this;}
155 
159  inline Contact& AddTopicDefaultPreferences(const TopicPreference& value) { m_topicDefaultPreferencesHasBeenSet = true; m_topicDefaultPreferences.push_back(value); return *this; }
160 
164  inline Contact& AddTopicDefaultPreferences(TopicPreference&& value) { m_topicDefaultPreferencesHasBeenSet = true; m_topicDefaultPreferences.push_back(std::move(value)); return *this; }
165 
166 
171  inline bool GetUnsubscribeAll() const{ return m_unsubscribeAll; }
172 
177  inline bool UnsubscribeAllHasBeenSet() const { return m_unsubscribeAllHasBeenSet; }
178 
183  inline void SetUnsubscribeAll(bool value) { m_unsubscribeAllHasBeenSet = true; m_unsubscribeAll = value; }
184 
189  inline Contact& WithUnsubscribeAll(bool value) { SetUnsubscribeAll(value); return *this;}
190 
191 
195  inline const Aws::Utils::DateTime& GetLastUpdatedTimestamp() const{ return m_lastUpdatedTimestamp; }
196 
200  inline bool LastUpdatedTimestampHasBeenSet() const { return m_lastUpdatedTimestampHasBeenSet; }
201 
205  inline void SetLastUpdatedTimestamp(const Aws::Utils::DateTime& value) { m_lastUpdatedTimestampHasBeenSet = true; m_lastUpdatedTimestamp = value; }
206 
210  inline void SetLastUpdatedTimestamp(Aws::Utils::DateTime&& value) { m_lastUpdatedTimestampHasBeenSet = true; m_lastUpdatedTimestamp = std::move(value); }
211 
215  inline Contact& WithLastUpdatedTimestamp(const Aws::Utils::DateTime& value) { SetLastUpdatedTimestamp(value); return *this;}
216 
220  inline Contact& WithLastUpdatedTimestamp(Aws::Utils::DateTime&& value) { SetLastUpdatedTimestamp(std::move(value)); return *this;}
221 
222  private:
223 
224  Aws::String m_emailAddress;
225  bool m_emailAddressHasBeenSet;
226 
227  Aws::Vector<TopicPreference> m_topicPreferences;
228  bool m_topicPreferencesHasBeenSet;
229 
230  Aws::Vector<TopicPreference> m_topicDefaultPreferences;
231  bool m_topicDefaultPreferencesHasBeenSet;
232 
233  bool m_unsubscribeAll;
234  bool m_unsubscribeAllHasBeenSet;
235 
236  Aws::Utils::DateTime m_lastUpdatedTimestamp;
237  bool m_lastUpdatedTimestampHasBeenSet;
238  };
239 
240 } // namespace Model
241 } // namespace SESV2
242 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::SESV2::Model::Contact::SetLastUpdatedTimestamp
void SetLastUpdatedTimestamp(const Aws::Utils::DateTime &value)
Definition: Contact.h:205
Aws::SESV2::Model::Contact::WithEmailAddress
Contact & WithEmailAddress(const Aws::String &value)
Definition: Contact.h:72
Aws::SESV2::Model::Contact::Contact
Contact(Aws::Utils::Json::JsonView jsonValue)
Aws::SESV2::Model::Contact::SetTopicPreferences
void SetTopicPreferences(const Aws::Vector< TopicPreference > &value)
Definition: Contact.h:98
AWS_SESV2_API
#define AWS_SESV2_API
Definition: SESV2_EXPORTS.h:28
Aws::SESV2::Model::Contact::GetTopicDefaultPreferences
const Aws::Vector< TopicPreference > & GetTopicDefaultPreferences() const
Definition: Contact.h:129
Aws::SESV2::Model::Contact::SetTopicDefaultPreferences
void SetTopicDefaultPreferences(const Aws::Vector< TopicPreference > &value)
Definition: Contact.h:139
Aws::SESV2::Model::Contact::WithUnsubscribeAll
Contact & WithUnsubscribeAll(bool value)
Definition: Contact.h:189
Aws::SESV2::Model::TopicPreference
Definition: TopicPreference.h:34
Aws::SESV2::Model::Contact::SetLastUpdatedTimestamp
void SetLastUpdatedTimestamp(Aws::Utils::DateTime &&value)
Definition: Contact.h:210
DateTime.h
Aws::SESV2::Model::Contact::WithEmailAddress
Contact & WithEmailAddress(Aws::String &&value)
Definition: Contact.h:77
Aws::SESV2::Model::Contact::WithLastUpdatedTimestamp
Contact & WithLastUpdatedTimestamp(Aws::Utils::DateTime &&value)
Definition: Contact.h:220
Aws::SESV2::Model::Contact::operator=
Contact & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::SESV2::Model::Contact
Definition: Contact.h:36
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::SESV2::Model::Contact::WithTopicPreferences
Contact & WithTopicPreferences(const Aws::Vector< TopicPreference > &value)
Definition: Contact.h:108
Aws::SESV2::Model::Contact::TopicDefaultPreferencesHasBeenSet
bool TopicDefaultPreferencesHasBeenSet() const
Definition: Contact.h:134
Aws::SESV2::Model::Contact::SetEmailAddress
void SetEmailAddress(const Aws::String &value)
Definition: Contact.h:57
Aws::SESV2::Model::Contact::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
AWSVector.h
Aws::SESV2::Model::Contact::EmailAddressHasBeenSet
bool EmailAddressHasBeenSet() const
Definition: Contact.h:52
Aws::SESV2::Model::Contact::WithLastUpdatedTimestamp
Contact & WithLastUpdatedTimestamp(const Aws::Utils::DateTime &value)
Definition: Contact.h:215
Aws::SESV2::Model::Contact::SetTopicPreferences
void SetTopicPreferences(Aws::Vector< TopicPreference > &&value)
Definition: Contact.h:103
Aws::SESV2::Model::Contact::WithTopicDefaultPreferences
Contact & WithTopicDefaultPreferences(const Aws::Vector< TopicPreference > &value)
Definition: Contact.h:149
Aws::SESV2::Model::Contact::WithTopicPreferences
Contact & WithTopicPreferences(Aws::Vector< TopicPreference > &&value)
Definition: Contact.h:113
Aws::SESV2::Model::Contact::UnsubscribeAllHasBeenSet
bool UnsubscribeAllHasBeenSet() const
Definition: Contact.h:177
Aws::SESV2::Model::Contact::SetEmailAddress
void SetEmailAddress(Aws::String &&value)
Definition: Contact.h:62
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::SESV2::Model::Contact::GetUnsubscribeAll
bool GetUnsubscribeAll() const
Definition: Contact.h:171
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
SESV2_EXPORTS.h
Aws::SESV2::Model::Contact::GetEmailAddress
const Aws::String & GetEmailAddress() const
Definition: Contact.h:47
Aws::SESV2::Model::Contact::AddTopicPreferences
Contact & AddTopicPreferences(const TopicPreference &value)
Definition: Contact.h:118
Aws::SESV2::Model::Contact::WithTopicDefaultPreferences
Contact & WithTopicDefaultPreferences(Aws::Vector< TopicPreference > &&value)
Definition: Contact.h:154
Aws::SESV2::Model::Contact::GetTopicPreferences
const Aws::Vector< TopicPreference > & GetTopicPreferences() const
Definition: Contact.h:88
Aws::SESV2::Model::Contact::SetTopicDefaultPreferences
void SetTopicDefaultPreferences(Aws::Vector< TopicPreference > &&value)
Definition: Contact.h:144
Aws::SESV2::Model::Contact::Contact
Contact()
Aws::SESV2::Model::Contact::LastUpdatedTimestampHasBeenSet
bool LastUpdatedTimestampHasBeenSet() const
Definition: Contact.h:200
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::SESV2::Model::Contact::AddTopicDefaultPreferences
Contact & AddTopicDefaultPreferences(const TopicPreference &value)
Definition: Contact.h:159
Aws::SESV2::Model::Contact::AddTopicDefaultPreferences
Contact & AddTopicDefaultPreferences(TopicPreference &&value)
Definition: Contact.h:164
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SESV2::Model::Contact::AddTopicPreferences
Contact & AddTopicPreferences(TopicPreference &&value)
Definition: Contact.h:123
Aws::SESV2::Model::Contact::WithEmailAddress
Contact & WithEmailAddress(const char *value)
Definition: Contact.h:82
Aws::SESV2::Model::Contact::GetLastUpdatedTimestamp
const Aws::Utils::DateTime & GetLastUpdatedTimestamp() const
Definition: Contact.h:195
Aws::SESV2::Model::Contact::SetEmailAddress
void SetEmailAddress(const char *value)
Definition: Contact.h:67
Aws::SESV2::Model::Contact::SetUnsubscribeAll
void SetUnsubscribeAll(bool value)
Definition: Contact.h:183
TopicPreference.h
Aws::SESV2::Model::Contact::TopicPreferencesHasBeenSet
bool TopicPreferencesHasBeenSet() const
Definition: Contact.h:93