AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
EventSubscription.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/docdb/DocDB_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace DocDB {
21namespace Model {
22
30 public:
31 AWS_DOCDB_API EventSubscription() = default;
32 AWS_DOCDB_API EventSubscription(const Aws::Utils::Xml::XmlNode& xmlNode);
34
35 AWS_DOCDB_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
36 AWS_DOCDB_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
43 inline const Aws::String& GetCustomerAwsId() const { return m_customerAwsId; }
44 inline bool CustomerAwsIdHasBeenSet() const { return m_customerAwsIdHasBeenSet; }
45 template <typename CustomerAwsIdT = Aws::String>
46 void SetCustomerAwsId(CustomerAwsIdT&& value) {
47 m_customerAwsIdHasBeenSet = true;
48 m_customerAwsId = std::forward<CustomerAwsIdT>(value);
49 }
50 template <typename CustomerAwsIdT = Aws::String>
51 EventSubscription& WithCustomerAwsId(CustomerAwsIdT&& value) {
52 SetCustomerAwsId(std::forward<CustomerAwsIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetCustSubscriptionId() const { return m_custSubscriptionId; }
62 inline bool CustSubscriptionIdHasBeenSet() const { return m_custSubscriptionIdHasBeenSet; }
63 template <typename CustSubscriptionIdT = Aws::String>
64 void SetCustSubscriptionId(CustSubscriptionIdT&& value) {
65 m_custSubscriptionIdHasBeenSet = true;
66 m_custSubscriptionId = std::forward<CustSubscriptionIdT>(value);
67 }
68 template <typename CustSubscriptionIdT = Aws::String>
69 EventSubscription& WithCustSubscriptionId(CustSubscriptionIdT&& value) {
70 SetCustSubscriptionId(std::forward<CustSubscriptionIdT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetSnsTopicArn() const { return m_snsTopicArn; }
80 inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; }
81 template <typename SnsTopicArnT = Aws::String>
82 void SetSnsTopicArn(SnsTopicArnT&& value) {
83 m_snsTopicArnHasBeenSet = true;
84 m_snsTopicArn = std::forward<SnsTopicArnT>(value);
85 }
86 template <typename SnsTopicArnT = Aws::String>
87 EventSubscription& WithSnsTopicArn(SnsTopicArnT&& value) {
88 SetSnsTopicArn(std::forward<SnsTopicArnT>(value));
89 return *this;
90 }
92
94
103 inline const Aws::String& GetStatus() const { return m_status; }
104 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
105 template <typename StatusT = Aws::String>
106 void SetStatus(StatusT&& value) {
107 m_statusHasBeenSet = true;
108 m_status = std::forward<StatusT>(value);
109 }
110 template <typename StatusT = Aws::String>
111 EventSubscription& WithStatus(StatusT&& value) {
112 SetStatus(std::forward<StatusT>(value));
113 return *this;
114 }
116
118
122 inline const Aws::String& GetSubscriptionCreationTime() const { return m_subscriptionCreationTime; }
123 inline bool SubscriptionCreationTimeHasBeenSet() const { return m_subscriptionCreationTimeHasBeenSet; }
124 template <typename SubscriptionCreationTimeT = Aws::String>
125 void SetSubscriptionCreationTime(SubscriptionCreationTimeT&& value) {
126 m_subscriptionCreationTimeHasBeenSet = true;
127 m_subscriptionCreationTime = std::forward<SubscriptionCreationTimeT>(value);
128 }
129 template <typename SubscriptionCreationTimeT = Aws::String>
130 EventSubscription& WithSubscriptionCreationTime(SubscriptionCreationTimeT&& value) {
131 SetSubscriptionCreationTime(std::forward<SubscriptionCreationTimeT>(value));
132 return *this;
133 }
135
137
141 inline const Aws::String& GetSourceType() const { return m_sourceType; }
142 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
143 template <typename SourceTypeT = Aws::String>
144 void SetSourceType(SourceTypeT&& value) {
145 m_sourceTypeHasBeenSet = true;
146 m_sourceType = std::forward<SourceTypeT>(value);
147 }
148 template <typename SourceTypeT = Aws::String>
149 EventSubscription& WithSourceType(SourceTypeT&& value) {
150 SetSourceType(std::forward<SourceTypeT>(value));
151 return *this;
152 }
154
156
160 inline const Aws::Vector<Aws::String>& GetSourceIdsList() const { return m_sourceIdsList; }
161 inline bool SourceIdsListHasBeenSet() const { return m_sourceIdsListHasBeenSet; }
162 template <typename SourceIdsListT = Aws::Vector<Aws::String>>
163 void SetSourceIdsList(SourceIdsListT&& value) {
164 m_sourceIdsListHasBeenSet = true;
165 m_sourceIdsList = std::forward<SourceIdsListT>(value);
166 }
167 template <typename SourceIdsListT = Aws::Vector<Aws::String>>
168 EventSubscription& WithSourceIdsList(SourceIdsListT&& value) {
169 SetSourceIdsList(std::forward<SourceIdsListT>(value));
170 return *this;
171 }
172 template <typename SourceIdsListT = Aws::String>
173 EventSubscription& AddSourceIdsList(SourceIdsListT&& value) {
174 m_sourceIdsListHasBeenSet = true;
175 m_sourceIdsList.emplace_back(std::forward<SourceIdsListT>(value));
176 return *this;
177 }
179
181
185 inline const Aws::Vector<Aws::String>& GetEventCategoriesList() const { return m_eventCategoriesList; }
186 inline bool EventCategoriesListHasBeenSet() const { return m_eventCategoriesListHasBeenSet; }
187 template <typename EventCategoriesListT = Aws::Vector<Aws::String>>
188 void SetEventCategoriesList(EventCategoriesListT&& value) {
189 m_eventCategoriesListHasBeenSet = true;
190 m_eventCategoriesList = std::forward<EventCategoriesListT>(value);
191 }
192 template <typename EventCategoriesListT = Aws::Vector<Aws::String>>
193 EventSubscription& WithEventCategoriesList(EventCategoriesListT&& value) {
194 SetEventCategoriesList(std::forward<EventCategoriesListT>(value));
195 return *this;
196 }
197 template <typename EventCategoriesListT = Aws::String>
198 EventSubscription& AddEventCategoriesList(EventCategoriesListT&& value) {
199 m_eventCategoriesListHasBeenSet = true;
200 m_eventCategoriesList.emplace_back(std::forward<EventCategoriesListT>(value));
201 return *this;
202 }
204
206
210 inline bool GetEnabled() const { return m_enabled; }
211 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
212 inline void SetEnabled(bool value) {
213 m_enabledHasBeenSet = true;
214 m_enabled = value;
215 }
216 inline EventSubscription& WithEnabled(bool value) {
217 SetEnabled(value);
218 return *this;
219 }
221
223
226 inline const Aws::String& GetEventSubscriptionArn() const { return m_eventSubscriptionArn; }
227 inline bool EventSubscriptionArnHasBeenSet() const { return m_eventSubscriptionArnHasBeenSet; }
228 template <typename EventSubscriptionArnT = Aws::String>
229 void SetEventSubscriptionArn(EventSubscriptionArnT&& value) {
230 m_eventSubscriptionArnHasBeenSet = true;
231 m_eventSubscriptionArn = std::forward<EventSubscriptionArnT>(value);
232 }
233 template <typename EventSubscriptionArnT = Aws::String>
234 EventSubscription& WithEventSubscriptionArn(EventSubscriptionArnT&& value) {
235 SetEventSubscriptionArn(std::forward<EventSubscriptionArnT>(value));
236 return *this;
237 }
239 private:
240 Aws::String m_customerAwsId;
241
242 Aws::String m_custSubscriptionId;
243
244 Aws::String m_snsTopicArn;
245
246 Aws::String m_status;
247
248 Aws::String m_subscriptionCreationTime;
249
250 Aws::String m_sourceType;
251
252 Aws::Vector<Aws::String> m_sourceIdsList;
253
254 Aws::Vector<Aws::String> m_eventCategoriesList;
255
256 bool m_enabled{false};
257
258 Aws::String m_eventSubscriptionArn;
259 bool m_customerAwsIdHasBeenSet = false;
260 bool m_custSubscriptionIdHasBeenSet = false;
261 bool m_snsTopicArnHasBeenSet = false;
262 bool m_statusHasBeenSet = false;
263 bool m_subscriptionCreationTimeHasBeenSet = false;
264 bool m_sourceTypeHasBeenSet = false;
265 bool m_sourceIdsListHasBeenSet = false;
266 bool m_eventCategoriesListHasBeenSet = false;
267 bool m_enabledHasBeenSet = false;
268 bool m_eventSubscriptionArnHasBeenSet = false;
269};
270
271} // namespace Model
272} // namespace DocDB
273} // namespace Aws
void SetEventSubscriptionArn(EventSubscriptionArnT &&value)
const Aws::String & GetEventSubscriptionArn() const
const Aws::String & GetSourceType() const
EventSubscription & AddEventCategoriesList(EventCategoriesListT &&value)
void SetEventCategoriesList(EventCategoriesListT &&value)
const Aws::String & GetSnsTopicArn() const
const Aws::String & GetStatus() const
EventSubscription & WithSnsTopicArn(SnsTopicArnT &&value)
AWS_DOCDB_API EventSubscription()=default
EventSubscription & WithEnabled(bool value)
AWS_DOCDB_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
EventSubscription & WithEventCategoriesList(EventCategoriesListT &&value)
EventSubscription & WithEventSubscriptionArn(EventSubscriptionArnT &&value)
const Aws::Vector< Aws::String > & GetSourceIdsList() const
EventSubscription & AddSourceIdsList(SourceIdsListT &&value)
EventSubscription & WithStatus(StatusT &&value)
const Aws::String & GetCustSubscriptionId() const
EventSubscription & WithSubscriptionCreationTime(SubscriptionCreationTimeT &&value)
EventSubscription & WithCustomerAwsId(CustomerAwsIdT &&value)
void SetSourceType(SourceTypeT &&value)
void SetSnsTopicArn(SnsTopicArnT &&value)
AWS_DOCDB_API EventSubscription & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
EventSubscription & WithCustSubscriptionId(CustSubscriptionIdT &&value)
EventSubscription & WithSourceIdsList(SourceIdsListT &&value)
void SetSourceIdsList(SourceIdsListT &&value)
void SetCustomerAwsId(CustomerAwsIdT &&value)
void SetCustSubscriptionId(CustSubscriptionIdT &&value)
AWS_DOCDB_API EventSubscription(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetSubscriptionCreationTime(SubscriptionCreationTimeT &&value)
EventSubscription & WithSourceType(SourceTypeT &&value)
const Aws::String & GetCustomerAwsId() const
const Aws::String & GetSubscriptionCreationTime() const
const Aws::Vector< Aws::String > & GetEventCategoriesList() const
AWS_DOCDB_API void OutputToStream(Aws::OStream &oStream, const char *location) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream