AWS SDK for C++

AWS SDK for C++ Version 1.11.714

Loading...
Searching...
No Matches
ModifyEventSubscriptionRequest.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
12#include <utility>
13
14namespace Aws {
15namespace Redshift {
16namespace Model {
17
24 public:
25 AWS_REDSHIFT_API ModifyEventSubscriptionRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "ModifyEventSubscription"; }
32
33 AWS_REDSHIFT_API Aws::String SerializePayload() const override;
34
35 protected:
36 AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
37
38 public:
40
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
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
86 inline const Aws::String& GetSourceType() const { return m_sourceType; }
87 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
88 template <typename SourceTypeT = Aws::String>
89 void SetSourceType(SourceTypeT&& value) {
90 m_sourceTypeHasBeenSet = true;
91 m_sourceType = std::forward<SourceTypeT>(value);
92 }
93 template <typename SourceTypeT = Aws::String>
95 SetSourceType(std::forward<SourceTypeT>(value));
96 return *this;
97 }
99
101
109 inline const Aws::Vector<Aws::String>& GetSourceIds() const { return m_sourceIds; }
110 inline bool SourceIdsHasBeenSet() const { return m_sourceIdsHasBeenSet; }
111 template <typename SourceIdsT = Aws::Vector<Aws::String>>
112 void SetSourceIds(SourceIdsT&& value) {
113 m_sourceIdsHasBeenSet = true;
114 m_sourceIds = std::forward<SourceIdsT>(value);
115 }
116 template <typename SourceIdsT = Aws::Vector<Aws::String>>
118 SetSourceIds(std::forward<SourceIdsT>(value));
119 return *this;
120 }
121 template <typename SourceIdsT = Aws::String>
123 m_sourceIdsHasBeenSet = true;
124 m_sourceIds.emplace_back(std::forward<SourceIdsT>(value));
125 return *this;
126 }
128
130
135 inline const Aws::Vector<Aws::String>& GetEventCategories() const { return m_eventCategories; }
136 inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; }
137 template <typename EventCategoriesT = Aws::Vector<Aws::String>>
138 void SetEventCategories(EventCategoriesT&& value) {
139 m_eventCategoriesHasBeenSet = true;
140 m_eventCategories = std::forward<EventCategoriesT>(value);
141 }
142 template <typename EventCategoriesT = Aws::Vector<Aws::String>>
144 SetEventCategories(std::forward<EventCategoriesT>(value));
145 return *this;
146 }
147 template <typename EventCategoriesT = Aws::String>
149 m_eventCategoriesHasBeenSet = true;
150 m_eventCategories.emplace_back(std::forward<EventCategoriesT>(value));
151 return *this;
152 }
154
156
160 inline const Aws::String& GetSeverity() const { return m_severity; }
161 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
162 template <typename SeverityT = Aws::String>
163 void SetSeverity(SeverityT&& value) {
164 m_severityHasBeenSet = true;
165 m_severity = std::forward<SeverityT>(value);
166 }
167 template <typename SeverityT = Aws::String>
169 SetSeverity(std::forward<SeverityT>(value));
170 return *this;
171 }
173
175
179 inline bool GetEnabled() const { return m_enabled; }
180 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
181 inline void SetEnabled(bool value) {
182 m_enabledHasBeenSet = true;
183 m_enabled = value;
184 }
186 SetEnabled(value);
187 return *this;
188 }
190 private:
191 Aws::String m_subscriptionName;
192
193 Aws::String m_snsTopicArn;
194
195 Aws::String m_sourceType;
196
197 Aws::Vector<Aws::String> m_sourceIds;
198
199 Aws::Vector<Aws::String> m_eventCategories;
200
201 Aws::String m_severity;
202
203 bool m_enabled{false};
204 bool m_subscriptionNameHasBeenSet = false;
205 bool m_snsTopicArnHasBeenSet = false;
206 bool m_sourceTypeHasBeenSet = false;
207 bool m_sourceIdsHasBeenSet = false;
208 bool m_eventCategoriesHasBeenSet = false;
209 bool m_severityHasBeenSet = false;
210 bool m_enabledHasBeenSet = false;
211};
212
213} // namespace Model
214} // namespace Redshift
215} // namespace Aws
ModifyEventSubscriptionRequest & WithEventCategories(EventCategoriesT &&value)
AWS_REDSHIFT_API ModifyEventSubscriptionRequest()=default
ModifyEventSubscriptionRequest & WithSubscriptionName(SubscriptionNameT &&value)
ModifyEventSubscriptionRequest & WithSnsTopicArn(SnsTopicArnT &&value)
ModifyEventSubscriptionRequest & WithSourceIds(SourceIdsT &&value)
ModifyEventSubscriptionRequest & WithSeverity(SeverityT &&value)
AWS_REDSHIFT_API Aws::String SerializePayload() const override
AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifyEventSubscriptionRequest & WithSourceType(SourceTypeT &&value)
ModifyEventSubscriptionRequest & AddEventCategories(EventCategoriesT &&value)
const Aws::Vector< Aws::String > & GetEventCategories() const
ModifyEventSubscriptionRequest & AddSourceIds(SourceIdsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector