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/neptune/Neptune_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 Neptune
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_NEPTUNE_API EventSubscription() = default;
37 AWS_NEPTUNE_API EventSubscription(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_NEPTUNE_API EventSubscription& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_NEPTUNE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_NEPTUNE_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
90 inline const Aws::String& GetStatus() const { return m_status; }
91 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
92 template<typename StatusT = Aws::String>
93 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
94 template<typename StatusT = Aws::String>
95 EventSubscription& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
97
99
102 inline const Aws::String& GetSubscriptionCreationTime() const { return m_subscriptionCreationTime; }
103 inline bool SubscriptionCreationTimeHasBeenSet() const { return m_subscriptionCreationTimeHasBeenSet; }
104 template<typename SubscriptionCreationTimeT = Aws::String>
105 void SetSubscriptionCreationTime(SubscriptionCreationTimeT&& value) { m_subscriptionCreationTimeHasBeenSet = true; m_subscriptionCreationTime = std::forward<SubscriptionCreationTimeT>(value); }
106 template<typename SubscriptionCreationTimeT = Aws::String>
107 EventSubscription& WithSubscriptionCreationTime(SubscriptionCreationTimeT&& value) { SetSubscriptionCreationTime(std::forward<SubscriptionCreationTimeT>(value)); return *this;}
109
111
114 inline const Aws::String& GetSourceType() const { return m_sourceType; }
115 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
116 template<typename SourceTypeT = Aws::String>
117 void SetSourceType(SourceTypeT&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::forward<SourceTypeT>(value); }
118 template<typename SourceTypeT = Aws::String>
119 EventSubscription& WithSourceType(SourceTypeT&& value) { SetSourceType(std::forward<SourceTypeT>(value)); return *this;}
121
123
126 inline const Aws::Vector<Aws::String>& GetSourceIdsList() const { return m_sourceIdsList; }
127 inline bool SourceIdsListHasBeenSet() const { return m_sourceIdsListHasBeenSet; }
128 template<typename SourceIdsListT = Aws::Vector<Aws::String>>
129 void SetSourceIdsList(SourceIdsListT&& value) { m_sourceIdsListHasBeenSet = true; m_sourceIdsList = std::forward<SourceIdsListT>(value); }
130 template<typename SourceIdsListT = Aws::Vector<Aws::String>>
131 EventSubscription& WithSourceIdsList(SourceIdsListT&& value) { SetSourceIdsList(std::forward<SourceIdsListT>(value)); return *this;}
132 template<typename SourceIdsListT = Aws::String>
133 EventSubscription& AddSourceIdsList(SourceIdsListT&& value) { m_sourceIdsListHasBeenSet = true; m_sourceIdsList.emplace_back(std::forward<SourceIdsListT>(value)); return *this; }
135
137
140 inline const Aws::Vector<Aws::String>& GetEventCategoriesList() const { return m_eventCategoriesList; }
141 inline bool EventCategoriesListHasBeenSet() const { return m_eventCategoriesListHasBeenSet; }
142 template<typename EventCategoriesListT = Aws::Vector<Aws::String>>
143 void SetEventCategoriesList(EventCategoriesListT&& value) { m_eventCategoriesListHasBeenSet = true; m_eventCategoriesList = std::forward<EventCategoriesListT>(value); }
144 template<typename EventCategoriesListT = Aws::Vector<Aws::String>>
145 EventSubscription& WithEventCategoriesList(EventCategoriesListT&& value) { SetEventCategoriesList(std::forward<EventCategoriesListT>(value)); return *this;}
146 template<typename EventCategoriesListT = Aws::String>
147 EventSubscription& AddEventCategoriesList(EventCategoriesListT&& value) { m_eventCategoriesListHasBeenSet = true; m_eventCategoriesList.emplace_back(std::forward<EventCategoriesListT>(value)); return *this; }
149
151
155 inline bool GetEnabled() const { return m_enabled; }
156 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
157 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
158 inline EventSubscription& WithEnabled(bool value) { SetEnabled(value); return *this;}
160
162
165 inline const Aws::String& GetEventSubscriptionArn() const { return m_eventSubscriptionArn; }
166 inline bool EventSubscriptionArnHasBeenSet() const { return m_eventSubscriptionArnHasBeenSet; }
167 template<typename EventSubscriptionArnT = Aws::String>
168 void SetEventSubscriptionArn(EventSubscriptionArnT&& value) { m_eventSubscriptionArnHasBeenSet = true; m_eventSubscriptionArn = std::forward<EventSubscriptionArnT>(value); }
169 template<typename EventSubscriptionArnT = Aws::String>
170 EventSubscription& WithEventSubscriptionArn(EventSubscriptionArnT&& value) { SetEventSubscriptionArn(std::forward<EventSubscriptionArnT>(value)); return *this;}
172 private:
173
174 Aws::String m_customerAwsId;
175 bool m_customerAwsIdHasBeenSet = false;
176
177 Aws::String m_custSubscriptionId;
178 bool m_custSubscriptionIdHasBeenSet = false;
179
180 Aws::String m_snsTopicArn;
181 bool m_snsTopicArnHasBeenSet = false;
182
183 Aws::String m_status;
184 bool m_statusHasBeenSet = false;
185
186 Aws::String m_subscriptionCreationTime;
187 bool m_subscriptionCreationTimeHasBeenSet = false;
188
189 Aws::String m_sourceType;
190 bool m_sourceTypeHasBeenSet = false;
191
192 Aws::Vector<Aws::String> m_sourceIdsList;
193 bool m_sourceIdsListHasBeenSet = false;
194
195 Aws::Vector<Aws::String> m_eventCategoriesList;
196 bool m_eventCategoriesListHasBeenSet = false;
197
198 bool m_enabled{false};
199 bool m_enabledHasBeenSet = false;
200
201 Aws::String m_eventSubscriptionArn;
202 bool m_eventSubscriptionArnHasBeenSet = false;
203 };
204
205} // namespace Model
206} // namespace Neptune
207} // 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