AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetSubscriptionName(const Aws::String& value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName = value; }
55 inline void SetSubscriptionName(Aws::String&& value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName = std::move(value); }
56 inline void SetSubscriptionName(const char* value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName.assign(value); }
58 inline CreateEventSubscriptionRequest& WithSubscriptionName(Aws::String&& value) { SetSubscriptionName(std::move(value)); return *this;}
59 inline CreateEventSubscriptionRequest& WithSubscriptionName(const char* value) { SetSubscriptionName(value); return *this;}
61
63
68 inline const Aws::String& GetSnsTopicArn() const{ return m_snsTopicArn; }
69 inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; }
70 inline void SetSnsTopicArn(const Aws::String& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = value; }
71 inline void SetSnsTopicArn(Aws::String&& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = std::move(value); }
72 inline void SetSnsTopicArn(const char* value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn.assign(value); }
73 inline CreateEventSubscriptionRequest& WithSnsTopicArn(const Aws::String& value) { SetSnsTopicArn(value); return *this;}
74 inline CreateEventSubscriptionRequest& WithSnsTopicArn(Aws::String&& value) { SetSnsTopicArn(std::move(value)); return *this;}
75 inline CreateEventSubscriptionRequest& WithSnsTopicArn(const char* value) { SetSnsTopicArn(value); return *this;}
77
79
88 inline const Aws::String& GetSourceType() const{ return m_sourceType; }
89 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
90 inline void SetSourceType(const Aws::String& value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
91 inline void SetSourceType(Aws::String&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::move(value); }
92 inline void SetSourceType(const char* value) { m_sourceTypeHasBeenSet = true; m_sourceType.assign(value); }
93 inline CreateEventSubscriptionRequest& WithSourceType(const Aws::String& value) { SetSourceType(value); return *this;}
94 inline CreateEventSubscriptionRequest& WithSourceType(Aws::String&& value) { SetSourceType(std::move(value)); return *this;}
95 inline CreateEventSubscriptionRequest& WithSourceType(const char* value) { SetSourceType(value); return *this;}
97
99
107 inline const Aws::Vector<Aws::String>& GetSourceIds() const{ return m_sourceIds; }
108 inline bool SourceIdsHasBeenSet() const { return m_sourceIdsHasBeenSet; }
109 inline void SetSourceIds(const Aws::Vector<Aws::String>& value) { m_sourceIdsHasBeenSet = true; m_sourceIds = value; }
110 inline void SetSourceIds(Aws::Vector<Aws::String>&& value) { m_sourceIdsHasBeenSet = true; m_sourceIds = std::move(value); }
112 inline CreateEventSubscriptionRequest& WithSourceIds(Aws::Vector<Aws::String>&& value) { SetSourceIds(std::move(value)); return *this;}
113 inline CreateEventSubscriptionRequest& AddSourceIds(const Aws::String& value) { m_sourceIdsHasBeenSet = true; m_sourceIds.push_back(value); return *this; }
114 inline CreateEventSubscriptionRequest& AddSourceIds(Aws::String&& value) { m_sourceIdsHasBeenSet = true; m_sourceIds.push_back(std::move(value)); return *this; }
115 inline CreateEventSubscriptionRequest& AddSourceIds(const char* value) { m_sourceIdsHasBeenSet = true; m_sourceIds.push_back(value); return *this; }
117
119
124 inline const Aws::Vector<Aws::String>& GetEventCategories() const{ return m_eventCategories; }
125 inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; }
126 inline void SetEventCategories(const Aws::Vector<Aws::String>& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = value; }
127 inline void SetEventCategories(Aws::Vector<Aws::String>&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = std::move(value); }
130 inline CreateEventSubscriptionRequest& AddEventCategories(const Aws::String& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
131 inline CreateEventSubscriptionRequest& AddEventCategories(Aws::String&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(std::move(value)); return *this; }
132 inline CreateEventSubscriptionRequest& AddEventCategories(const char* value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
134
136
140 inline const Aws::String& GetSeverity() const{ return m_severity; }
141 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
142 inline void SetSeverity(const Aws::String& value) { m_severityHasBeenSet = true; m_severity = value; }
143 inline void SetSeverity(Aws::String&& value) { m_severityHasBeenSet = true; m_severity = std::move(value); }
144 inline void SetSeverity(const char* value) { m_severityHasBeenSet = true; m_severity.assign(value); }
145 inline CreateEventSubscriptionRequest& WithSeverity(const Aws::String& value) { SetSeverity(value); return *this;}
146 inline CreateEventSubscriptionRequest& WithSeverity(Aws::String&& value) { SetSeverity(std::move(value)); return *this;}
147 inline CreateEventSubscriptionRequest& WithSeverity(const char* value) { SetSeverity(value); return *this;}
149
151
155 inline bool GetEnabled() const{ return m_enabled; }
156 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
157 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
158 inline CreateEventSubscriptionRequest& WithEnabled(bool value) { SetEnabled(value); return *this;}
160
162
165 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
166 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
167 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
168 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
169 inline CreateEventSubscriptionRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
170 inline CreateEventSubscriptionRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
171 inline CreateEventSubscriptionRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
172 inline CreateEventSubscriptionRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
174 private:
175
176 Aws::String m_subscriptionName;
177 bool m_subscriptionNameHasBeenSet = false;
178
179 Aws::String m_snsTopicArn;
180 bool m_snsTopicArnHasBeenSet = false;
181
182 Aws::String m_sourceType;
183 bool m_sourceTypeHasBeenSet = false;
184
185 Aws::Vector<Aws::String> m_sourceIds;
186 bool m_sourceIdsHasBeenSet = false;
187
188 Aws::Vector<Aws::String> m_eventCategories;
189 bool m_eventCategoriesHasBeenSet = false;
190
191 Aws::String m_severity;
192 bool m_severityHasBeenSet = false;
193
194 bool m_enabled;
195 bool m_enabledHasBeenSet = false;
196
197 Aws::Vector<Tag> m_tags;
198 bool m_tagsHasBeenSet = false;
199 };
200
201} // namespace Model
202} // namespace Redshift
203} // namespace Aws
CreateEventSubscriptionRequest & WithSeverity(const char *value)
CreateEventSubscriptionRequest & AddSourceIds(Aws::String &&value)
AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetSourceIds(const Aws::Vector< Aws::String > &value)
CreateEventSubscriptionRequest & WithSubscriptionName(Aws::String &&value)
const Aws::Vector< Aws::String > & GetEventCategories() const
CreateEventSubscriptionRequest & WithSnsTopicArn(Aws::String &&value)
CreateEventSubscriptionRequest & WithSubscriptionName(const char *value)
CreateEventSubscriptionRequest & WithSourceType(const Aws::String &value)
CreateEventSubscriptionRequest & WithSeverity(const Aws::String &value)
CreateEventSubscriptionRequest & WithSourceIds(const Aws::Vector< Aws::String > &value)
CreateEventSubscriptionRequest & AddEventCategories(const char *value)
CreateEventSubscriptionRequest & WithSubscriptionName(const Aws::String &value)
CreateEventSubscriptionRequest & AddTags(const Tag &value)
CreateEventSubscriptionRequest & WithSeverity(Aws::String &&value)
AWS_REDSHIFT_API Aws::String SerializePayload() const override
void SetEventCategories(const Aws::Vector< Aws::String > &value)
CreateEventSubscriptionRequest & AddSourceIds(const char *value)
CreateEventSubscriptionRequest & WithSourceType(const char *value)
CreateEventSubscriptionRequest & AddEventCategories(Aws::String &&value)
CreateEventSubscriptionRequest & AddEventCategories(const Aws::String &value)
CreateEventSubscriptionRequest & WithTags(const Aws::Vector< Tag > &value)
CreateEventSubscriptionRequest & AddSourceIds(const Aws::String &value)
CreateEventSubscriptionRequest & WithEventCategories(const Aws::Vector< Aws::String > &value)
CreateEventSubscriptionRequest & WithSnsTopicArn(const Aws::String &value)
CreateEventSubscriptionRequest & WithTags(Aws::Vector< Tag > &&value)
CreateEventSubscriptionRequest & WithSnsTopicArn(const char *value)
CreateEventSubscriptionRequest & WithSourceType(Aws::String &&value)
CreateEventSubscriptionRequest & WithEventCategories(Aws::Vector< Aws::String > &&value)
CreateEventSubscriptionRequest & WithSourceIds(Aws::Vector< Aws::String > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector