AWS SDK for C++

AWS SDK for C++ Version 1.11.683

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/neptune/Neptune_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace Neptune {
21namespace Model {
22
30 public:
31 AWS_NEPTUNE_API EventSubscription() = default;
32 AWS_NEPTUNE_API EventSubscription(const Aws::Utils::Xml::XmlNode& xmlNode);
33 AWS_NEPTUNE_API EventSubscription& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
34
35 AWS_NEPTUNE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
36 AWS_NEPTUNE_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
102 inline const Aws::String& GetStatus() const { return m_status; }
103 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
104 template <typename StatusT = Aws::String>
105 void SetStatus(StatusT&& value) {
106 m_statusHasBeenSet = true;
107 m_status = std::forward<StatusT>(value);
108 }
109 template <typename StatusT = Aws::String>
110 EventSubscription& WithStatus(StatusT&& value) {
111 SetStatus(std::forward<StatusT>(value));
112 return *this;
113 }
115
117
120 inline const Aws::String& GetSubscriptionCreationTime() const { return m_subscriptionCreationTime; }
121 inline bool SubscriptionCreationTimeHasBeenSet() const { return m_subscriptionCreationTimeHasBeenSet; }
122 template <typename SubscriptionCreationTimeT = Aws::String>
123 void SetSubscriptionCreationTime(SubscriptionCreationTimeT&& value) {
124 m_subscriptionCreationTimeHasBeenSet = true;
125 m_subscriptionCreationTime = std::forward<SubscriptionCreationTimeT>(value);
126 }
127 template <typename SubscriptionCreationTimeT = Aws::String>
128 EventSubscription& WithSubscriptionCreationTime(SubscriptionCreationTimeT&& value) {
129 SetSubscriptionCreationTime(std::forward<SubscriptionCreationTimeT>(value));
130 return *this;
131 }
133
135
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
205 inline bool GetEnabled() const { return m_enabled; }
206 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
207 inline void SetEnabled(bool value) {
208 m_enabledHasBeenSet = true;
209 m_enabled = value;
210 }
211 inline EventSubscription& WithEnabled(bool value) {
212 SetEnabled(value);
213 return *this;
214 }
216
218
221 inline const Aws::String& GetEventSubscriptionArn() const { return m_eventSubscriptionArn; }
222 inline bool EventSubscriptionArnHasBeenSet() const { return m_eventSubscriptionArnHasBeenSet; }
223 template <typename EventSubscriptionArnT = Aws::String>
224 void SetEventSubscriptionArn(EventSubscriptionArnT&& value) {
225 m_eventSubscriptionArnHasBeenSet = true;
226 m_eventSubscriptionArn = std::forward<EventSubscriptionArnT>(value);
227 }
228 template <typename EventSubscriptionArnT = Aws::String>
229 EventSubscription& WithEventSubscriptionArn(EventSubscriptionArnT&& value) {
230 SetEventSubscriptionArn(std::forward<EventSubscriptionArnT>(value));
231 return *this;
232 }
234 private:
235 Aws::String m_customerAwsId;
236 bool m_customerAwsIdHasBeenSet = false;
237
238 Aws::String m_custSubscriptionId;
239 bool m_custSubscriptionIdHasBeenSet = false;
240
241 Aws::String m_snsTopicArn;
242 bool m_snsTopicArnHasBeenSet = false;
243
244 Aws::String m_status;
245 bool m_statusHasBeenSet = false;
246
247 Aws::String m_subscriptionCreationTime;
248 bool m_subscriptionCreationTimeHasBeenSet = false;
249
250 Aws::String m_sourceType;
251 bool m_sourceTypeHasBeenSet = false;
252
253 Aws::Vector<Aws::String> m_sourceIdsList;
254 bool m_sourceIdsListHasBeenSet = false;
255
256 Aws::Vector<Aws::String> m_eventCategoriesList;
257 bool m_eventCategoriesListHasBeenSet = false;
258
259 bool m_enabled{false};
260 bool m_enabledHasBeenSet = false;
261
262 Aws::String m_eventSubscriptionArn;
263 bool m_eventSubscriptionArnHasBeenSet = false;
264};
265
266} // namespace Model
267} // namespace Neptune
268} // namespace Aws
const Aws::String & GetStatus() const
void SetEventCategoriesList(EventCategoriesListT &&value)
EventSubscription & WithCustSubscriptionId(CustSubscriptionIdT &&value)
AWS_NEPTUNE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetCustSubscriptionId() const
EventSubscription & WithSourceIdsList(SourceIdsListT &&value)
void SetSnsTopicArn(SnsTopicArnT &&value)
AWS_NEPTUNE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetSubscriptionCreationTime(SubscriptionCreationTimeT &&value)
EventSubscription & WithSnsTopicArn(SnsTopicArnT &&value)
AWS_NEPTUNE_API EventSubscription(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_NEPTUNE_API EventSubscription()=default
EventSubscription & WithSubscriptionCreationTime(SubscriptionCreationTimeT &&value)
EventSubscription & AddEventCategoriesList(EventCategoriesListT &&value)
void SetCustomerAwsId(CustomerAwsIdT &&value)
const Aws::String & GetSubscriptionCreationTime() const
const Aws::String & GetSnsTopicArn() const
const Aws::Vector< Aws::String > & GetEventCategoriesList() const
EventSubscription & WithEventSubscriptionArn(EventSubscriptionArnT &&value)
EventSubscription & WithEnabled(bool value)
void SetCustSubscriptionId(CustSubscriptionIdT &&value)
AWS_NEPTUNE_API EventSubscription & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
EventSubscription & WithEventCategoriesList(EventCategoriesListT &&value)
EventSubscription & AddSourceIdsList(SourceIdsListT &&value)
EventSubscription & WithSourceType(SourceTypeT &&value)
EventSubscription & WithStatus(StatusT &&value)
const Aws::String & GetCustomerAwsId() const
const Aws::String & GetEventSubscriptionArn() const
void SetEventSubscriptionArn(EventSubscriptionArnT &&value)
const Aws::String & GetSourceType() const
void SetSourceIdsList(SourceIdsListT &&value)
EventSubscription & WithCustomerAwsId(CustomerAwsIdT &&value)
const Aws::Vector< Aws::String > & GetSourceIdsList() 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