AWS SDK for C++

AWS SDK for C++ Version 1.11.683

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/neptune/NeptuneRequest.h>
10#include <aws/neptune/Neptune_EXPORTS.h>
11#include <aws/neptune/model/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Neptune {
17namespace Model {
18
22 public:
23 AWS_NEPTUNE_API CreateEventSubscriptionRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateEventSubscription"; }
30
31 AWS_NEPTUNE_API Aws::String SerializePayload() const override;
32
33 protected:
34 AWS_NEPTUNE_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
35
36 public:
38
42 inline const Aws::String& GetSubscriptionName() const { return m_subscriptionName; }
43 inline bool SubscriptionNameHasBeenSet() const { return m_subscriptionNameHasBeenSet; }
44 template <typename SubscriptionNameT = Aws::String>
45 void SetSubscriptionName(SubscriptionNameT&& value) {
46 m_subscriptionNameHasBeenSet = true;
47 m_subscriptionName = std::forward<SubscriptionNameT>(value);
48 }
49 template <typename SubscriptionNameT = Aws::String>
51 SetSubscriptionName(std::forward<SubscriptionNameT>(value));
52 return *this;
53 }
55
57
62 inline const Aws::String& GetSnsTopicArn() const { return m_snsTopicArn; }
63 inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; }
64 template <typename SnsTopicArnT = Aws::String>
65 void SetSnsTopicArn(SnsTopicArnT&& value) {
66 m_snsTopicArnHasBeenSet = true;
67 m_snsTopicArn = std::forward<SnsTopicArnT>(value);
68 }
69 template <typename SnsTopicArnT = Aws::String>
71 SetSnsTopicArn(std::forward<SnsTopicArnT>(value));
72 return *this;
73 }
75
77
85 inline const Aws::String& GetSourceType() const { return m_sourceType; }
86 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
87 template <typename SourceTypeT = Aws::String>
88 void SetSourceType(SourceTypeT&& value) {
89 m_sourceTypeHasBeenSet = true;
90 m_sourceType = std::forward<SourceTypeT>(value);
91 }
92 template <typename SourceTypeT = Aws::String>
94 SetSourceType(std::forward<SourceTypeT>(value));
95 return *this;
96 }
98
100
105 inline const Aws::Vector<Aws::String>& GetEventCategories() const { return m_eventCategories; }
106 inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; }
107 template <typename EventCategoriesT = Aws::Vector<Aws::String>>
108 void SetEventCategories(EventCategoriesT&& value) {
109 m_eventCategoriesHasBeenSet = true;
110 m_eventCategories = std::forward<EventCategoriesT>(value);
111 }
112 template <typename EventCategoriesT = Aws::Vector<Aws::String>>
114 SetEventCategories(std::forward<EventCategoriesT>(value));
115 return *this;
116 }
117 template <typename EventCategoriesT = Aws::String>
119 m_eventCategoriesHasBeenSet = true;
120 m_eventCategories.emplace_back(std::forward<EventCategoriesT>(value));
121 return *this;
122 }
124
126
140 inline const Aws::Vector<Aws::String>& GetSourceIds() const { return m_sourceIds; }
141 inline bool SourceIdsHasBeenSet() const { return m_sourceIdsHasBeenSet; }
142 template <typename SourceIdsT = Aws::Vector<Aws::String>>
143 void SetSourceIds(SourceIdsT&& value) {
144 m_sourceIdsHasBeenSet = true;
145 m_sourceIds = std::forward<SourceIdsT>(value);
146 }
147 template <typename SourceIdsT = Aws::Vector<Aws::String>>
149 SetSourceIds(std::forward<SourceIdsT>(value));
150 return *this;
151 }
152 template <typename SourceIdsT = Aws::String>
154 m_sourceIdsHasBeenSet = true;
155 m_sourceIds.emplace_back(std::forward<SourceIdsT>(value));
156 return *this;
157 }
159
161
165 inline bool GetEnabled() const { return m_enabled; }
166 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
167 inline void SetEnabled(bool value) {
168 m_enabledHasBeenSet = true;
169 m_enabled = value;
170 }
172 SetEnabled(value);
173 return *this;
174 }
176
178
181 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
182 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
183 template <typename TagsT = Aws::Vector<Tag>>
184 void SetTags(TagsT&& value) {
185 m_tagsHasBeenSet = true;
186 m_tags = std::forward<TagsT>(value);
187 }
188 template <typename TagsT = Aws::Vector<Tag>>
190 SetTags(std::forward<TagsT>(value));
191 return *this;
192 }
193 template <typename TagsT = Tag>
195 m_tagsHasBeenSet = true;
196 m_tags.emplace_back(std::forward<TagsT>(value));
197 return *this;
198 }
200 private:
201 Aws::String m_subscriptionName;
202 bool m_subscriptionNameHasBeenSet = false;
203
204 Aws::String m_snsTopicArn;
205 bool m_snsTopicArnHasBeenSet = false;
206
207 Aws::String m_sourceType;
208 bool m_sourceTypeHasBeenSet = false;
209
210 Aws::Vector<Aws::String> m_eventCategories;
211 bool m_eventCategoriesHasBeenSet = false;
212
213 Aws::Vector<Aws::String> m_sourceIds;
214 bool m_sourceIdsHasBeenSet = false;
215
216 bool m_enabled{false};
217 bool m_enabledHasBeenSet = false;
218
219 Aws::Vector<Tag> m_tags;
220 bool m_tagsHasBeenSet = false;
221};
222
223} // namespace Model
224} // namespace Neptune
225} // namespace Aws
CreateEventSubscriptionRequest & WithSourceType(SourceTypeT &&value)
CreateEventSubscriptionRequest & WithSourceIds(SourceIdsT &&value)
AWS_NEPTUNE_API Aws::String SerializePayload() const override
AWS_NEPTUNE_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
const Aws::Vector< Aws::String > & GetEventCategories() const
AWS_NEPTUNE_API CreateEventSubscriptionRequest()=default
CreateEventSubscriptionRequest & AddSourceIds(SourceIdsT &&value)
CreateEventSubscriptionRequest & WithEnabled(bool value)
CreateEventSubscriptionRequest & AddTags(TagsT &&value)
CreateEventSubscriptionRequest & WithTags(TagsT &&value)
CreateEventSubscriptionRequest & WithSnsTopicArn(SnsTopicArnT &&value)
CreateEventSubscriptionRequest & AddEventCategories(EventCategoriesT &&value)
CreateEventSubscriptionRequest & WithSubscriptionName(SubscriptionNameT &&value)
CreateEventSubscriptionRequest & WithEventCategories(EventCategoriesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector