AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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/docdb/DocDBRequest.h>
10#include <aws/docdb/DocDB_EXPORTS.h>
11#include <aws/docdb/model/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace DocDB {
17namespace Model {
18
26 public:
27 AWS_DOCDB_API CreateEventSubscriptionRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateEventSubscription"; }
34
35 AWS_DOCDB_API Aws::String SerializePayload() const override;
36
37 protected:
38 AWS_DOCDB_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
39
40 public:
42
46 inline const Aws::String& GetSubscriptionName() const { return m_subscriptionName; }
47 inline bool SubscriptionNameHasBeenSet() const { return m_subscriptionNameHasBeenSet; }
48 template <typename SubscriptionNameT = Aws::String>
49 void SetSubscriptionName(SubscriptionNameT&& value) {
50 m_subscriptionNameHasBeenSet = true;
51 m_subscriptionName = std::forward<SubscriptionNameT>(value);
52 }
53 template <typename SubscriptionNameT = Aws::String>
55 SetSubscriptionName(std::forward<SubscriptionNameT>(value));
56 return *this;
57 }
59
61
66 inline const Aws::String& GetSnsTopicArn() const { return m_snsTopicArn; }
67 inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; }
68 template <typename SnsTopicArnT = Aws::String>
69 void SetSnsTopicArn(SnsTopicArnT&& value) {
70 m_snsTopicArnHasBeenSet = true;
71 m_snsTopicArn = std::forward<SnsTopicArnT>(value);
72 }
73 template <typename SnsTopicArnT = Aws::String>
75 SetSnsTopicArn(std::forward<SnsTopicArnT>(value));
76 return *this;
77 }
79
81
89 inline const Aws::String& GetSourceType() const { return m_sourceType; }
90 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
91 template <typename SourceTypeT = Aws::String>
92 void SetSourceType(SourceTypeT&& value) {
93 m_sourceTypeHasBeenSet = true;
94 m_sourceType = std::forward<SourceTypeT>(value);
95 }
96 template <typename SourceTypeT = Aws::String>
98 SetSourceType(std::forward<SourceTypeT>(value));
99 return *this;
100 }
102
104
108 inline const Aws::Vector<Aws::String>& GetEventCategories() const { return m_eventCategories; }
109 inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; }
110 template <typename EventCategoriesT = Aws::Vector<Aws::String>>
111 void SetEventCategories(EventCategoriesT&& value) {
112 m_eventCategoriesHasBeenSet = true;
113 m_eventCategories = std::forward<EventCategoriesT>(value);
114 }
115 template <typename EventCategoriesT = Aws::Vector<Aws::String>>
117 SetEventCategories(std::forward<EventCategoriesT>(value));
118 return *this;
119 }
120 template <typename EventCategoriesT = Aws::String>
122 m_eventCategoriesHasBeenSet = true;
123 m_eventCategories.emplace_back(std::forward<EventCategoriesT>(value));
124 return *this;
125 }
127
129
143 inline const Aws::Vector<Aws::String>& GetSourceIds() const { return m_sourceIds; }
144 inline bool SourceIdsHasBeenSet() const { return m_sourceIdsHasBeenSet; }
145 template <typename SourceIdsT = Aws::Vector<Aws::String>>
146 void SetSourceIds(SourceIdsT&& value) {
147 m_sourceIdsHasBeenSet = true;
148 m_sourceIds = std::forward<SourceIdsT>(value);
149 }
150 template <typename SourceIdsT = Aws::Vector<Aws::String>>
152 SetSourceIds(std::forward<SourceIdsT>(value));
153 return *this;
154 }
155 template <typename SourceIdsT = Aws::String>
157 m_sourceIdsHasBeenSet = true;
158 m_sourceIds.emplace_back(std::forward<SourceIdsT>(value));
159 return *this;
160 }
162
164
168 inline bool GetEnabled() const { return m_enabled; }
169 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
170 inline void SetEnabled(bool value) {
171 m_enabledHasBeenSet = true;
172 m_enabled = value;
173 }
175 SetEnabled(value);
176 return *this;
177 }
179
181
184 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
185 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
186 template <typename TagsT = Aws::Vector<Tag>>
187 void SetTags(TagsT&& value) {
188 m_tagsHasBeenSet = true;
189 m_tags = std::forward<TagsT>(value);
190 }
191 template <typename TagsT = Aws::Vector<Tag>>
193 SetTags(std::forward<TagsT>(value));
194 return *this;
195 }
196 template <typename TagsT = Tag>
198 m_tagsHasBeenSet = true;
199 m_tags.emplace_back(std::forward<TagsT>(value));
200 return *this;
201 }
203 private:
204 Aws::String m_subscriptionName;
205
206 Aws::String m_snsTopicArn;
207
208 Aws::String m_sourceType;
209
210 Aws::Vector<Aws::String> m_eventCategories;
211
212 Aws::Vector<Aws::String> m_sourceIds;
213
214 bool m_enabled{false};
215
216 Aws::Vector<Tag> m_tags;
217 bool m_subscriptionNameHasBeenSet = false;
218 bool m_snsTopicArnHasBeenSet = false;
219 bool m_sourceTypeHasBeenSet = false;
220 bool m_eventCategoriesHasBeenSet = false;
221 bool m_sourceIdsHasBeenSet = false;
222 bool m_enabledHasBeenSet = false;
223 bool m_tagsHasBeenSet = false;
224};
225
226} // namespace Model
227} // namespace DocDB
228} // namespace Aws
CreateEventSubscriptionRequest & WithSnsTopicArn(SnsTopicArnT &&value)
const Aws::Vector< Aws::String > & GetSourceIds() const
CreateEventSubscriptionRequest & WithSourceIds(SourceIdsT &&value)
AWS_DOCDB_API Aws::String SerializePayload() const override
AWS_DOCDB_API CreateEventSubscriptionRequest()=default
CreateEventSubscriptionRequest & WithSubscriptionName(SubscriptionNameT &&value)
CreateEventSubscriptionRequest & WithEventCategories(EventCategoriesT &&value)
CreateEventSubscriptionRequest & AddSourceIds(SourceIdsT &&value)
CreateEventSubscriptionRequest & WithEnabled(bool value)
CreateEventSubscriptionRequest & WithSourceType(SourceTypeT &&value)
const Aws::Vector< Aws::String > & GetEventCategories() const
CreateEventSubscriptionRequest & AddTags(TagsT &&value)
CreateEventSubscriptionRequest & AddEventCategories(EventCategoriesT &&value)
CreateEventSubscriptionRequest & WithTags(TagsT &&value)
AWS_DOCDB_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector