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/rds/RDS_EXPORTS.h>
8#include <aws/rds/RDSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/rds/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace RDS
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_RDS_API Aws::String SerializePayload() const override;
38
39 protected:
40 AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41
42 public:
43
45
49 inline const Aws::String& GetSubscriptionName() const{ return m_subscriptionName; }
50 inline bool SubscriptionNameHasBeenSet() const { return m_subscriptionNameHasBeenSet; }
51 inline void SetSubscriptionName(const Aws::String& value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName = value; }
52 inline void SetSubscriptionName(Aws::String&& value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName = std::move(value); }
53 inline void SetSubscriptionName(const char* value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName.assign(value); }
55 inline CreateEventSubscriptionRequest& WithSubscriptionName(Aws::String&& value) { SetSubscriptionName(std::move(value)); return *this;}
56 inline CreateEventSubscriptionRequest& WithSubscriptionName(const char* value) { SetSubscriptionName(value); return *this;}
58
60
69 inline const Aws::String& GetSnsTopicArn() const{ return m_snsTopicArn; }
70 inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; }
71 inline void SetSnsTopicArn(const Aws::String& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = value; }
72 inline void SetSnsTopicArn(Aws::String&& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = std::move(value); }
73 inline void SetSnsTopicArn(const char* value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn.assign(value); }
74 inline CreateEventSubscriptionRequest& WithSnsTopicArn(const Aws::String& value) { SetSnsTopicArn(value); return *this;}
75 inline CreateEventSubscriptionRequest& WithSnsTopicArn(Aws::String&& value) { SetSnsTopicArn(std::move(value)); return *this;}
76 inline CreateEventSubscriptionRequest& WithSnsTopicArn(const char* value) { SetSnsTopicArn(value); return *this;}
78
80
89 inline const Aws::String& GetSourceType() const{ return m_sourceType; }
90 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
91 inline void SetSourceType(const Aws::String& value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
92 inline void SetSourceType(Aws::String&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::move(value); }
93 inline void SetSourceType(const char* value) { m_sourceTypeHasBeenSet = true; m_sourceType.assign(value); }
94 inline CreateEventSubscriptionRequest& WithSourceType(const Aws::String& value) { SetSourceType(value); return *this;}
95 inline CreateEventSubscriptionRequest& WithSourceType(Aws::String&& value) { SetSourceType(std::move(value)); return *this;}
96 inline CreateEventSubscriptionRequest& WithSourceType(const char* value) { SetSourceType(value); return *this;}
98
100
111 inline const Aws::Vector<Aws::String>& GetEventCategories() const{ return m_eventCategories; }
112 inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; }
113 inline void SetEventCategories(const Aws::Vector<Aws::String>& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = value; }
114 inline void SetEventCategories(Aws::Vector<Aws::String>&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = std::move(value); }
117 inline CreateEventSubscriptionRequest& AddEventCategories(const Aws::String& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
118 inline CreateEventSubscriptionRequest& AddEventCategories(Aws::String&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(std::move(value)); return *this; }
119 inline CreateEventSubscriptionRequest& AddEventCategories(const char* value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
121
123
142 inline const Aws::Vector<Aws::String>& GetSourceIds() const{ return m_sourceIds; }
143 inline bool SourceIdsHasBeenSet() const { return m_sourceIdsHasBeenSet; }
144 inline void SetSourceIds(const Aws::Vector<Aws::String>& value) { m_sourceIdsHasBeenSet = true; m_sourceIds = value; }
145 inline void SetSourceIds(Aws::Vector<Aws::String>&& value) { m_sourceIdsHasBeenSet = true; m_sourceIds = std::move(value); }
147 inline CreateEventSubscriptionRequest& WithSourceIds(Aws::Vector<Aws::String>&& value) { SetSourceIds(std::move(value)); return *this;}
148 inline CreateEventSubscriptionRequest& AddSourceIds(const Aws::String& value) { m_sourceIdsHasBeenSet = true; m_sourceIds.push_back(value); return *this; }
149 inline CreateEventSubscriptionRequest& AddSourceIds(Aws::String&& value) { m_sourceIdsHasBeenSet = true; m_sourceIds.push_back(std::move(value)); return *this; }
150 inline CreateEventSubscriptionRequest& AddSourceIds(const char* value) { m_sourceIdsHasBeenSet = true; m_sourceIds.push_back(value); return *this; }
152
154
158 inline bool GetEnabled() const{ return m_enabled; }
159 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
160 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
161 inline CreateEventSubscriptionRequest& WithEnabled(bool value) { SetEnabled(value); return *this;}
163
165
166 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
167 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
168 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
169 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
170 inline CreateEventSubscriptionRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
171 inline CreateEventSubscriptionRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
172 inline CreateEventSubscriptionRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
173 inline CreateEventSubscriptionRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
175 private:
176
177 Aws::String m_subscriptionName;
178 bool m_subscriptionNameHasBeenSet = false;
179
180 Aws::String m_snsTopicArn;
181 bool m_snsTopicArnHasBeenSet = false;
182
183 Aws::String m_sourceType;
184 bool m_sourceTypeHasBeenSet = false;
185
186 Aws::Vector<Aws::String> m_eventCategories;
187 bool m_eventCategoriesHasBeenSet = false;
188
189 Aws::Vector<Aws::String> m_sourceIds;
190 bool m_sourceIdsHasBeenSet = false;
191
192 bool m_enabled;
193 bool m_enabledHasBeenSet = false;
194
195 Aws::Vector<Tag> m_tags;
196 bool m_tagsHasBeenSet = false;
197 };
198
199} // namespace Model
200} // namespace RDS
201} // namespace Aws
CreateEventSubscriptionRequest & WithTags(const Aws::Vector< Tag > &value)
CreateEventSubscriptionRequest & WithSourceIds(const Aws::Vector< Aws::String > &value)
CreateEventSubscriptionRequest & WithTags(Aws::Vector< Tag > &&value)
CreateEventSubscriptionRequest & AddSourceIds(const char *value)
CreateEventSubscriptionRequest & AddSourceIds(Aws::String &&value)
AWS_RDS_API Aws::String SerializePayload() const override
const Aws::Vector< Aws::String > & GetEventCategories() const
AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateEventSubscriptionRequest & AddSourceIds(const Aws::String &value)
CreateEventSubscriptionRequest & AddEventCategories(const char *value)
CreateEventSubscriptionRequest & WithSnsTopicArn(const char *value)
CreateEventSubscriptionRequest & AddEventCategories(const Aws::String &value)
CreateEventSubscriptionRequest & AddTags(const Tag &value)
CreateEventSubscriptionRequest & AddTags(Tag &&value)
void SetEventCategories(Aws::Vector< Aws::String > &&value)
CreateEventSubscriptionRequest & WithEventCategories(Aws::Vector< Aws::String > &&value)
CreateEventSubscriptionRequest & WithSourceType(const char *value)
CreateEventSubscriptionRequest & WithSubscriptionName(const Aws::String &value)
CreateEventSubscriptionRequest & WithSourceIds(Aws::Vector< Aws::String > &&value)
CreateEventSubscriptionRequest & WithSubscriptionName(const char *value)
CreateEventSubscriptionRequest & WithSourceType(Aws::String &&value)
CreateEventSubscriptionRequest & AddEventCategories(Aws::String &&value)
const Aws::Vector< Aws::String > & GetSourceIds() const
CreateEventSubscriptionRequest & WithSubscriptionName(Aws::String &&value)
CreateEventSubscriptionRequest & WithSourceType(const Aws::String &value)
CreateEventSubscriptionRequest & WithEventCategories(const Aws::Vector< Aws::String > &value)
CreateEventSubscriptionRequest & WithSnsTopicArn(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
CreateEventSubscriptionRequest & WithEnabled(bool value)
void SetEventCategories(const Aws::Vector< Aws::String > &value)
void SetSourceIds(const Aws::Vector< Aws::String > &value)
CreateEventSubscriptionRequest & WithSnsTopicArn(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector