AWS SDK for C++

AWS SDK for C++ Version 1.11.605

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() = default;
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 template<typename CustomerAwsIdT = Aws::String>
53 void SetCustomerAwsId(CustomerAwsIdT&& value) { m_customerAwsIdHasBeenSet = true; m_customerAwsId = std::forward<CustomerAwsIdT>(value); }
54 template<typename CustomerAwsIdT = Aws::String>
55 EventSubscription& WithCustomerAwsId(CustomerAwsIdT&& value) { SetCustomerAwsId(std::forward<CustomerAwsIdT>(value)); return *this;}
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) { m_custSubscriptionIdHasBeenSet = true; m_custSubscriptionId = std::forward<CustSubscriptionIdT>(value); }
66 template<typename CustSubscriptionIdT = Aws::String>
67 EventSubscription& WithCustSubscriptionId(CustSubscriptionIdT&& value) { SetCustSubscriptionId(std::forward<CustSubscriptionIdT>(value)); return *this;}
69
71
75 inline const Aws::String& GetSnsTopicArn() const { return m_snsTopicArn; }
76 inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; }
77 template<typename SnsTopicArnT = Aws::String>
78 void SetSnsTopicArn(SnsTopicArnT&& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = std::forward<SnsTopicArnT>(value); }
79 template<typename SnsTopicArnT = Aws::String>
80 EventSubscription& WithSnsTopicArn(SnsTopicArnT&& value) { SetSnsTopicArn(std::forward<SnsTopicArnT>(value)); return *this;}
82
84
92 inline const Aws::String& GetStatus() const { return m_status; }
93 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
94 template<typename StatusT = Aws::String>
95 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
96 template<typename StatusT = Aws::String>
97 EventSubscription& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
99
101
105 inline const Aws::Utils::DateTime& GetSubscriptionCreationTime() const { return m_subscriptionCreationTime; }
106 inline bool SubscriptionCreationTimeHasBeenSet() const { return m_subscriptionCreationTimeHasBeenSet; }
107 template<typename SubscriptionCreationTimeT = Aws::Utils::DateTime>
108 void SetSubscriptionCreationTime(SubscriptionCreationTimeT&& value) { m_subscriptionCreationTimeHasBeenSet = true; m_subscriptionCreationTime = std::forward<SubscriptionCreationTimeT>(value); }
109 template<typename SubscriptionCreationTimeT = Aws::Utils::DateTime>
110 EventSubscription& WithSubscriptionCreationTime(SubscriptionCreationTimeT&& value) { SetSubscriptionCreationTime(std::forward<SubscriptionCreationTimeT>(value)); return *this;}
112
114
119 inline const Aws::String& GetSourceType() const { return m_sourceType; }
120 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
121 template<typename SourceTypeT = Aws::String>
122 void SetSourceType(SourceTypeT&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::forward<SourceTypeT>(value); }
123 template<typename SourceTypeT = Aws::String>
124 EventSubscription& WithSourceType(SourceTypeT&& value) { SetSourceType(std::forward<SourceTypeT>(value)); return *this;}
126
128
132 inline const Aws::Vector<Aws::String>& GetSourceIdsList() const { return m_sourceIdsList; }
133 inline bool SourceIdsListHasBeenSet() const { return m_sourceIdsListHasBeenSet; }
134 template<typename SourceIdsListT = Aws::Vector<Aws::String>>
135 void SetSourceIdsList(SourceIdsListT&& value) { m_sourceIdsListHasBeenSet = true; m_sourceIdsList = std::forward<SourceIdsListT>(value); }
136 template<typename SourceIdsListT = Aws::Vector<Aws::String>>
137 EventSubscription& WithSourceIdsList(SourceIdsListT&& value) { SetSourceIdsList(std::forward<SourceIdsListT>(value)); return *this;}
138 template<typename SourceIdsListT = Aws::String>
139 EventSubscription& AddSourceIdsList(SourceIdsListT&& value) { m_sourceIdsListHasBeenSet = true; m_sourceIdsList.emplace_back(std::forward<SourceIdsListT>(value)); return *this; }
141
143
148 inline const Aws::Vector<Aws::String>& GetEventCategoriesList() const { return m_eventCategoriesList; }
149 inline bool EventCategoriesListHasBeenSet() const { return m_eventCategoriesListHasBeenSet; }
150 template<typename EventCategoriesListT = Aws::Vector<Aws::String>>
151 void SetEventCategoriesList(EventCategoriesListT&& value) { m_eventCategoriesListHasBeenSet = true; m_eventCategoriesList = std::forward<EventCategoriesListT>(value); }
152 template<typename EventCategoriesListT = Aws::Vector<Aws::String>>
153 EventSubscription& WithEventCategoriesList(EventCategoriesListT&& value) { SetEventCategoriesList(std::forward<EventCategoriesListT>(value)); return *this;}
154 template<typename EventCategoriesListT = Aws::String>
155 EventSubscription& AddEventCategoriesList(EventCategoriesListT&& value) { m_eventCategoriesListHasBeenSet = true; m_eventCategoriesList.emplace_back(std::forward<EventCategoriesListT>(value)); return *this; }
157
159
163 inline const Aws::String& GetSeverity() const { return m_severity; }
164 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
165 template<typename SeverityT = Aws::String>
166 void SetSeverity(SeverityT&& value) { m_severityHasBeenSet = true; m_severity = std::forward<SeverityT>(value); }
167 template<typename SeverityT = Aws::String>
168 EventSubscription& WithSeverity(SeverityT&& value) { SetSeverity(std::forward<SeverityT>(value)); return *this;}
170
172
176 inline bool GetEnabled() const { return m_enabled; }
177 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
178 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
179 inline EventSubscription& WithEnabled(bool value) { SetEnabled(value); return *this;}
181
183
186 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
187 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
188 template<typename TagsT = Aws::Vector<Tag>>
189 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
190 template<typename TagsT = Aws::Vector<Tag>>
191 EventSubscription& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
192 template<typename TagsT = Tag>
193 EventSubscription& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
195 private:
196
197 Aws::String m_customerAwsId;
198 bool m_customerAwsIdHasBeenSet = false;
199
200 Aws::String m_custSubscriptionId;
201 bool m_custSubscriptionIdHasBeenSet = false;
202
203 Aws::String m_snsTopicArn;
204 bool m_snsTopicArnHasBeenSet = false;
205
206 Aws::String m_status;
207 bool m_statusHasBeenSet = false;
208
209 Aws::Utils::DateTime m_subscriptionCreationTime{};
210 bool m_subscriptionCreationTimeHasBeenSet = false;
211
212 Aws::String m_sourceType;
213 bool m_sourceTypeHasBeenSet = false;
214
215 Aws::Vector<Aws::String> m_sourceIdsList;
216 bool m_sourceIdsListHasBeenSet = false;
217
218 Aws::Vector<Aws::String> m_eventCategoriesList;
219 bool m_eventCategoriesListHasBeenSet = false;
220
221 Aws::String m_severity;
222 bool m_severityHasBeenSet = false;
223
224 bool m_enabled{false};
225 bool m_enabledHasBeenSet = false;
226
227 Aws::Vector<Tag> m_tags;
228 bool m_tagsHasBeenSet = false;
229 };
230
231} // namespace Model
232} // namespace Redshift
233} // 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)
const Aws::String & GetStatus() const
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