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/redshift/RedshiftRequest.h>
10#include <aws/redshift/Redshift_EXPORTS.h>
11#include <aws/redshift/model/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Redshift {
17namespace Model {
18
25 public:
26 AWS_REDSHIFT_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_REDSHIFT_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
38
39 public:
41
48 inline const Aws::String& GetSubscriptionName() const { return m_subscriptionName; }
49 inline bool SubscriptionNameHasBeenSet() const { return m_subscriptionNameHasBeenSet; }
50 template <typename SubscriptionNameT = Aws::String>
51 void SetSubscriptionName(SubscriptionNameT&& value) {
52 m_subscriptionNameHasBeenSet = true;
53 m_subscriptionName = std::forward<SubscriptionNameT>(value);
54 }
55 template <typename SubscriptionNameT = Aws::String>
57 SetSubscriptionName(std::forward<SubscriptionNameT>(value));
58 return *this;
59 }
61
63
68 inline const Aws::String& GetSnsTopicArn() const { return m_snsTopicArn; }
69 inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; }
70 template <typename SnsTopicArnT = Aws::String>
71 void SetSnsTopicArn(SnsTopicArnT&& value) {
72 m_snsTopicArnHasBeenSet = true;
73 m_snsTopicArn = std::forward<SnsTopicArnT>(value);
74 }
75 template <typename SnsTopicArnT = Aws::String>
77 SetSnsTopicArn(std::forward<SnsTopicArnT>(value));
78 return *this;
79 }
81
83
92 inline const Aws::String& GetSourceType() const { return m_sourceType; }
93 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
94 template <typename SourceTypeT = Aws::String>
95 void SetSourceType(SourceTypeT&& value) {
96 m_sourceTypeHasBeenSet = true;
97 m_sourceType = std::forward<SourceTypeT>(value);
98 }
99 template <typename SourceTypeT = Aws::String>
101 SetSourceType(std::forward<SourceTypeT>(value));
102 return *this;
103 }
105
107
115 inline const Aws::Vector<Aws::String>& GetSourceIds() const { return m_sourceIds; }
116 inline bool SourceIdsHasBeenSet() const { return m_sourceIdsHasBeenSet; }
117 template <typename SourceIdsT = Aws::Vector<Aws::String>>
118 void SetSourceIds(SourceIdsT&& value) {
119 m_sourceIdsHasBeenSet = true;
120 m_sourceIds = std::forward<SourceIdsT>(value);
121 }
122 template <typename SourceIdsT = Aws::Vector<Aws::String>>
124 SetSourceIds(std::forward<SourceIdsT>(value));
125 return *this;
126 }
127 template <typename SourceIdsT = Aws::String>
129 m_sourceIdsHasBeenSet = true;
130 m_sourceIds.emplace_back(std::forward<SourceIdsT>(value));
131 return *this;
132 }
134
136
141 inline const Aws::Vector<Aws::String>& GetEventCategories() const { return m_eventCategories; }
142 inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; }
143 template <typename EventCategoriesT = Aws::Vector<Aws::String>>
144 void SetEventCategories(EventCategoriesT&& value) {
145 m_eventCategoriesHasBeenSet = true;
146 m_eventCategories = std::forward<EventCategoriesT>(value);
147 }
148 template <typename EventCategoriesT = Aws::Vector<Aws::String>>
150 SetEventCategories(std::forward<EventCategoriesT>(value));
151 return *this;
152 }
153 template <typename EventCategoriesT = Aws::String>
155 m_eventCategoriesHasBeenSet = true;
156 m_eventCategories.emplace_back(std::forward<EventCategoriesT>(value));
157 return *this;
158 }
160
162
166 inline const Aws::String& GetSeverity() const { return m_severity; }
167 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
168 template <typename SeverityT = Aws::String>
169 void SetSeverity(SeverityT&& value) {
170 m_severityHasBeenSet = true;
171 m_severity = std::forward<SeverityT>(value);
172 }
173 template <typename SeverityT = Aws::String>
175 SetSeverity(std::forward<SeverityT>(value));
176 return *this;
177 }
179
181
185 inline bool GetEnabled() const { return m_enabled; }
186 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
187 inline void SetEnabled(bool value) {
188 m_enabledHasBeenSet = true;
189 m_enabled = value;
190 }
192 SetEnabled(value);
193 return *this;
194 }
196
198
201 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
202 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
203 template <typename TagsT = Aws::Vector<Tag>>
204 void SetTags(TagsT&& value) {
205 m_tagsHasBeenSet = true;
206 m_tags = std::forward<TagsT>(value);
207 }
208 template <typename TagsT = Aws::Vector<Tag>>
210 SetTags(std::forward<TagsT>(value));
211 return *this;
212 }
213 template <typename TagsT = Tag>
215 m_tagsHasBeenSet = true;
216 m_tags.emplace_back(std::forward<TagsT>(value));
217 return *this;
218 }
220 private:
221 Aws::String m_subscriptionName;
222
223 Aws::String m_snsTopicArn;
224
225 Aws::String m_sourceType;
226
227 Aws::Vector<Aws::String> m_sourceIds;
228
229 Aws::Vector<Aws::String> m_eventCategories;
230
231 Aws::String m_severity;
232
233 bool m_enabled{false};
234
235 Aws::Vector<Tag> m_tags;
236 bool m_subscriptionNameHasBeenSet = false;
237 bool m_snsTopicArnHasBeenSet = false;
238 bool m_sourceTypeHasBeenSet = false;
239 bool m_sourceIdsHasBeenSet = false;
240 bool m_eventCategoriesHasBeenSet = false;
241 bool m_severityHasBeenSet = false;
242 bool m_enabledHasBeenSet = false;
243 bool m_tagsHasBeenSet = false;
244};
245
246} // namespace Model
247} // namespace Redshift
248} // namespace Aws
AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateEventSubscriptionRequest & WithSnsTopicArn(SnsTopicArnT &&value)
CreateEventSubscriptionRequest & WithSeverity(SeverityT &&value)
const Aws::Vector< Aws::String > & GetEventCategories() const
CreateEventSubscriptionRequest & AddTags(TagsT &&value)
CreateEventSubscriptionRequest & WithTags(TagsT &&value)
CreateEventSubscriptionRequest & WithSourceType(SourceTypeT &&value)
AWS_REDSHIFT_API CreateEventSubscriptionRequest()=default
AWS_REDSHIFT_API Aws::String SerializePayload() const override
CreateEventSubscriptionRequest & WithSourceIds(SourceIdsT &&value)
CreateEventSubscriptionRequest & WithSubscriptionName(SubscriptionNameT &&value)
CreateEventSubscriptionRequest & AddEventCategories(EventCategoriesT &&value)
CreateEventSubscriptionRequest & AddSourceIds(SourceIdsT &&value)
CreateEventSubscriptionRequest & WithEventCategories(EventCategoriesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector