AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateEventSubscriptionRequest.h
1
6#pragma once
7#include <aws/redshift/Redshift_EXPORTS.h>
8#include <aws/redshift/RedshiftRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/redshift/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Redshift
17{
18namespace Model
19{
20
27 {
28 public:
29 AWS_REDSHIFT_API CreateEventSubscriptionRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateEventSubscription"; }
36
37 AWS_REDSHIFT_API Aws::String SerializePayload() const override;
38
39 protected:
40 AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41
42 public:
43
45
52 inline const Aws::String& GetSubscriptionName() const { return m_subscriptionName; }
53 inline bool SubscriptionNameHasBeenSet() const { return m_subscriptionNameHasBeenSet; }
54 template<typename SubscriptionNameT = Aws::String>
55 void SetSubscriptionName(SubscriptionNameT&& value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName = std::forward<SubscriptionNameT>(value); }
56 template<typename SubscriptionNameT = Aws::String>
57 CreateEventSubscriptionRequest& WithSubscriptionName(SubscriptionNameT&& value) { SetSubscriptionName(std::forward<SubscriptionNameT>(value)); return *this;}
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) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = std::forward<SnsTopicArnT>(value); }
70 template<typename SnsTopicArnT = Aws::String>
71 CreateEventSubscriptionRequest& WithSnsTopicArn(SnsTopicArnT&& value) { SetSnsTopicArn(std::forward<SnsTopicArnT>(value)); return *this;}
73
75
84 inline const Aws::String& GetSourceType() const { return m_sourceType; }
85 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
86 template<typename SourceTypeT = Aws::String>
87 void SetSourceType(SourceTypeT&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::forward<SourceTypeT>(value); }
88 template<typename SourceTypeT = Aws::String>
89 CreateEventSubscriptionRequest& WithSourceType(SourceTypeT&& value) { SetSourceType(std::forward<SourceTypeT>(value)); return *this;}
91
93
101 inline const Aws::Vector<Aws::String>& GetSourceIds() const { return m_sourceIds; }
102 inline bool SourceIdsHasBeenSet() const { return m_sourceIdsHasBeenSet; }
103 template<typename SourceIdsT = Aws::Vector<Aws::String>>
104 void SetSourceIds(SourceIdsT&& value) { m_sourceIdsHasBeenSet = true; m_sourceIds = std::forward<SourceIdsT>(value); }
105 template<typename SourceIdsT = Aws::Vector<Aws::String>>
106 CreateEventSubscriptionRequest& WithSourceIds(SourceIdsT&& value) { SetSourceIds(std::forward<SourceIdsT>(value)); return *this;}
107 template<typename SourceIdsT = Aws::String>
108 CreateEventSubscriptionRequest& AddSourceIds(SourceIdsT&& value) { m_sourceIdsHasBeenSet = true; m_sourceIds.emplace_back(std::forward<SourceIdsT>(value)); return *this; }
110
112
117 inline const Aws::Vector<Aws::String>& GetEventCategories() const { return m_eventCategories; }
118 inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; }
119 template<typename EventCategoriesT = Aws::Vector<Aws::String>>
120 void SetEventCategories(EventCategoriesT&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = std::forward<EventCategoriesT>(value); }
121 template<typename EventCategoriesT = Aws::Vector<Aws::String>>
122 CreateEventSubscriptionRequest& WithEventCategories(EventCategoriesT&& value) { SetEventCategories(std::forward<EventCategoriesT>(value)); return *this;}
123 template<typename EventCategoriesT = Aws::String>
124 CreateEventSubscriptionRequest& AddEventCategories(EventCategoriesT&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.emplace_back(std::forward<EventCategoriesT>(value)); return *this; }
126
128
132 inline const Aws::String& GetSeverity() const { return m_severity; }
133 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
134 template<typename SeverityT = Aws::String>
135 void SetSeverity(SeverityT&& value) { m_severityHasBeenSet = true; m_severity = std::forward<SeverityT>(value); }
136 template<typename SeverityT = Aws::String>
137 CreateEventSubscriptionRequest& WithSeverity(SeverityT&& value) { SetSeverity(std::forward<SeverityT>(value)); return *this;}
139
141
145 inline bool GetEnabled() const { return m_enabled; }
146 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
147 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
148 inline CreateEventSubscriptionRequest& WithEnabled(bool value) { SetEnabled(value); return *this;}
150
152
155 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
156 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
157 template<typename TagsT = Aws::Vector<Tag>>
158 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
159 template<typename TagsT = Aws::Vector<Tag>>
160 CreateEventSubscriptionRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
161 template<typename TagsT = Tag>
162 CreateEventSubscriptionRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
164 private:
165
166 Aws::String m_subscriptionName;
167 bool m_subscriptionNameHasBeenSet = false;
168
169 Aws::String m_snsTopicArn;
170 bool m_snsTopicArnHasBeenSet = false;
171
172 Aws::String m_sourceType;
173 bool m_sourceTypeHasBeenSet = false;
174
175 Aws::Vector<Aws::String> m_sourceIds;
176 bool m_sourceIdsHasBeenSet = false;
177
178 Aws::Vector<Aws::String> m_eventCategories;
179 bool m_eventCategoriesHasBeenSet = false;
180
181 Aws::String m_severity;
182 bool m_severityHasBeenSet = false;
183
184 bool m_enabled{false};
185 bool m_enabledHasBeenSet = false;
186
187 Aws::Vector<Tag> m_tags;
188 bool m_tagsHasBeenSet = false;
189 };
190
191} // namespace Model
192} // namespace Redshift
193} // 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