AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EventSubscription.h
1
6#pragma once
7#include <aws/redshift/Redshift_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/redshift/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace Redshift
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_REDSHIFT_API EventSubscription();
38 AWS_REDSHIFT_API EventSubscription(const Aws::Utils::Xml::XmlNode& xmlNode);
39 AWS_REDSHIFT_API EventSubscription& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
50 inline const Aws::String& GetCustomerAwsId() const{ return m_customerAwsId; }
51 inline bool CustomerAwsIdHasBeenSet() const { return m_customerAwsIdHasBeenSet; }
52 inline void SetCustomerAwsId(const Aws::String& value) { m_customerAwsIdHasBeenSet = true; m_customerAwsId = value; }
53 inline void SetCustomerAwsId(Aws::String&& value) { m_customerAwsIdHasBeenSet = true; m_customerAwsId = std::move(value); }
54 inline void SetCustomerAwsId(const char* value) { m_customerAwsIdHasBeenSet = true; m_customerAwsId.assign(value); }
55 inline EventSubscription& WithCustomerAwsId(const Aws::String& value) { SetCustomerAwsId(value); return *this;}
56 inline EventSubscription& WithCustomerAwsId(Aws::String&& value) { SetCustomerAwsId(std::move(value)); return *this;}
57 inline EventSubscription& WithCustomerAwsId(const char* value) { SetCustomerAwsId(value); return *this;}
59
61
64 inline const Aws::String& GetCustSubscriptionId() const{ return m_custSubscriptionId; }
65 inline bool CustSubscriptionIdHasBeenSet() const { return m_custSubscriptionIdHasBeenSet; }
66 inline void SetCustSubscriptionId(const Aws::String& value) { m_custSubscriptionIdHasBeenSet = true; m_custSubscriptionId = value; }
67 inline void SetCustSubscriptionId(Aws::String&& value) { m_custSubscriptionIdHasBeenSet = true; m_custSubscriptionId = std::move(value); }
68 inline void SetCustSubscriptionId(const char* value) { m_custSubscriptionIdHasBeenSet = true; m_custSubscriptionId.assign(value); }
69 inline EventSubscription& WithCustSubscriptionId(const Aws::String& value) { SetCustSubscriptionId(value); return *this;}
70 inline EventSubscription& WithCustSubscriptionId(Aws::String&& value) { SetCustSubscriptionId(std::move(value)); return *this;}
71 inline EventSubscription& WithCustSubscriptionId(const char* value) { SetCustSubscriptionId(value); return *this;}
73
75
79 inline const Aws::String& GetSnsTopicArn() const{ return m_snsTopicArn; }
80 inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; }
81 inline void SetSnsTopicArn(const Aws::String& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = value; }
82 inline void SetSnsTopicArn(Aws::String&& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = std::move(value); }
83 inline void SetSnsTopicArn(const char* value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn.assign(value); }
84 inline EventSubscription& WithSnsTopicArn(const Aws::String& value) { SetSnsTopicArn(value); return *this;}
85 inline EventSubscription& WithSnsTopicArn(Aws::String&& value) { SetSnsTopicArn(std::move(value)); return *this;}
86 inline EventSubscription& WithSnsTopicArn(const char* value) { SetSnsTopicArn(value); return *this;}
88
90
98 inline const Aws::String& GetStatus() const{ return m_status; }
99 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
100 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
101 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
102 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
103 inline EventSubscription& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
104 inline EventSubscription& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
105 inline EventSubscription& WithStatus(const char* value) { SetStatus(value); return *this;}
107
109
113 inline const Aws::Utils::DateTime& GetSubscriptionCreationTime() const{ return m_subscriptionCreationTime; }
114 inline bool SubscriptionCreationTimeHasBeenSet() const { return m_subscriptionCreationTimeHasBeenSet; }
115 inline void SetSubscriptionCreationTime(const Aws::Utils::DateTime& value) { m_subscriptionCreationTimeHasBeenSet = true; m_subscriptionCreationTime = value; }
116 inline void SetSubscriptionCreationTime(Aws::Utils::DateTime&& value) { m_subscriptionCreationTimeHasBeenSet = true; m_subscriptionCreationTime = std::move(value); }
120
122
127 inline const Aws::String& GetSourceType() const{ return m_sourceType; }
128 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
129 inline void SetSourceType(const Aws::String& value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
130 inline void SetSourceType(Aws::String&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::move(value); }
131 inline void SetSourceType(const char* value) { m_sourceTypeHasBeenSet = true; m_sourceType.assign(value); }
132 inline EventSubscription& WithSourceType(const Aws::String& value) { SetSourceType(value); return *this;}
133 inline EventSubscription& WithSourceType(Aws::String&& value) { SetSourceType(std::move(value)); return *this;}
134 inline EventSubscription& WithSourceType(const char* value) { SetSourceType(value); return *this;}
136
138
142 inline const Aws::Vector<Aws::String>& GetSourceIdsList() const{ return m_sourceIdsList; }
143 inline bool SourceIdsListHasBeenSet() const { return m_sourceIdsListHasBeenSet; }
144 inline void SetSourceIdsList(const Aws::Vector<Aws::String>& value) { m_sourceIdsListHasBeenSet = true; m_sourceIdsList = value; }
145 inline void SetSourceIdsList(Aws::Vector<Aws::String>&& value) { m_sourceIdsListHasBeenSet = true; m_sourceIdsList = std::move(value); }
147 inline EventSubscription& WithSourceIdsList(Aws::Vector<Aws::String>&& value) { SetSourceIdsList(std::move(value)); return *this;}
148 inline EventSubscription& AddSourceIdsList(const Aws::String& value) { m_sourceIdsListHasBeenSet = true; m_sourceIdsList.push_back(value); return *this; }
149 inline EventSubscription& AddSourceIdsList(Aws::String&& value) { m_sourceIdsListHasBeenSet = true; m_sourceIdsList.push_back(std::move(value)); return *this; }
150 inline EventSubscription& AddSourceIdsList(const char* value) { m_sourceIdsListHasBeenSet = true; m_sourceIdsList.push_back(value); return *this; }
152
154
159 inline const Aws::Vector<Aws::String>& GetEventCategoriesList() const{ return m_eventCategoriesList; }
160 inline bool EventCategoriesListHasBeenSet() const { return m_eventCategoriesListHasBeenSet; }
161 inline void SetEventCategoriesList(const Aws::Vector<Aws::String>& value) { m_eventCategoriesListHasBeenSet = true; m_eventCategoriesList = value; }
162 inline void SetEventCategoriesList(Aws::Vector<Aws::String>&& value) { m_eventCategoriesListHasBeenSet = true; m_eventCategoriesList = std::move(value); }
165 inline EventSubscription& AddEventCategoriesList(const Aws::String& value) { m_eventCategoriesListHasBeenSet = true; m_eventCategoriesList.push_back(value); return *this; }
166 inline EventSubscription& AddEventCategoriesList(Aws::String&& value) { m_eventCategoriesListHasBeenSet = true; m_eventCategoriesList.push_back(std::move(value)); return *this; }
167 inline EventSubscription& AddEventCategoriesList(const char* value) { m_eventCategoriesListHasBeenSet = true; m_eventCategoriesList.push_back(value); return *this; }
169
171
175 inline const Aws::String& GetSeverity() const{ return m_severity; }
176 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
177 inline void SetSeverity(const Aws::String& value) { m_severityHasBeenSet = true; m_severity = value; }
178 inline void SetSeverity(Aws::String&& value) { m_severityHasBeenSet = true; m_severity = std::move(value); }
179 inline void SetSeverity(const char* value) { m_severityHasBeenSet = true; m_severity.assign(value); }
180 inline EventSubscription& WithSeverity(const Aws::String& value) { SetSeverity(value); return *this;}
181 inline EventSubscription& WithSeverity(Aws::String&& value) { SetSeverity(std::move(value)); return *this;}
182 inline EventSubscription& WithSeverity(const char* value) { SetSeverity(value); return *this;}
184
186
190 inline bool GetEnabled() const{ return m_enabled; }
191 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
192 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
193 inline EventSubscription& WithEnabled(bool value) { SetEnabled(value); return *this;}
195
197
200 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
201 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
202 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
203 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
204 inline EventSubscription& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
205 inline EventSubscription& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
206 inline EventSubscription& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
207 inline EventSubscription& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
209 private:
210
211 Aws::String m_customerAwsId;
212 bool m_customerAwsIdHasBeenSet = false;
213
214 Aws::String m_custSubscriptionId;
215 bool m_custSubscriptionIdHasBeenSet = false;
216
217 Aws::String m_snsTopicArn;
218 bool m_snsTopicArnHasBeenSet = false;
219
220 Aws::String m_status;
221 bool m_statusHasBeenSet = false;
222
223 Aws::Utils::DateTime m_subscriptionCreationTime;
224 bool m_subscriptionCreationTimeHasBeenSet = false;
225
226 Aws::String m_sourceType;
227 bool m_sourceTypeHasBeenSet = false;
228
229 Aws::Vector<Aws::String> m_sourceIdsList;
230 bool m_sourceIdsListHasBeenSet = false;
231
232 Aws::Vector<Aws::String> m_eventCategoriesList;
233 bool m_eventCategoriesListHasBeenSet = false;
234
235 Aws::String m_severity;
236 bool m_severityHasBeenSet = false;
237
238 bool m_enabled;
239 bool m_enabledHasBeenSet = false;
240
241 Aws::Vector<Tag> m_tags;
242 bool m_tagsHasBeenSet = false;
243 };
244
245} // namespace Model
246} // namespace Redshift
247} // namespace Aws
EventSubscription & AddEventCategoriesList(const char *value)
EventSubscription & WithEventCategoriesList(const Aws::Vector< Aws::String > &value)
EventSubscription & AddSourceIdsList(const Aws::String &value)
const Aws::String & GetSnsTopicArn() const
EventSubscription & WithCustomerAwsId(const Aws::String &value)
EventSubscription & AddEventCategoriesList(Aws::String &&value)
EventSubscription & WithSnsTopicArn(Aws::String &&value)
void SetEventCategoriesList(Aws::Vector< Aws::String > &&value)
EventSubscription & WithEnabled(bool value)
void SetTags(Aws::Vector< Tag > &&value)
EventSubscription & WithSourceType(Aws::String &&value)
void SetSourceIdsList(const Aws::Vector< Aws::String > &value)
void SetCustSubscriptionId(const Aws::String &value)
void SetCustSubscriptionId(const char *value)
EventSubscription & WithSeverity(Aws::String &&value)
EventSubscription & WithSourceType(const Aws::String &value)
EventSubscription & WithTags(Aws::Vector< Tag > &&value)
EventSubscription & WithSeverity(const char *value)
EventSubscription & WithStatus(const char *value)
const Aws::Vector< Aws::String > & GetEventCategoriesList() const
EventSubscription & AddEventCategoriesList(const Aws::String &value)
EventSubscription & AddSourceIdsList(const char *value)
EventSubscription & WithTags(const Aws::Vector< Tag > &value)
void SetSubscriptionCreationTime(Aws::Utils::DateTime &&value)
void SetEventCategoriesList(const Aws::Vector< Aws::String > &value)
EventSubscription & WithSubscriptionCreationTime(const Aws::Utils::DateTime &value)
EventSubscription & WithEventCategoriesList(Aws::Vector< Aws::String > &&value)
EventSubscription & WithCustomerAwsId(const char *value)
const Aws::String & GetSeverity() const
EventSubscription & WithSourceIdsList(const Aws::Vector< Aws::String > &value)
EventSubscription & WithSeverity(const Aws::String &value)
EventSubscription & WithSourceIdsList(Aws::Vector< Aws::String > &&value)
EventSubscription & WithCustSubscriptionId(const Aws::String &value)
const Aws::String & GetCustomerAwsId() const
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetSnsTopicArn(const Aws::String &value)
void SetCustomerAwsId(const Aws::String &value)
AWS_REDSHIFT_API EventSubscription(const Aws::Utils::Xml::XmlNode &xmlNode)
EventSubscription & AddTags(Tag &&value)
EventSubscription & WithSnsTopicArn(const char *value)
const Aws::String & GetSourceType() const
void SetTags(const Aws::Vector< Tag > &value)
const Aws::Vector< Tag > & GetTags() const
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
EventSubscription & WithStatus(Aws::String &&value)
EventSubscription & WithSourceType(const char *value)
void SetSourceType(const Aws::String &value)
const Aws::Vector< Aws::String > & GetSourceIdsList() const
EventSubscription & WithSnsTopicArn(const Aws::String &value)
EventSubscription & WithCustomerAwsId(Aws::String &&value)
EventSubscription & WithStatus(const Aws::String &value)
void SetSubscriptionCreationTime(const Aws::Utils::DateTime &value)
const Aws::String & GetCustSubscriptionId() const
AWS_REDSHIFT_API EventSubscription & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
EventSubscription & AddTags(const Tag &value)
EventSubscription & WithCustSubscriptionId(const char *value)
void SetCustSubscriptionId(Aws::String &&value)
EventSubscription & AddSourceIdsList(Aws::String &&value)
EventSubscription & WithCustSubscriptionId(Aws::String &&value)
const Aws::Utils::DateTime & GetSubscriptionCreationTime() const
void SetCustomerAwsId(Aws::String &&value)
void SetSourceIdsList(Aws::Vector< Aws::String > &&value)
void SetStatus(const Aws::String &value)
const Aws::String & GetStatus() const
void SetSeverity(const Aws::String &value)
EventSubscription & WithSubscriptionCreationTime(Aws::Utils::DateTime &&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