AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
EventSubscription.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/dms/DatabaseMigrationService_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace DatabaseMigrationService {
21namespace Model {
22
30 public:
31 AWS_DATABASEMIGRATIONSERVICE_API EventSubscription() = default;
32 AWS_DATABASEMIGRATIONSERVICE_API EventSubscription(Aws::Utils::Json::JsonView jsonValue);
33 AWS_DATABASEMIGRATIONSERVICE_API EventSubscription& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetCustomerAwsId() const { return m_customerAwsId; }
42 inline bool CustomerAwsIdHasBeenSet() const { return m_customerAwsIdHasBeenSet; }
43 template <typename CustomerAwsIdT = Aws::String>
44 void SetCustomerAwsId(CustomerAwsIdT&& value) {
45 m_customerAwsIdHasBeenSet = true;
46 m_customerAwsId = std::forward<CustomerAwsIdT>(value);
47 }
48 template <typename CustomerAwsIdT = Aws::String>
49 EventSubscription& WithCustomerAwsId(CustomerAwsIdT&& value) {
50 SetCustomerAwsId(std::forward<CustomerAwsIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetCustSubscriptionId() const { return m_custSubscriptionId; }
60 inline bool CustSubscriptionIdHasBeenSet() const { return m_custSubscriptionIdHasBeenSet; }
61 template <typename CustSubscriptionIdT = Aws::String>
62 void SetCustSubscriptionId(CustSubscriptionIdT&& value) {
63 m_custSubscriptionIdHasBeenSet = true;
64 m_custSubscriptionId = std::forward<CustSubscriptionIdT>(value);
65 }
66 template <typename CustSubscriptionIdT = Aws::String>
67 EventSubscription& WithCustSubscriptionId(CustSubscriptionIdT&& value) {
68 SetCustSubscriptionId(std::forward<CustSubscriptionIdT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetSnsTopicArn() const { return m_snsTopicArn; }
78 inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; }
79 template <typename SnsTopicArnT = Aws::String>
80 void SetSnsTopicArn(SnsTopicArnT&& value) {
81 m_snsTopicArnHasBeenSet = true;
82 m_snsTopicArn = std::forward<SnsTopicArnT>(value);
83 }
84 template <typename SnsTopicArnT = Aws::String>
85 EventSubscription& WithSnsTopicArn(SnsTopicArnT&& value) {
86 SetSnsTopicArn(std::forward<SnsTopicArnT>(value));
87 return *this;
88 }
90
92
100 inline const Aws::String& GetStatus() const { return m_status; }
101 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
102 template <typename StatusT = Aws::String>
103 void SetStatus(StatusT&& value) {
104 m_statusHasBeenSet = true;
105 m_status = std::forward<StatusT>(value);
106 }
107 template <typename StatusT = Aws::String>
108 EventSubscription& WithStatus(StatusT&& value) {
109 SetStatus(std::forward<StatusT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::String& GetSubscriptionCreationTime() const { return m_subscriptionCreationTime; }
119 inline bool SubscriptionCreationTimeHasBeenSet() const { return m_subscriptionCreationTimeHasBeenSet; }
120 template <typename SubscriptionCreationTimeT = Aws::String>
121 void SetSubscriptionCreationTime(SubscriptionCreationTimeT&& value) {
122 m_subscriptionCreationTimeHasBeenSet = true;
123 m_subscriptionCreationTime = std::forward<SubscriptionCreationTimeT>(value);
124 }
125 template <typename SubscriptionCreationTimeT = Aws::String>
126 EventSubscription& WithSubscriptionCreationTime(SubscriptionCreationTimeT&& value) {
127 SetSubscriptionCreationTime(std::forward<SubscriptionCreationTimeT>(value));
128 return *this;
129 }
131
133
138 inline const Aws::String& GetSourceType() const { return m_sourceType; }
139 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
140 template <typename SourceTypeT = Aws::String>
141 void SetSourceType(SourceTypeT&& value) {
142 m_sourceTypeHasBeenSet = true;
143 m_sourceType = std::forward<SourceTypeT>(value);
144 }
145 template <typename SourceTypeT = Aws::String>
146 EventSubscription& WithSourceType(SourceTypeT&& value) {
147 SetSourceType(std::forward<SourceTypeT>(value));
148 return *this;
149 }
151
153
156 inline const Aws::Vector<Aws::String>& GetSourceIdsList() const { return m_sourceIdsList; }
157 inline bool SourceIdsListHasBeenSet() const { return m_sourceIdsListHasBeenSet; }
158 template <typename SourceIdsListT = Aws::Vector<Aws::String>>
159 void SetSourceIdsList(SourceIdsListT&& value) {
160 m_sourceIdsListHasBeenSet = true;
161 m_sourceIdsList = std::forward<SourceIdsListT>(value);
162 }
163 template <typename SourceIdsListT = Aws::Vector<Aws::String>>
164 EventSubscription& WithSourceIdsList(SourceIdsListT&& value) {
165 SetSourceIdsList(std::forward<SourceIdsListT>(value));
166 return *this;
167 }
168 template <typename SourceIdsListT = Aws::String>
169 EventSubscription& AddSourceIdsList(SourceIdsListT&& value) {
170 m_sourceIdsListHasBeenSet = true;
171 m_sourceIdsList.emplace_back(std::forward<SourceIdsListT>(value));
172 return *this;
173 }
175
177
180 inline const Aws::Vector<Aws::String>& GetEventCategoriesList() const { return m_eventCategoriesList; }
181 inline bool EventCategoriesListHasBeenSet() const { return m_eventCategoriesListHasBeenSet; }
182 template <typename EventCategoriesListT = Aws::Vector<Aws::String>>
183 void SetEventCategoriesList(EventCategoriesListT&& value) {
184 m_eventCategoriesListHasBeenSet = true;
185 m_eventCategoriesList = std::forward<EventCategoriesListT>(value);
186 }
187 template <typename EventCategoriesListT = Aws::Vector<Aws::String>>
188 EventSubscription& WithEventCategoriesList(EventCategoriesListT&& value) {
189 SetEventCategoriesList(std::forward<EventCategoriesListT>(value));
190 return *this;
191 }
192 template <typename EventCategoriesListT = Aws::String>
193 EventSubscription& AddEventCategoriesList(EventCategoriesListT&& value) {
194 m_eventCategoriesListHasBeenSet = true;
195 m_eventCategoriesList.emplace_back(std::forward<EventCategoriesListT>(value));
196 return *this;
197 }
199
201
204 inline bool GetEnabled() const { return m_enabled; }
205 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
206 inline void SetEnabled(bool value) {
207 m_enabledHasBeenSet = true;
208 m_enabled = value;
209 }
210 inline EventSubscription& WithEnabled(bool value) {
211 SetEnabled(value);
212 return *this;
213 }
215 private:
216 Aws::String m_customerAwsId;
217
218 Aws::String m_custSubscriptionId;
219
220 Aws::String m_snsTopicArn;
221
222 Aws::String m_status;
223
224 Aws::String m_subscriptionCreationTime;
225
226 Aws::String m_sourceType;
227
228 Aws::Vector<Aws::String> m_sourceIdsList;
229
230 Aws::Vector<Aws::String> m_eventCategoriesList;
231
232 bool m_enabled{false};
233 bool m_customerAwsIdHasBeenSet = false;
234 bool m_custSubscriptionIdHasBeenSet = false;
235 bool m_snsTopicArnHasBeenSet = false;
236 bool m_statusHasBeenSet = false;
237 bool m_subscriptionCreationTimeHasBeenSet = false;
238 bool m_sourceTypeHasBeenSet = false;
239 bool m_sourceIdsListHasBeenSet = false;
240 bool m_eventCategoriesListHasBeenSet = false;
241 bool m_enabledHasBeenSet = false;
242};
243
244} // namespace Model
245} // namespace DatabaseMigrationService
246} // namespace Aws
AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetEventCategoriesList(EventCategoriesListT &&value)
void SetSubscriptionCreationTime(SubscriptionCreationTimeT &&value)
EventSubscription & WithSourceIdsList(SourceIdsListT &&value)
EventSubscription & AddEventCategoriesList(EventCategoriesListT &&value)
EventSubscription & WithSnsTopicArn(SnsTopicArnT &&value)
AWS_DATABASEMIGRATIONSERVICE_API EventSubscription(Aws::Utils::Json::JsonView jsonValue)
EventSubscription & AddSourceIdsList(SourceIdsListT &&value)
AWS_DATABASEMIGRATIONSERVICE_API EventSubscription()=default
EventSubscription & WithCustomerAwsId(CustomerAwsIdT &&value)
AWS_DATABASEMIGRATIONSERVICE_API EventSubscription & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetSourceIdsList() const
EventSubscription & WithCustSubscriptionId(CustSubscriptionIdT &&value)
EventSubscription & WithEventCategoriesList(EventCategoriesListT &&value)
EventSubscription & WithSourceType(SourceTypeT &&value)
const Aws::Vector< Aws::String > & GetEventCategoriesList() const
EventSubscription & WithSubscriptionCreationTime(SubscriptionCreationTimeT &&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