AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
EventSubscription.h
1
6#pragma once
7#include <aws/docdb/DocDB_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/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace DocDB
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_DOCDB_API EventSubscription() = default;
37 AWS_DOCDB_API EventSubscription(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_DOCDB_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_DOCDB_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
49 inline const Aws::String& GetCustomerAwsId() const { return m_customerAwsId; }
50 inline bool CustomerAwsIdHasBeenSet() const { return m_customerAwsIdHasBeenSet; }
51 template<typename CustomerAwsIdT = Aws::String>
52 void SetCustomerAwsId(CustomerAwsIdT&& value) { m_customerAwsIdHasBeenSet = true; m_customerAwsId = std::forward<CustomerAwsIdT>(value); }
53 template<typename CustomerAwsIdT = Aws::String>
54 EventSubscription& WithCustomerAwsId(CustomerAwsIdT&& value) { SetCustomerAwsId(std::forward<CustomerAwsIdT>(value)); return *this;}
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) { m_custSubscriptionIdHasBeenSet = true; m_custSubscriptionId = std::forward<CustSubscriptionIdT>(value); }
65 template<typename CustSubscriptionIdT = Aws::String>
66 EventSubscription& WithCustSubscriptionId(CustSubscriptionIdT&& value) { SetCustSubscriptionId(std::forward<CustSubscriptionIdT>(value)); return *this;}
68
70
73 inline const Aws::String& GetSnsTopicArn() const { return m_snsTopicArn; }
74 inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; }
75 template<typename SnsTopicArnT = Aws::String>
76 void SetSnsTopicArn(SnsTopicArnT&& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = std::forward<SnsTopicArnT>(value); }
77 template<typename SnsTopicArnT = Aws::String>
78 EventSubscription& WithSnsTopicArn(SnsTopicArnT&& value) { SetSnsTopicArn(std::forward<SnsTopicArnT>(value)); return *this;}
80
82
91 inline const Aws::String& GetStatus() const { return m_status; }
92 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
93 template<typename StatusT = Aws::String>
94 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
95 template<typename StatusT = Aws::String>
96 EventSubscription& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
98
100
104 inline const Aws::String& GetSubscriptionCreationTime() const { return m_subscriptionCreationTime; }
105 inline bool SubscriptionCreationTimeHasBeenSet() const { return m_subscriptionCreationTimeHasBeenSet; }
106 template<typename SubscriptionCreationTimeT = Aws::String>
107 void SetSubscriptionCreationTime(SubscriptionCreationTimeT&& value) { m_subscriptionCreationTimeHasBeenSet = true; m_subscriptionCreationTime = std::forward<SubscriptionCreationTimeT>(value); }
108 template<typename SubscriptionCreationTimeT = Aws::String>
109 EventSubscription& WithSubscriptionCreationTime(SubscriptionCreationTimeT&& value) { SetSubscriptionCreationTime(std::forward<SubscriptionCreationTimeT>(value)); return *this;}
111
113
117 inline const Aws::String& GetSourceType() const { return m_sourceType; }
118 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
119 template<typename SourceTypeT = Aws::String>
120 void SetSourceType(SourceTypeT&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::forward<SourceTypeT>(value); }
121 template<typename SourceTypeT = Aws::String>
122 EventSubscription& WithSourceType(SourceTypeT&& value) { SetSourceType(std::forward<SourceTypeT>(value)); return *this;}
124
126
130 inline const Aws::Vector<Aws::String>& GetSourceIdsList() const { return m_sourceIdsList; }
131 inline bool SourceIdsListHasBeenSet() const { return m_sourceIdsListHasBeenSet; }
132 template<typename SourceIdsListT = Aws::Vector<Aws::String>>
133 void SetSourceIdsList(SourceIdsListT&& value) { m_sourceIdsListHasBeenSet = true; m_sourceIdsList = std::forward<SourceIdsListT>(value); }
134 template<typename SourceIdsListT = Aws::Vector<Aws::String>>
135 EventSubscription& WithSourceIdsList(SourceIdsListT&& value) { SetSourceIdsList(std::forward<SourceIdsListT>(value)); return *this;}
136 template<typename SourceIdsListT = Aws::String>
137 EventSubscription& AddSourceIdsList(SourceIdsListT&& value) { m_sourceIdsListHasBeenSet = true; m_sourceIdsList.emplace_back(std::forward<SourceIdsListT>(value)); return *this; }
139
141
145 inline const Aws::Vector<Aws::String>& GetEventCategoriesList() const { return m_eventCategoriesList; }
146 inline bool EventCategoriesListHasBeenSet() const { return m_eventCategoriesListHasBeenSet; }
147 template<typename EventCategoriesListT = Aws::Vector<Aws::String>>
148 void SetEventCategoriesList(EventCategoriesListT&& value) { m_eventCategoriesListHasBeenSet = true; m_eventCategoriesList = std::forward<EventCategoriesListT>(value); }
149 template<typename EventCategoriesListT = Aws::Vector<Aws::String>>
150 EventSubscription& WithEventCategoriesList(EventCategoriesListT&& value) { SetEventCategoriesList(std::forward<EventCategoriesListT>(value)); return *this;}
151 template<typename EventCategoriesListT = Aws::String>
152 EventSubscription& AddEventCategoriesList(EventCategoriesListT&& value) { m_eventCategoriesListHasBeenSet = true; m_eventCategoriesList.emplace_back(std::forward<EventCategoriesListT>(value)); return *this; }
154
156
160 inline bool GetEnabled() const { return m_enabled; }
161 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
162 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
163 inline EventSubscription& WithEnabled(bool value) { SetEnabled(value); return *this;}
165
167
170 inline const Aws::String& GetEventSubscriptionArn() const { return m_eventSubscriptionArn; }
171 inline bool EventSubscriptionArnHasBeenSet() const { return m_eventSubscriptionArnHasBeenSet; }
172 template<typename EventSubscriptionArnT = Aws::String>
173 void SetEventSubscriptionArn(EventSubscriptionArnT&& value) { m_eventSubscriptionArnHasBeenSet = true; m_eventSubscriptionArn = std::forward<EventSubscriptionArnT>(value); }
174 template<typename EventSubscriptionArnT = Aws::String>
175 EventSubscription& WithEventSubscriptionArn(EventSubscriptionArnT&& value) { SetEventSubscriptionArn(std::forward<EventSubscriptionArnT>(value)); return *this;}
177 private:
178
179 Aws::String m_customerAwsId;
180 bool m_customerAwsIdHasBeenSet = false;
181
182 Aws::String m_custSubscriptionId;
183 bool m_custSubscriptionIdHasBeenSet = false;
184
185 Aws::String m_snsTopicArn;
186 bool m_snsTopicArnHasBeenSet = false;
187
188 Aws::String m_status;
189 bool m_statusHasBeenSet = false;
190
191 Aws::String m_subscriptionCreationTime;
192 bool m_subscriptionCreationTimeHasBeenSet = false;
193
194 Aws::String m_sourceType;
195 bool m_sourceTypeHasBeenSet = false;
196
197 Aws::Vector<Aws::String> m_sourceIdsList;
198 bool m_sourceIdsListHasBeenSet = false;
199
200 Aws::Vector<Aws::String> m_eventCategoriesList;
201 bool m_eventCategoriesListHasBeenSet = false;
202
203 bool m_enabled{false};
204 bool m_enabledHasBeenSet = false;
205
206 Aws::String m_eventSubscriptionArn;
207 bool m_eventSubscriptionArnHasBeenSet = false;
208 };
209
210} // namespace Model
211} // namespace DocDB
212} // 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