AWS SDK for C++  1.9.155
AWS SDK for C++
GetContactResult.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 template<typename RESULT_TYPE>
17 class AmazonWebServiceResult;
18 
19 namespace Utils
20 {
21 namespace Json
22 {
23  class JsonValue;
24 } // namespace Json
25 } // namespace Utils
26 namespace SESV2
27 {
28 namespace Model
29 {
31  {
32  public:
36 
37 
41  inline const Aws::String& GetContactListName() const{ return m_contactListName; }
42 
46  inline void SetContactListName(const Aws::String& value) { m_contactListName = value; }
47 
51  inline void SetContactListName(Aws::String&& value) { m_contactListName = std::move(value); }
52 
56  inline void SetContactListName(const char* value) { m_contactListName.assign(value); }
57 
61  inline GetContactResult& WithContactListName(const Aws::String& value) { SetContactListName(value); return *this;}
62 
66  inline GetContactResult& WithContactListName(Aws::String&& value) { SetContactListName(std::move(value)); return *this;}
67 
71  inline GetContactResult& WithContactListName(const char* value) { SetContactListName(value); return *this;}
72 
73 
77  inline const Aws::String& GetEmailAddress() const{ return m_emailAddress; }
78 
82  inline void SetEmailAddress(const Aws::String& value) { m_emailAddress = value; }
83 
87  inline void SetEmailAddress(Aws::String&& value) { m_emailAddress = std::move(value); }
88 
92  inline void SetEmailAddress(const char* value) { m_emailAddress.assign(value); }
93 
97  inline GetContactResult& WithEmailAddress(const Aws::String& value) { SetEmailAddress(value); return *this;}
98 
102  inline GetContactResult& WithEmailAddress(Aws::String&& value) { SetEmailAddress(std::move(value)); return *this;}
103 
107  inline GetContactResult& WithEmailAddress(const char* value) { SetEmailAddress(value); return *this;}
108 
109 
114  inline const Aws::Vector<TopicPreference>& GetTopicPreferences() const{ return m_topicPreferences; }
115 
120  inline void SetTopicPreferences(const Aws::Vector<TopicPreference>& value) { m_topicPreferences = value; }
121 
126  inline void SetTopicPreferences(Aws::Vector<TopicPreference>&& value) { m_topicPreferences = std::move(value); }
127 
132  inline GetContactResult& WithTopicPreferences(const Aws::Vector<TopicPreference>& value) { SetTopicPreferences(value); return *this;}
133 
138  inline GetContactResult& WithTopicPreferences(Aws::Vector<TopicPreference>&& value) { SetTopicPreferences(std::move(value)); return *this;}
139 
144  inline GetContactResult& AddTopicPreferences(const TopicPreference& value) { m_topicPreferences.push_back(value); return *this; }
145 
150  inline GetContactResult& AddTopicPreferences(TopicPreference&& value) { m_topicPreferences.push_back(std::move(value)); return *this; }
151 
152 
156  inline const Aws::Vector<TopicPreference>& GetTopicDefaultPreferences() const{ return m_topicDefaultPreferences; }
157 
161  inline void SetTopicDefaultPreferences(const Aws::Vector<TopicPreference>& value) { m_topicDefaultPreferences = value; }
162 
166  inline void SetTopicDefaultPreferences(Aws::Vector<TopicPreference>&& value) { m_topicDefaultPreferences = std::move(value); }
167 
171  inline GetContactResult& WithTopicDefaultPreferences(const Aws::Vector<TopicPreference>& value) { SetTopicDefaultPreferences(value); return *this;}
172 
176  inline GetContactResult& WithTopicDefaultPreferences(Aws::Vector<TopicPreference>&& value) { SetTopicDefaultPreferences(std::move(value)); return *this;}
177 
181  inline GetContactResult& AddTopicDefaultPreferences(const TopicPreference& value) { m_topicDefaultPreferences.push_back(value); return *this; }
182 
186  inline GetContactResult& AddTopicDefaultPreferences(TopicPreference&& value) { m_topicDefaultPreferences.push_back(std::move(value)); return *this; }
187 
188 
193  inline bool GetUnsubscribeAll() const{ return m_unsubscribeAll; }
194 
199  inline void SetUnsubscribeAll(bool value) { m_unsubscribeAll = value; }
200 
205  inline GetContactResult& WithUnsubscribeAll(bool value) { SetUnsubscribeAll(value); return *this;}
206 
207 
211  inline const Aws::String& GetAttributesData() const{ return m_attributesData; }
212 
216  inline void SetAttributesData(const Aws::String& value) { m_attributesData = value; }
217 
221  inline void SetAttributesData(Aws::String&& value) { m_attributesData = std::move(value); }
222 
226  inline void SetAttributesData(const char* value) { m_attributesData.assign(value); }
227 
231  inline GetContactResult& WithAttributesData(const Aws::String& value) { SetAttributesData(value); return *this;}
232 
236  inline GetContactResult& WithAttributesData(Aws::String&& value) { SetAttributesData(std::move(value)); return *this;}
237 
241  inline GetContactResult& WithAttributesData(const char* value) { SetAttributesData(value); return *this;}
242 
243 
247  inline const Aws::Utils::DateTime& GetCreatedTimestamp() const{ return m_createdTimestamp; }
248 
252  inline void SetCreatedTimestamp(const Aws::Utils::DateTime& value) { m_createdTimestamp = value; }
253 
257  inline void SetCreatedTimestamp(Aws::Utils::DateTime&& value) { m_createdTimestamp = std::move(value); }
258 
262  inline GetContactResult& WithCreatedTimestamp(const Aws::Utils::DateTime& value) { SetCreatedTimestamp(value); return *this;}
263 
267  inline GetContactResult& WithCreatedTimestamp(Aws::Utils::DateTime&& value) { SetCreatedTimestamp(std::move(value)); return *this;}
268 
269 
273  inline const Aws::Utils::DateTime& GetLastUpdatedTimestamp() const{ return m_lastUpdatedTimestamp; }
274 
278  inline void SetLastUpdatedTimestamp(const Aws::Utils::DateTime& value) { m_lastUpdatedTimestamp = value; }
279 
283  inline void SetLastUpdatedTimestamp(Aws::Utils::DateTime&& value) { m_lastUpdatedTimestamp = std::move(value); }
284 
288  inline GetContactResult& WithLastUpdatedTimestamp(const Aws::Utils::DateTime& value) { SetLastUpdatedTimestamp(value); return *this;}
289 
293  inline GetContactResult& WithLastUpdatedTimestamp(Aws::Utils::DateTime&& value) { SetLastUpdatedTimestamp(std::move(value)); return *this;}
294 
295  private:
296 
297  Aws::String m_contactListName;
298 
299  Aws::String m_emailAddress;
300 
301  Aws::Vector<TopicPreference> m_topicPreferences;
302 
303  Aws::Vector<TopicPreference> m_topicDefaultPreferences;
304 
305  bool m_unsubscribeAll;
306 
307  Aws::String m_attributesData;
308 
309  Aws::Utils::DateTime m_createdTimestamp;
310 
311  Aws::Utils::DateTime m_lastUpdatedTimestamp;
312  };
313 
314 } // namespace Model
315 } // namespace SESV2
316 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::SESV2::Model::GetContactResult::GetUnsubscribeAll
bool GetUnsubscribeAll() const
Definition: GetContactResult.h:193
AWS_SESV2_API
#define AWS_SESV2_API
Definition: SESV2_EXPORTS.h:28
Aws::SESV2::Model::GetContactResult::WithUnsubscribeAll
GetContactResult & WithUnsubscribeAll(bool value)
Definition: GetContactResult.h:205
Aws::SESV2::Model::GetContactResult::SetLastUpdatedTimestamp
void SetLastUpdatedTimestamp(Aws::Utils::DateTime &&value)
Definition: GetContactResult.h:283
Aws::SESV2::Model::GetContactResult::GetTopicPreferences
const Aws::Vector< TopicPreference > & GetTopicPreferences() const
Definition: GetContactResult.h:114
Aws::SESV2::Model::GetContactResult::WithTopicPreferences
GetContactResult & WithTopicPreferences(const Aws::Vector< TopicPreference > &value)
Definition: GetContactResult.h:132
Aws::SESV2::Model::GetContactResult::WithLastUpdatedTimestamp
GetContactResult & WithLastUpdatedTimestamp(Aws::Utils::DateTime &&value)
Definition: GetContactResult.h:293
Aws::SESV2::Model::TopicPreference
Definition: TopicPreference.h:34
Aws::SESV2::Model::GetContactResult::SetCreatedTimestamp
void SetCreatedTimestamp(const Aws::Utils::DateTime &value)
Definition: GetContactResult.h:252
DateTime.h
Aws::SESV2::Model::GetContactResult::WithAttributesData
GetContactResult & WithAttributesData(const char *value)
Definition: GetContactResult.h:241
Aws::SESV2::Model::GetContactResult::GetCreatedTimestamp
const Aws::Utils::DateTime & GetCreatedTimestamp() const
Definition: GetContactResult.h:247
Aws::SESV2::Model::GetContactResult::SetEmailAddress
void SetEmailAddress(Aws::String &&value)
Definition: GetContactResult.h:87
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::SESV2::Model::GetContactResult::AddTopicPreferences
GetContactResult & AddTopicPreferences(const TopicPreference &value)
Definition: GetContactResult.h:144
Aws::SESV2::Model::GetContactResult::GetContactListName
const Aws::String & GetContactListName() const
Definition: GetContactResult.h:41
Aws::SESV2::Model::GetContactResult
Definition: GetContactResult.h:31
AWSVector.h
Aws::SESV2::Model::GetContactResult::SetContactListName
void SetContactListName(Aws::String &&value)
Definition: GetContactResult.h:51
Aws::SESV2::Model::GetContactResult::WithTopicDefaultPreferences
GetContactResult & WithTopicDefaultPreferences(Aws::Vector< TopicPreference > &&value)
Definition: GetContactResult.h:176
Aws::SESV2::Model::GetContactResult::WithAttributesData
GetContactResult & WithAttributesData(const Aws::String &value)
Definition: GetContactResult.h:231
Aws::SESV2::Model::GetContactResult::SetTopicDefaultPreferences
void SetTopicDefaultPreferences(Aws::Vector< TopicPreference > &&value)
Definition: GetContactResult.h:166
Aws::SESV2::Model::GetContactResult::SetCreatedTimestamp
void SetCreatedTimestamp(Aws::Utils::DateTime &&value)
Definition: GetContactResult.h:257
Aws::SESV2::Model::GetContactResult::WithCreatedTimestamp
GetContactResult & WithCreatedTimestamp(Aws::Utils::DateTime &&value)
Definition: GetContactResult.h:267
Aws::SESV2::Model::GetContactResult::AddTopicDefaultPreferences
GetContactResult & AddTopicDefaultPreferences(TopicPreference &&value)
Definition: GetContactResult.h:186
Aws::SESV2::Model::GetContactResult::GetLastUpdatedTimestamp
const Aws::Utils::DateTime & GetLastUpdatedTimestamp() const
Definition: GetContactResult.h:273
Aws::SESV2::Model::GetContactResult::WithContactListName
GetContactResult & WithContactListName(const char *value)
Definition: GetContactResult.h:71
Aws::SESV2::Model::GetContactResult::SetTopicDefaultPreferences
void SetTopicDefaultPreferences(const Aws::Vector< TopicPreference > &value)
Definition: GetContactResult.h:161
Aws::SESV2::Model::GetContactResult::SetUnsubscribeAll
void SetUnsubscribeAll(bool value)
Definition: GetContactResult.h:199
Aws::SESV2::Model::GetContactResult::AddTopicDefaultPreferences
GetContactResult & AddTopicDefaultPreferences(const TopicPreference &value)
Definition: GetContactResult.h:181
Aws::SESV2::Model::GetContactResult::WithEmailAddress
GetContactResult & WithEmailAddress(const char *value)
Definition: GetContactResult.h:107
Aws::SESV2::Model::GetContactResult::WithCreatedTimestamp
GetContactResult & WithCreatedTimestamp(const Aws::Utils::DateTime &value)
Definition: GetContactResult.h:262
Aws::SESV2::Model::GetContactResult::SetAttributesData
void SetAttributesData(Aws::String &&value)
Definition: GetContactResult.h:221
Aws::SESV2::Model::GetContactResult::SetContactListName
void SetContactListName(const Aws::String &value)
Definition: GetContactResult.h:46
Aws::SESV2::Model::GetContactResult::WithLastUpdatedTimestamp
GetContactResult & WithLastUpdatedTimestamp(const Aws::Utils::DateTime &value)
Definition: GetContactResult.h:288
AWSString.h
Aws::SESV2::Model::GetContactResult::GetContactResult
GetContactResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::SESV2::Model::GetContactResult::SetAttributesData
void SetAttributesData(const char *value)
Definition: GetContactResult.h:226
SESV2_EXPORTS.h
Aws::SESV2::Model::GetContactResult::WithTopicPreferences
GetContactResult & WithTopicPreferences(Aws::Vector< TopicPreference > &&value)
Definition: GetContactResult.h:138
Aws::SESV2::Model::GetContactResult::SetTopicPreferences
void SetTopicPreferences(Aws::Vector< TopicPreference > &&value)
Definition: GetContactResult.h:126
Aws::SESV2::Model::GetContactResult::WithTopicDefaultPreferences
GetContactResult & WithTopicDefaultPreferences(const Aws::Vector< TopicPreference > &value)
Definition: GetContactResult.h:171
Aws::SESV2::Model::GetContactResult::GetTopicDefaultPreferences
const Aws::Vector< TopicPreference > & GetTopicDefaultPreferences() const
Definition: GetContactResult.h:156
Aws::SESV2::Model::GetContactResult::WithAttributesData
GetContactResult & WithAttributesData(Aws::String &&value)
Definition: GetContactResult.h:236
Aws::SESV2::Model::GetContactResult::SetEmailAddress
void SetEmailAddress(const char *value)
Definition: GetContactResult.h:92
Aws::SESV2::Model::GetContactResult::AddTopicPreferences
GetContactResult & AddTopicPreferences(TopicPreference &&value)
Definition: GetContactResult.h:150
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws::SESV2::Model::GetContactResult::WithContactListName
GetContactResult & WithContactListName(Aws::String &&value)
Definition: GetContactResult.h:66
Aws::SESV2::Model::GetContactResult::WithEmailAddress
GetContactResult & WithEmailAddress(Aws::String &&value)
Definition: GetContactResult.h:102
Aws
Definition: AccessManagementClient.h:15
Aws::SESV2::Model::GetContactResult::SetTopicPreferences
void SetTopicPreferences(const Aws::Vector< TopicPreference > &value)
Definition: GetContactResult.h:120
Aws::SESV2::Model::GetContactResult::GetAttributesData
const Aws::String & GetAttributesData() const
Definition: GetContactResult.h:211
Aws::SESV2::Model::GetContactResult::operator=
GetContactResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::SESV2::Model::GetContactResult::GetContactResult
GetContactResult()
Aws::SESV2::Model::GetContactResult::WithContactListName
GetContactResult & WithContactListName(const Aws::String &value)
Definition: GetContactResult.h:61
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SESV2::Model::GetContactResult::GetEmailAddress
const Aws::String & GetEmailAddress() const
Definition: GetContactResult.h:77
Aws::SESV2::Model::GetContactResult::SetLastUpdatedTimestamp
void SetLastUpdatedTimestamp(const Aws::Utils::DateTime &value)
Definition: GetContactResult.h:278
Aws::SESV2::Model::GetContactResult::WithEmailAddress
GetContactResult & WithEmailAddress(const Aws::String &value)
Definition: GetContactResult.h:97
TopicPreference.h
Aws::SESV2::Model::GetContactResult::SetContactListName
void SetContactListName(const char *value)
Definition: GetContactResult.h:56
Aws::SESV2::Model::GetContactResult::SetEmailAddress
void SetEmailAddress(const Aws::String &value)
Definition: GetContactResult.h:82
Aws::SESV2::Model::GetContactResult::SetAttributesData
void SetAttributesData(const Aws::String &value)
Definition: GetContactResult.h:216