AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateEventSubscriptionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/rds/RDSRequest.h>
10#include <aws/rds/RDS_EXPORTS.h>
11#include <aws/rds/model/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace RDS {
17namespace Model {
18
25 public:
26 AWS_RDS_API CreateEventSubscriptionRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateEventSubscription"; }
33
34 AWS_RDS_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
38
39 public:
41
45 inline const Aws::String& GetSubscriptionName() const { return m_subscriptionName; }
46 inline bool SubscriptionNameHasBeenSet() const { return m_subscriptionNameHasBeenSet; }
47 template <typename SubscriptionNameT = Aws::String>
48 void SetSubscriptionName(SubscriptionNameT&& value) {
49 m_subscriptionNameHasBeenSet = true;
50 m_subscriptionName = std::forward<SubscriptionNameT>(value);
51 }
52 template <typename SubscriptionNameT = Aws::String>
54 SetSubscriptionName(std::forward<SubscriptionNameT>(value));
55 return *this;
56 }
58
60
69 inline const Aws::String& GetSnsTopicArn() const { return m_snsTopicArn; }
70 inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; }
71 template <typename SnsTopicArnT = Aws::String>
72 void SetSnsTopicArn(SnsTopicArnT&& value) {
73 m_snsTopicArnHasBeenSet = true;
74 m_snsTopicArn = std::forward<SnsTopicArnT>(value);
75 }
76 template <typename SnsTopicArnT = Aws::String>
78 SetSnsTopicArn(std::forward<SnsTopicArnT>(value));
79 return *this;
80 }
82
84
93 inline const Aws::String& GetSourceType() const { return m_sourceType; }
94 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
95 template <typename SourceTypeT = Aws::String>
96 void SetSourceType(SourceTypeT&& value) {
97 m_sourceTypeHasBeenSet = true;
98 m_sourceType = std::forward<SourceTypeT>(value);
99 }
100 template <typename SourceTypeT = Aws::String>
102 SetSourceType(std::forward<SourceTypeT>(value));
103 return *this;
104 }
106
108
119 inline const Aws::Vector<Aws::String>& GetEventCategories() const { return m_eventCategories; }
120 inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; }
121 template <typename EventCategoriesT = Aws::Vector<Aws::String>>
122 void SetEventCategories(EventCategoriesT&& value) {
123 m_eventCategoriesHasBeenSet = true;
124 m_eventCategories = std::forward<EventCategoriesT>(value);
125 }
126 template <typename EventCategoriesT = Aws::Vector<Aws::String>>
128 SetEventCategories(std::forward<EventCategoriesT>(value));
129 return *this;
130 }
131 template <typename EventCategoriesT = Aws::String>
133 m_eventCategoriesHasBeenSet = true;
134 m_eventCategories.emplace_back(std::forward<EventCategoriesT>(value));
135 return *this;
136 }
138
140
159 inline const Aws::Vector<Aws::String>& GetSourceIds() const { return m_sourceIds; }
160 inline bool SourceIdsHasBeenSet() const { return m_sourceIdsHasBeenSet; }
161 template <typename SourceIdsT = Aws::Vector<Aws::String>>
162 void SetSourceIds(SourceIdsT&& value) {
163 m_sourceIdsHasBeenSet = true;
164 m_sourceIds = std::forward<SourceIdsT>(value);
165 }
166 template <typename SourceIdsT = Aws::Vector<Aws::String>>
168 SetSourceIds(std::forward<SourceIdsT>(value));
169 return *this;
170 }
171 template <typename SourceIdsT = Aws::String>
173 m_sourceIdsHasBeenSet = true;
174 m_sourceIds.emplace_back(std::forward<SourceIdsT>(value));
175 return *this;
176 }
178
180
184 inline bool GetEnabled() const { return m_enabled; }
185 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
186 inline void SetEnabled(bool value) {
187 m_enabledHasBeenSet = true;
188 m_enabled = value;
189 }
191 SetEnabled(value);
192 return *this;
193 }
195
197
198 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
199 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
200 template <typename TagsT = Aws::Vector<Tag>>
201 void SetTags(TagsT&& value) {
202 m_tagsHasBeenSet = true;
203 m_tags = std::forward<TagsT>(value);
204 }
205 template <typename TagsT = Aws::Vector<Tag>>
207 SetTags(std::forward<TagsT>(value));
208 return *this;
209 }
210 template <typename TagsT = Tag>
212 m_tagsHasBeenSet = true;
213 m_tags.emplace_back(std::forward<TagsT>(value));
214 return *this;
215 }
217 private:
218 Aws::String m_subscriptionName;
219
220 Aws::String m_snsTopicArn;
221
222 Aws::String m_sourceType;
223
224 Aws::Vector<Aws::String> m_eventCategories;
225
226 Aws::Vector<Aws::String> m_sourceIds;
227
228 bool m_enabled{false};
229
230 Aws::Vector<Tag> m_tags;
231 bool m_subscriptionNameHasBeenSet = false;
232 bool m_snsTopicArnHasBeenSet = false;
233 bool m_sourceTypeHasBeenSet = false;
234 bool m_eventCategoriesHasBeenSet = false;
235 bool m_sourceIdsHasBeenSet = false;
236 bool m_enabledHasBeenSet = false;
237 bool m_tagsHasBeenSet = false;
238};
239
240} // namespace Model
241} // namespace RDS
242} // namespace Aws
CreateEventSubscriptionRequest & WithSnsTopicArn(SnsTopicArnT &&value)
AWS_RDS_API Aws::String SerializePayload() const override
const Aws::Vector< Aws::String > & GetEventCategories() const
CreateEventSubscriptionRequest & AddTags(TagsT &&value)
AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateEventSubscriptionRequest & WithTags(TagsT &&value)
CreateEventSubscriptionRequest & WithSubscriptionName(SubscriptionNameT &&value)
CreateEventSubscriptionRequest & AddSourceIds(SourceIdsT &&value)
CreateEventSubscriptionRequest & WithSourceType(SourceTypeT &&value)
CreateEventSubscriptionRequest & WithEventCategories(EventCategoriesT &&value)
const Aws::Vector< Aws::String > & GetSourceIds() const
CreateEventSubscriptionRequest & AddEventCategories(EventCategoriesT &&value)
virtual const char * GetServiceRequestName() const override
CreateEventSubscriptionRequest & WithEnabled(bool value)
CreateEventSubscriptionRequest & WithSourceIds(SourceIdsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector