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/rds/RDS_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 RDS
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_RDS_API EventSubscription();
37 AWS_RDS_API EventSubscription(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_RDS_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 inline void SetCustomerAwsId(const Aws::String& value) { m_customerAwsIdHasBeenSet = true; m_customerAwsId = value; }
52 inline void SetCustomerAwsId(Aws::String&& value) { m_customerAwsIdHasBeenSet = true; m_customerAwsId = std::move(value); }
53 inline void SetCustomerAwsId(const char* value) { m_customerAwsIdHasBeenSet = true; m_customerAwsId.assign(value); }
54 inline EventSubscription& WithCustomerAwsId(const Aws::String& value) { SetCustomerAwsId(value); return *this;}
55 inline EventSubscription& WithCustomerAwsId(Aws::String&& value) { SetCustomerAwsId(std::move(value)); return *this;}
56 inline EventSubscription& WithCustomerAwsId(const char* value) { SetCustomerAwsId(value); return *this;}
58
60
63 inline const Aws::String& GetCustSubscriptionId() const{ return m_custSubscriptionId; }
64 inline bool CustSubscriptionIdHasBeenSet() const { return m_custSubscriptionIdHasBeenSet; }
65 inline void SetCustSubscriptionId(const Aws::String& value) { m_custSubscriptionIdHasBeenSet = true; m_custSubscriptionId = value; }
66 inline void SetCustSubscriptionId(Aws::String&& value) { m_custSubscriptionIdHasBeenSet = true; m_custSubscriptionId = std::move(value); }
67 inline void SetCustSubscriptionId(const char* value) { m_custSubscriptionIdHasBeenSet = true; m_custSubscriptionId.assign(value); }
68 inline EventSubscription& WithCustSubscriptionId(const Aws::String& value) { SetCustSubscriptionId(value); return *this;}
69 inline EventSubscription& WithCustSubscriptionId(Aws::String&& value) { SetCustSubscriptionId(std::move(value)); return *this;}
70 inline EventSubscription& WithCustSubscriptionId(const char* value) { SetCustSubscriptionId(value); return *this;}
72
74
77 inline const Aws::String& GetSnsTopicArn() const{ return m_snsTopicArn; }
78 inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; }
79 inline void SetSnsTopicArn(const Aws::String& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = value; }
80 inline void SetSnsTopicArn(Aws::String&& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = std::move(value); }
81 inline void SetSnsTopicArn(const char* value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn.assign(value); }
82 inline EventSubscription& WithSnsTopicArn(const Aws::String& value) { SetSnsTopicArn(value); return *this;}
83 inline EventSubscription& WithSnsTopicArn(Aws::String&& value) { SetSnsTopicArn(std::move(value)); return *this;}
84 inline EventSubscription& WithSnsTopicArn(const char* value) { SetSnsTopicArn(value); return *this;}
86
88
96 inline const Aws::String& GetStatus() const{ return m_status; }
97 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
98 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
99 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
100 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
101 inline EventSubscription& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
102 inline EventSubscription& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
103 inline EventSubscription& WithStatus(const char* value) { SetStatus(value); return *this;}
105
107
110 inline const Aws::String& GetSubscriptionCreationTime() const{ return m_subscriptionCreationTime; }
111 inline bool SubscriptionCreationTimeHasBeenSet() const { return m_subscriptionCreationTimeHasBeenSet; }
112 inline void SetSubscriptionCreationTime(const Aws::String& value) { m_subscriptionCreationTimeHasBeenSet = true; m_subscriptionCreationTime = value; }
113 inline void SetSubscriptionCreationTime(Aws::String&& value) { m_subscriptionCreationTimeHasBeenSet = true; m_subscriptionCreationTime = std::move(value); }
114 inline void SetSubscriptionCreationTime(const char* value) { m_subscriptionCreationTimeHasBeenSet = true; m_subscriptionCreationTime.assign(value); }
117 inline EventSubscription& WithSubscriptionCreationTime(const char* value) { SetSubscriptionCreationTime(value); return *this;}
119
121
124 inline const Aws::String& GetSourceType() const{ return m_sourceType; }
125 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
126 inline void SetSourceType(const Aws::String& value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
127 inline void SetSourceType(Aws::String&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::move(value); }
128 inline void SetSourceType(const char* value) { m_sourceTypeHasBeenSet = true; m_sourceType.assign(value); }
129 inline EventSubscription& WithSourceType(const Aws::String& value) { SetSourceType(value); return *this;}
130 inline EventSubscription& WithSourceType(Aws::String&& value) { SetSourceType(std::move(value)); return *this;}
131 inline EventSubscription& WithSourceType(const char* value) { SetSourceType(value); return *this;}
133
135
138 inline const Aws::Vector<Aws::String>& GetSourceIdsList() const{ return m_sourceIdsList; }
139 inline bool SourceIdsListHasBeenSet() const { return m_sourceIdsListHasBeenSet; }
140 inline void SetSourceIdsList(const Aws::Vector<Aws::String>& value) { m_sourceIdsListHasBeenSet = true; m_sourceIdsList = value; }
141 inline void SetSourceIdsList(Aws::Vector<Aws::String>&& value) { m_sourceIdsListHasBeenSet = true; m_sourceIdsList = std::move(value); }
143 inline EventSubscription& WithSourceIdsList(Aws::Vector<Aws::String>&& value) { SetSourceIdsList(std::move(value)); return *this;}
144 inline EventSubscription& AddSourceIdsList(const Aws::String& value) { m_sourceIdsListHasBeenSet = true; m_sourceIdsList.push_back(value); return *this; }
145 inline EventSubscription& AddSourceIdsList(Aws::String&& value) { m_sourceIdsListHasBeenSet = true; m_sourceIdsList.push_back(std::move(value)); return *this; }
146 inline EventSubscription& AddSourceIdsList(const char* value) { m_sourceIdsListHasBeenSet = true; m_sourceIdsList.push_back(value); return *this; }
148
150
153 inline const Aws::Vector<Aws::String>& GetEventCategoriesList() const{ return m_eventCategoriesList; }
154 inline bool EventCategoriesListHasBeenSet() const { return m_eventCategoriesListHasBeenSet; }
155 inline void SetEventCategoriesList(const Aws::Vector<Aws::String>& value) { m_eventCategoriesListHasBeenSet = true; m_eventCategoriesList = value; }
156 inline void SetEventCategoriesList(Aws::Vector<Aws::String>&& value) { m_eventCategoriesListHasBeenSet = true; m_eventCategoriesList = std::move(value); }
159 inline EventSubscription& AddEventCategoriesList(const Aws::String& value) { m_eventCategoriesListHasBeenSet = true; m_eventCategoriesList.push_back(value); return *this; }
160 inline EventSubscription& AddEventCategoriesList(Aws::String&& value) { m_eventCategoriesListHasBeenSet = true; m_eventCategoriesList.push_back(std::move(value)); return *this; }
161 inline EventSubscription& AddEventCategoriesList(const char* value) { m_eventCategoriesListHasBeenSet = true; m_eventCategoriesList.push_back(value); return *this; }
163
165
169 inline bool GetEnabled() const{ return m_enabled; }
170 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
171 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
172 inline EventSubscription& WithEnabled(bool value) { SetEnabled(value); return *this;}
174
176
179 inline const Aws::String& GetEventSubscriptionArn() const{ return m_eventSubscriptionArn; }
180 inline bool EventSubscriptionArnHasBeenSet() const { return m_eventSubscriptionArnHasBeenSet; }
181 inline void SetEventSubscriptionArn(const Aws::String& value) { m_eventSubscriptionArnHasBeenSet = true; m_eventSubscriptionArn = value; }
182 inline void SetEventSubscriptionArn(Aws::String&& value) { m_eventSubscriptionArnHasBeenSet = true; m_eventSubscriptionArn = std::move(value); }
183 inline void SetEventSubscriptionArn(const char* value) { m_eventSubscriptionArnHasBeenSet = true; m_eventSubscriptionArn.assign(value); }
185 inline EventSubscription& WithEventSubscriptionArn(Aws::String&& value) { SetEventSubscriptionArn(std::move(value)); return *this;}
186 inline EventSubscription& WithEventSubscriptionArn(const char* value) { SetEventSubscriptionArn(value); return *this;}
188 private:
189
190 Aws::String m_customerAwsId;
191 bool m_customerAwsIdHasBeenSet = false;
192
193 Aws::String m_custSubscriptionId;
194 bool m_custSubscriptionIdHasBeenSet = false;
195
196 Aws::String m_snsTopicArn;
197 bool m_snsTopicArnHasBeenSet = false;
198
199 Aws::String m_status;
200 bool m_statusHasBeenSet = false;
201
202 Aws::String m_subscriptionCreationTime;
203 bool m_subscriptionCreationTimeHasBeenSet = false;
204
205 Aws::String m_sourceType;
206 bool m_sourceTypeHasBeenSet = false;
207
208 Aws::Vector<Aws::String> m_sourceIdsList;
209 bool m_sourceIdsListHasBeenSet = false;
210
211 Aws::Vector<Aws::String> m_eventCategoriesList;
212 bool m_eventCategoriesListHasBeenSet = false;
213
214 bool m_enabled;
215 bool m_enabledHasBeenSet = false;
216
217 Aws::String m_eventSubscriptionArn;
218 bool m_eventSubscriptionArnHasBeenSet = false;
219 };
220
221} // namespace Model
222} // namespace RDS
223} // namespace Aws
EventSubscription & WithEnabled(bool value)
EventSubscription & WithEventCategoriesList(Aws::Vector< Aws::String > &&value)
void SetSourceType(Aws::String &&value)
void SetEventSubscriptionArn(const char *value)
EventSubscription & WithSourceIdsList(Aws::Vector< Aws::String > &&value)
EventSubscription & WithSourceType(const Aws::String &value)
const Aws::String & GetSubscriptionCreationTime() const
const Aws::String & GetSnsTopicArn() const
EventSubscription & WithSnsTopicArn(const Aws::String &value)
void SetCustomerAwsId(Aws::String &&value)
void SetCustSubscriptionId(const char *value)
const Aws::String & GetStatus() const
void SetCustomerAwsId(const Aws::String &value)
EventSubscription & WithEventSubscriptionArn(const char *value)
EventSubscription & WithStatus(const Aws::String &value)
EventSubscription & WithCustSubscriptionId(const char *value)
void SetEventCategoriesList(const Aws::Vector< Aws::String > &value)
EventSubscription & WithCustSubscriptionId(const Aws::String &value)
EventSubscription & WithCustSubscriptionId(Aws::String &&value)
EventSubscription & WithStatus(const char *value)
void SetSourceIdsList(Aws::Vector< Aws::String > &&value)
void SetSubscriptionCreationTime(Aws::String &&value)
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
EventSubscription & WithCustomerAwsId(const char *value)
EventSubscription & AddEventCategoriesList(const char *value)
const Aws::Vector< Aws::String > & GetSourceIdsList() const
AWS_RDS_API EventSubscription & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
EventSubscription & WithCustomerAwsId(const Aws::String &value)
void SetCustomerAwsId(const char *value)
EventSubscription & WithSnsTopicArn(Aws::String &&value)
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetStatus(const Aws::String &value)
void SetSourceType(const Aws::String &value)
EventSubscription & WithEventSubscriptionArn(Aws::String &&value)
const Aws::Vector< Aws::String > & GetEventCategoriesList() const
const Aws::String & GetEventSubscriptionArn() const
EventSubscription & WithEventCategoriesList(const Aws::Vector< Aws::String > &value)
EventSubscription & AddSourceIdsList(const Aws::String &value)
EventSubscription & WithSourceType(Aws::String &&value)
EventSubscription & WithEventSubscriptionArn(const Aws::String &value)
EventSubscription & AddEventCategoriesList(const Aws::String &value)
void SetEventCategoriesList(Aws::Vector< Aws::String > &&value)
void SetCustSubscriptionId(const Aws::String &value)
const Aws::String & GetSourceType() const
EventSubscription & AddEventCategoriesList(Aws::String &&value)
void SetSnsTopicArn(Aws::String &&value)
EventSubscription & WithSnsTopicArn(const char *value)
void SetSourceIdsList(const Aws::Vector< Aws::String > &value)
EventSubscription & WithSubscriptionCreationTime(const char *value)
void SetSnsTopicArn(const char *value)
AWS_RDS_API EventSubscription(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetSourceType(const char *value)
void SetEventSubscriptionArn(Aws::String &&value)
void SetSubscriptionCreationTime(const Aws::String &value)
EventSubscription & WithStatus(Aws::String &&value)
EventSubscription & WithSourceType(const char *value)
const Aws::String & GetCustomerAwsId() const
void SetSnsTopicArn(const Aws::String &value)
EventSubscription & WithCustomerAwsId(Aws::String &&value)
EventSubscription & WithSubscriptionCreationTime(const Aws::String &value)
EventSubscription & WithSubscriptionCreationTime(Aws::String &&value)
void SetCustSubscriptionId(Aws::String &&value)
void SetEventSubscriptionArn(const Aws::String &value)
void SetStatus(Aws::String &&value)
void SetSubscriptionCreationTime(const char *value)
EventSubscription & AddSourceIdsList(Aws::String &&value)
const Aws::String & GetCustSubscriptionId() const
EventSubscription & WithSourceIdsList(const Aws::Vector< Aws::String > &value)
EventSubscription & AddSourceIdsList(const char *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