AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
EventSubscription.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/redshift/Redshift_EXPORTS.h>
12#include <aws/redshift/model/Tag.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Xml {
19class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace Redshift {
23namespace Model {
24
31 public:
32 AWS_REDSHIFT_API EventSubscription() = default;
33 AWS_REDSHIFT_API EventSubscription(const Aws::Utils::Xml::XmlNode& xmlNode);
34 AWS_REDSHIFT_API EventSubscription& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
35
36 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
37 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
38
40
44 inline const Aws::String& GetCustomerAwsId() const { return m_customerAwsId; }
45 inline bool CustomerAwsIdHasBeenSet() const { return m_customerAwsIdHasBeenSet; }
46 template <typename CustomerAwsIdT = Aws::String>
47 void SetCustomerAwsId(CustomerAwsIdT&& value) {
48 m_customerAwsIdHasBeenSet = true;
49 m_customerAwsId = std::forward<CustomerAwsIdT>(value);
50 }
51 template <typename CustomerAwsIdT = Aws::String>
52 EventSubscription& WithCustomerAwsId(CustomerAwsIdT&& value) {
53 SetCustomerAwsId(std::forward<CustomerAwsIdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetCustSubscriptionId() const { return m_custSubscriptionId; }
63 inline bool CustSubscriptionIdHasBeenSet() const { return m_custSubscriptionIdHasBeenSet; }
64 template <typename CustSubscriptionIdT = Aws::String>
65 void SetCustSubscriptionId(CustSubscriptionIdT&& value) {
66 m_custSubscriptionIdHasBeenSet = true;
67 m_custSubscriptionId = std::forward<CustSubscriptionIdT>(value);
68 }
69 template <typename CustSubscriptionIdT = Aws::String>
70 EventSubscription& WithCustSubscriptionId(CustSubscriptionIdT&& value) {
71 SetCustSubscriptionId(std::forward<CustSubscriptionIdT>(value));
72 return *this;
73 }
75
77
81 inline const Aws::String& GetSnsTopicArn() const { return m_snsTopicArn; }
82 inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; }
83 template <typename SnsTopicArnT = Aws::String>
84 void SetSnsTopicArn(SnsTopicArnT&& value) {
85 m_snsTopicArnHasBeenSet = true;
86 m_snsTopicArn = std::forward<SnsTopicArnT>(value);
87 }
88 template <typename SnsTopicArnT = Aws::String>
89 EventSubscription& WithSnsTopicArn(SnsTopicArnT&& value) {
90 SetSnsTopicArn(std::forward<SnsTopicArnT>(value));
91 return *this;
92 }
94
96
104 inline const Aws::String& GetStatus() const { return m_status; }
105 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
106 template <typename StatusT = Aws::String>
107 void SetStatus(StatusT&& value) {
108 m_statusHasBeenSet = true;
109 m_status = std::forward<StatusT>(value);
110 }
111 template <typename StatusT = Aws::String>
112 EventSubscription& WithStatus(StatusT&& value) {
113 SetStatus(std::forward<StatusT>(value));
114 return *this;
115 }
117
119
123 inline const Aws::Utils::DateTime& GetSubscriptionCreationTime() const { return m_subscriptionCreationTime; }
124 inline bool SubscriptionCreationTimeHasBeenSet() const { return m_subscriptionCreationTimeHasBeenSet; }
125 template <typename SubscriptionCreationTimeT = Aws::Utils::DateTime>
126 void SetSubscriptionCreationTime(SubscriptionCreationTimeT&& value) {
127 m_subscriptionCreationTimeHasBeenSet = true;
128 m_subscriptionCreationTime = std::forward<SubscriptionCreationTimeT>(value);
129 }
130 template <typename SubscriptionCreationTimeT = Aws::Utils::DateTime>
131 EventSubscription& WithSubscriptionCreationTime(SubscriptionCreationTimeT&& value) {
132 SetSubscriptionCreationTime(std::forward<SubscriptionCreationTimeT>(value));
133 return *this;
134 }
136
138
143 inline const Aws::String& GetSourceType() const { return m_sourceType; }
144 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
145 template <typename SourceTypeT = Aws::String>
146 void SetSourceType(SourceTypeT&& value) {
147 m_sourceTypeHasBeenSet = true;
148 m_sourceType = std::forward<SourceTypeT>(value);
149 }
150 template <typename SourceTypeT = Aws::String>
151 EventSubscription& WithSourceType(SourceTypeT&& value) {
152 SetSourceType(std::forward<SourceTypeT>(value));
153 return *this;
154 }
156
158
162 inline const Aws::Vector<Aws::String>& GetSourceIdsList() const { return m_sourceIdsList; }
163 inline bool SourceIdsListHasBeenSet() const { return m_sourceIdsListHasBeenSet; }
164 template <typename SourceIdsListT = Aws::Vector<Aws::String>>
165 void SetSourceIdsList(SourceIdsListT&& value) {
166 m_sourceIdsListHasBeenSet = true;
167 m_sourceIdsList = std::forward<SourceIdsListT>(value);
168 }
169 template <typename SourceIdsListT = Aws::Vector<Aws::String>>
170 EventSubscription& WithSourceIdsList(SourceIdsListT&& value) {
171 SetSourceIdsList(std::forward<SourceIdsListT>(value));
172 return *this;
173 }
174 template <typename SourceIdsListT = Aws::String>
175 EventSubscription& AddSourceIdsList(SourceIdsListT&& value) {
176 m_sourceIdsListHasBeenSet = true;
177 m_sourceIdsList.emplace_back(std::forward<SourceIdsListT>(value));
178 return *this;
179 }
181
183
188 inline const Aws::Vector<Aws::String>& GetEventCategoriesList() const { return m_eventCategoriesList; }
189 inline bool EventCategoriesListHasBeenSet() const { return m_eventCategoriesListHasBeenSet; }
190 template <typename EventCategoriesListT = Aws::Vector<Aws::String>>
191 void SetEventCategoriesList(EventCategoriesListT&& value) {
192 m_eventCategoriesListHasBeenSet = true;
193 m_eventCategoriesList = std::forward<EventCategoriesListT>(value);
194 }
195 template <typename EventCategoriesListT = Aws::Vector<Aws::String>>
196 EventSubscription& WithEventCategoriesList(EventCategoriesListT&& value) {
197 SetEventCategoriesList(std::forward<EventCategoriesListT>(value));
198 return *this;
199 }
200 template <typename EventCategoriesListT = Aws::String>
201 EventSubscription& AddEventCategoriesList(EventCategoriesListT&& value) {
202 m_eventCategoriesListHasBeenSet = true;
203 m_eventCategoriesList.emplace_back(std::forward<EventCategoriesListT>(value));
204 return *this;
205 }
207
209
213 inline const Aws::String& GetSeverity() const { return m_severity; }
214 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
215 template <typename SeverityT = Aws::String>
216 void SetSeverity(SeverityT&& value) {
217 m_severityHasBeenSet = true;
218 m_severity = std::forward<SeverityT>(value);
219 }
220 template <typename SeverityT = Aws::String>
221 EventSubscription& WithSeverity(SeverityT&& value) {
222 SetSeverity(std::forward<SeverityT>(value));
223 return *this;
224 }
226
228
232 inline bool GetEnabled() const { return m_enabled; }
233 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
234 inline void SetEnabled(bool value) {
235 m_enabledHasBeenSet = true;
236 m_enabled = value;
237 }
238 inline EventSubscription& WithEnabled(bool value) {
239 SetEnabled(value);
240 return *this;
241 }
243
245
248 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
249 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
250 template <typename TagsT = Aws::Vector<Tag>>
251 void SetTags(TagsT&& value) {
252 m_tagsHasBeenSet = true;
253 m_tags = std::forward<TagsT>(value);
254 }
255 template <typename TagsT = Aws::Vector<Tag>>
256 EventSubscription& WithTags(TagsT&& value) {
257 SetTags(std::forward<TagsT>(value));
258 return *this;
259 }
260 template <typename TagsT = Tag>
261 EventSubscription& AddTags(TagsT&& value) {
262 m_tagsHasBeenSet = true;
263 m_tags.emplace_back(std::forward<TagsT>(value));
264 return *this;
265 }
267 private:
268 Aws::String m_customerAwsId;
269
270 Aws::String m_custSubscriptionId;
271
272 Aws::String m_snsTopicArn;
273
274 Aws::String m_status;
275
276 Aws::Utils::DateTime m_subscriptionCreationTime{};
277
278 Aws::String m_sourceType;
279
280 Aws::Vector<Aws::String> m_sourceIdsList;
281
282 Aws::Vector<Aws::String> m_eventCategoriesList;
283
284 Aws::String m_severity;
285
286 bool m_enabled{false};
287
288 Aws::Vector<Tag> m_tags;
289 bool m_customerAwsIdHasBeenSet = false;
290 bool m_custSubscriptionIdHasBeenSet = false;
291 bool m_snsTopicArnHasBeenSet = false;
292 bool m_statusHasBeenSet = false;
293 bool m_subscriptionCreationTimeHasBeenSet = false;
294 bool m_sourceTypeHasBeenSet = false;
295 bool m_sourceIdsListHasBeenSet = false;
296 bool m_eventCategoriesListHasBeenSet = false;
297 bool m_severityHasBeenSet = false;
298 bool m_enabledHasBeenSet = false;
299 bool m_tagsHasBeenSet = false;
300};
301
302} // namespace Model
303} // namespace Redshift
304} // namespace Aws
const Aws::String & GetSnsTopicArn() const
EventSubscription & WithEventCategoriesList(EventCategoriesListT &&value)
EventSubscription & WithEnabled(bool value)
EventSubscription & WithSeverity(SeverityT &&value)
void SetSnsTopicArn(SnsTopicArnT &&value)
EventSubscription & WithSourceType(SourceTypeT &&value)
EventSubscription & WithStatus(StatusT &&value)
EventSubscription & WithCustSubscriptionId(CustSubscriptionIdT &&value)
EventSubscription & AddEventCategoriesList(EventCategoriesListT &&value)
void SetEventCategoriesList(EventCategoriesListT &&value)
const Aws::Vector< Aws::String > & GetEventCategoriesList() const
void SetSourceIdsList(SourceIdsListT &&value)
EventSubscription & AddTags(TagsT &&value)
const Aws::String & GetSeverity() const
EventSubscription & WithCustomerAwsId(CustomerAwsIdT &&value)
void SetSubscriptionCreationTime(SubscriptionCreationTimeT &&value)
const Aws::String & GetCustomerAwsId() const
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetCustSubscriptionId(CustSubscriptionIdT &&value)
AWS_REDSHIFT_API EventSubscription(const Aws::Utils::Xml::XmlNode &xmlNode)
EventSubscription & WithSourceIdsList(SourceIdsListT &&value)
const Aws::String & GetSourceType() const
const Aws::Vector< Tag > & GetTags() const
EventSubscription & AddSourceIdsList(SourceIdsListT &&value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::Vector< Aws::String > & GetSourceIdsList() const
const Aws::String & GetCustSubscriptionId() const
AWS_REDSHIFT_API EventSubscription & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
EventSubscription & WithSubscriptionCreationTime(SubscriptionCreationTimeT &&value)
EventSubscription & WithTags(TagsT &&value)
const Aws::Utils::DateTime & GetSubscriptionCreationTime() const
AWS_REDSHIFT_API EventSubscription()=default
void SetCustomerAwsId(CustomerAwsIdT &&value)
EventSubscription & WithSnsTopicArn(SnsTopicArnT &&value)
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