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/dms/DatabaseMigrationServiceRequest.h>
10#include <aws/dms/DatabaseMigrationService_EXPORTS.h>
11#include <aws/dms/model/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace DatabaseMigrationService {
17namespace Model {
18
25 public:
26 AWS_DATABASEMIGRATIONSERVICE_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_DATABASEMIGRATIONSERVICE_API Aws::String SerializePayload() const override;
35
36 AWS_DATABASEMIGRATIONSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
39
43 inline const Aws::String& GetSubscriptionName() const { return m_subscriptionName; }
44 inline bool SubscriptionNameHasBeenSet() const { return m_subscriptionNameHasBeenSet; }
45 template <typename SubscriptionNameT = Aws::String>
46 void SetSubscriptionName(SubscriptionNameT&& value) {
47 m_subscriptionNameHasBeenSet = true;
48 m_subscriptionName = std::forward<SubscriptionNameT>(value);
49 }
50 template <typename SubscriptionNameT = Aws::String>
52 SetSubscriptionName(std::forward<SubscriptionNameT>(value));
53 return *this;
54 }
56
58
63 inline const Aws::String& GetSnsTopicArn() const { return m_snsTopicArn; }
64 inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; }
65 template <typename SnsTopicArnT = Aws::String>
66 void SetSnsTopicArn(SnsTopicArnT&& value) {
67 m_snsTopicArnHasBeenSet = true;
68 m_snsTopicArn = std::forward<SnsTopicArnT>(value);
69 }
70 template <typename SnsTopicArnT = Aws::String>
72 SetSnsTopicArn(std::forward<SnsTopicArnT>(value));
73 return *this;
74 }
76
78
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
107 inline const Aws::Vector<Aws::String>& GetEventCategories() const { return m_eventCategories; }
108 inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; }
109 template <typename EventCategoriesT = Aws::Vector<Aws::String>>
110 void SetEventCategories(EventCategoriesT&& value) {
111 m_eventCategoriesHasBeenSet = true;
112 m_eventCategories = std::forward<EventCategoriesT>(value);
113 }
114 template <typename EventCategoriesT = Aws::Vector<Aws::String>>
116 SetEventCategories(std::forward<EventCategoriesT>(value));
117 return *this;
118 }
119 template <typename EventCategoriesT = Aws::String>
121 m_eventCategoriesHasBeenSet = true;
122 m_eventCategories.emplace_back(std::forward<EventCategoriesT>(value));
123 return *this;
124 }
126
128
135 inline const Aws::Vector<Aws::String>& GetSourceIds() const { return m_sourceIds; }
136 inline bool SourceIdsHasBeenSet() const { return m_sourceIdsHasBeenSet; }
137 template <typename SourceIdsT = Aws::Vector<Aws::String>>
138 void SetSourceIds(SourceIdsT&& value) {
139 m_sourceIdsHasBeenSet = true;
140 m_sourceIds = std::forward<SourceIdsT>(value);
141 }
142 template <typename SourceIdsT = Aws::Vector<Aws::String>>
144 SetSourceIds(std::forward<SourceIdsT>(value));
145 return *this;
146 }
147 template <typename SourceIdsT = Aws::String>
149 m_sourceIdsHasBeenSet = true;
150 m_sourceIds.emplace_back(std::forward<SourceIdsT>(value));
151 return *this;
152 }
154
156
160 inline bool GetEnabled() const { return m_enabled; }
161 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
162 inline void SetEnabled(bool value) {
163 m_enabledHasBeenSet = true;
164 m_enabled = value;
165 }
167 SetEnabled(value);
168 return *this;
169 }
171
173
176 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
177 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
178 template <typename TagsT = Aws::Vector<Tag>>
179 void SetTags(TagsT&& value) {
180 m_tagsHasBeenSet = true;
181 m_tags = std::forward<TagsT>(value);
182 }
183 template <typename TagsT = Aws::Vector<Tag>>
185 SetTags(std::forward<TagsT>(value));
186 return *this;
187 }
188 template <typename TagsT = Tag>
190 m_tagsHasBeenSet = true;
191 m_tags.emplace_back(std::forward<TagsT>(value));
192 return *this;
193 }
195 private:
196 Aws::String m_subscriptionName;
197
198 Aws::String m_snsTopicArn;
199
200 Aws::String m_sourceType;
201
202 Aws::Vector<Aws::String> m_eventCategories;
203
204 Aws::Vector<Aws::String> m_sourceIds;
205
206 bool m_enabled{false};
207
208 Aws::Vector<Tag> m_tags;
209 bool m_subscriptionNameHasBeenSet = false;
210 bool m_snsTopicArnHasBeenSet = false;
211 bool m_sourceTypeHasBeenSet = false;
212 bool m_eventCategoriesHasBeenSet = false;
213 bool m_sourceIdsHasBeenSet = false;
214 bool m_enabledHasBeenSet = false;
215 bool m_tagsHasBeenSet = false;
216};
217
218} // namespace Model
219} // namespace DatabaseMigrationService
220} // namespace Aws
CreateEventSubscriptionRequest & AddEventCategories(EventCategoriesT &&value)
CreateEventSubscriptionRequest & WithSnsTopicArn(SnsTopicArnT &&value)
AWS_DATABASEMIGRATIONSERVICE_API CreateEventSubscriptionRequest()=default
CreateEventSubscriptionRequest & WithEventCategories(EventCategoriesT &&value)
AWS_DATABASEMIGRATIONSERVICE_API Aws::String SerializePayload() const override
AWS_DATABASEMIGRATIONSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateEventSubscriptionRequest & WithSubscriptionName(SubscriptionNameT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector