AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetContactResult.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{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace SESV2
27{
28namespace Model
29{
31 {
32 public:
33 AWS_SESV2_API GetContactResult();
36
37
39
42 inline const Aws::String& GetContactListName() const{ return m_contactListName; }
43 inline void SetContactListName(const Aws::String& value) { m_contactListName = value; }
44 inline void SetContactListName(Aws::String&& value) { m_contactListName = std::move(value); }
45 inline void SetContactListName(const char* value) { m_contactListName.assign(value); }
46 inline GetContactResult& WithContactListName(const Aws::String& value) { SetContactListName(value); return *this;}
47 inline GetContactResult& WithContactListName(Aws::String&& value) { SetContactListName(std::move(value)); return *this;}
48 inline GetContactResult& WithContactListName(const char* value) { SetContactListName(value); return *this;}
50
52
55 inline const Aws::String& GetEmailAddress() const{ return m_emailAddress; }
56 inline void SetEmailAddress(const Aws::String& value) { m_emailAddress = value; }
57 inline void SetEmailAddress(Aws::String&& value) { m_emailAddress = std::move(value); }
58 inline void SetEmailAddress(const char* value) { m_emailAddress.assign(value); }
59 inline GetContactResult& WithEmailAddress(const Aws::String& value) { SetEmailAddress(value); return *this;}
60 inline GetContactResult& WithEmailAddress(Aws::String&& value) { SetEmailAddress(std::move(value)); return *this;}
61 inline GetContactResult& WithEmailAddress(const char* value) { SetEmailAddress(value); return *this;}
63
65
69 inline const Aws::Vector<TopicPreference>& GetTopicPreferences() const{ return m_topicPreferences; }
70 inline void SetTopicPreferences(const Aws::Vector<TopicPreference>& value) { m_topicPreferences = value; }
71 inline void SetTopicPreferences(Aws::Vector<TopicPreference>&& value) { m_topicPreferences = std::move(value); }
74 inline GetContactResult& AddTopicPreferences(const TopicPreference& value) { m_topicPreferences.push_back(value); return *this; }
75 inline GetContactResult& AddTopicPreferences(TopicPreference&& value) { m_topicPreferences.push_back(std::move(value)); return *this; }
77
79
82 inline const Aws::Vector<TopicPreference>& GetTopicDefaultPreferences() const{ return m_topicDefaultPreferences; }
83 inline void SetTopicDefaultPreferences(const Aws::Vector<TopicPreference>& value) { m_topicDefaultPreferences = value; }
84 inline void SetTopicDefaultPreferences(Aws::Vector<TopicPreference>&& value) { m_topicDefaultPreferences = std::move(value); }
87 inline GetContactResult& AddTopicDefaultPreferences(const TopicPreference& value) { m_topicDefaultPreferences.push_back(value); return *this; }
88 inline GetContactResult& AddTopicDefaultPreferences(TopicPreference&& value) { m_topicDefaultPreferences.push_back(std::move(value)); return *this; }
90
92
96 inline bool GetUnsubscribeAll() const{ return m_unsubscribeAll; }
97 inline void SetUnsubscribeAll(bool value) { m_unsubscribeAll = value; }
98 inline GetContactResult& WithUnsubscribeAll(bool value) { SetUnsubscribeAll(value); return *this;}
100
102
105 inline const Aws::String& GetAttributesData() const{ return m_attributesData; }
106 inline void SetAttributesData(const Aws::String& value) { m_attributesData = value; }
107 inline void SetAttributesData(Aws::String&& value) { m_attributesData = std::move(value); }
108 inline void SetAttributesData(const char* value) { m_attributesData.assign(value); }
109 inline GetContactResult& WithAttributesData(const Aws::String& value) { SetAttributesData(value); return *this;}
110 inline GetContactResult& WithAttributesData(Aws::String&& value) { SetAttributesData(std::move(value)); return *this;}
111 inline GetContactResult& WithAttributesData(const char* value) { SetAttributesData(value); return *this;}
113
115
118 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const{ return m_createdTimestamp; }
119 inline void SetCreatedTimestamp(const Aws::Utils::DateTime& value) { m_createdTimestamp = value; }
120 inline void SetCreatedTimestamp(Aws::Utils::DateTime&& value) { m_createdTimestamp = std::move(value); }
122 inline GetContactResult& WithCreatedTimestamp(Aws::Utils::DateTime&& value) { SetCreatedTimestamp(std::move(value)); return *this;}
124
126
129 inline const Aws::Utils::DateTime& GetLastUpdatedTimestamp() const{ return m_lastUpdatedTimestamp; }
130 inline void SetLastUpdatedTimestamp(const Aws::Utils::DateTime& value) { m_lastUpdatedTimestamp = value; }
131 inline void SetLastUpdatedTimestamp(Aws::Utils::DateTime&& value) { m_lastUpdatedTimestamp = std::move(value); }
135
137
138 inline const Aws::String& GetRequestId() const{ return m_requestId; }
139 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
140 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
141 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
142 inline GetContactResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
143 inline GetContactResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
144 inline GetContactResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
146 private:
147
148 Aws::String m_contactListName;
149
150 Aws::String m_emailAddress;
151
152 Aws::Vector<TopicPreference> m_topicPreferences;
153
154 Aws::Vector<TopicPreference> m_topicDefaultPreferences;
155
156 bool m_unsubscribeAll;
157
158 Aws::String m_attributesData;
159
160 Aws::Utils::DateTime m_createdTimestamp;
161
162 Aws::Utils::DateTime m_lastUpdatedTimestamp;
163
164 Aws::String m_requestId;
165 };
166
167} // namespace Model
168} // namespace SESV2
169} // namespace Aws
void SetEmailAddress(const char *value)
GetContactResult & WithAttributesData(const char *value)
GetContactResult & WithAttributesData(const Aws::String &value)
GetContactResult & WithContactListName(Aws::String &&value)
GetContactResult & WithLastUpdatedTimestamp(const Aws::Utils::DateTime &value)
void SetTopicPreferences(const Aws::Vector< TopicPreference > &value)
GetContactResult & WithCreatedTimestamp(Aws::Utils::DateTime &&value)
void SetContactListName(Aws::String &&value)
GetContactResult & WithTopicPreferences(const Aws::Vector< TopicPreference > &value)
const Aws::Vector< TopicPreference > & GetTopicPreferences() const
void SetTopicDefaultPreferences(const Aws::Vector< TopicPreference > &value)
GetContactResult & WithUnsubscribeAll(bool value)
GetContactResult & AddTopicDefaultPreferences(TopicPreference &&value)
const Aws::Utils::DateTime & GetCreatedTimestamp() const
GetContactResult & WithRequestId(const char *value)
GetContactResult & WithContactListName(const Aws::String &value)
void SetContactListName(const char *value)
const Aws::String & GetContactListName() const
void SetRequestId(const Aws::String &value)
void SetTopicDefaultPreferences(Aws::Vector< TopicPreference > &&value)
GetContactResult & WithTopicDefaultPreferences(const Aws::Vector< TopicPreference > &value)
AWS_SESV2_API GetContactResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetContactResult & WithEmailAddress(const char *value)
void SetCreatedTimestamp(const Aws::Utils::DateTime &value)
void SetAttributesData(const Aws::String &value)
const Aws::String & GetRequestId() const
void SetLastUpdatedTimestamp(Aws::Utils::DateTime &&value)
const Aws::String & GetAttributesData() const
GetContactResult & WithEmailAddress(Aws::String &&value)
GetContactResult & WithLastUpdatedTimestamp(Aws::Utils::DateTime &&value)
GetContactResult & AddTopicPreferences(TopicPreference &&value)
const Aws::String & GetEmailAddress() const
void SetCreatedTimestamp(Aws::Utils::DateTime &&value)
void SetRequestId(Aws::String &&value)
GetContactResult & WithEmailAddress(const Aws::String &value)
GetContactResult & WithContactListName(const char *value)
GetContactResult & WithRequestId(Aws::String &&value)
AWS_SESV2_API GetContactResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< TopicPreference > & GetTopicDefaultPreferences() const
GetContactResult & WithTopicDefaultPreferences(Aws::Vector< TopicPreference > &&value)
GetContactResult & WithCreatedTimestamp(const Aws::Utils::DateTime &value)
GetContactResult & WithAttributesData(Aws::String &&value)
GetContactResult & WithRequestId(const Aws::String &value)
const Aws::Utils::DateTime & GetLastUpdatedTimestamp() const
void SetEmailAddress(const Aws::String &value)
void SetEmailAddress(Aws::String &&value)
GetContactResult & AddTopicDefaultPreferences(const TopicPreference &value)
GetContactResult & WithTopicPreferences(Aws::Vector< TopicPreference > &&value)
void SetAttributesData(const char *value)
GetContactResult & AddTopicPreferences(const TopicPreference &value)
void SetContactListName(const Aws::String &value)
void SetLastUpdatedTimestamp(const Aws::Utils::DateTime &value)
void SetTopicPreferences(Aws::Vector< TopicPreference > &&value)
void SetAttributesData(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue