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/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:
29 AWS_RDS_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_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 template<typename SubscriptionNameT = Aws::String>
52 void SetSubscriptionName(SubscriptionNameT&& value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName = std::forward<SubscriptionNameT>(value); }
53 template<typename SubscriptionNameT = Aws::String>
54 CreateEventSubscriptionRequest& WithSubscriptionName(SubscriptionNameT&& value) { SetSubscriptionName(std::forward<SubscriptionNameT>(value)); return *this;}
56
58
67 inline const Aws::String& GetSnsTopicArn() const { return m_snsTopicArn; }
68 inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; }
69 template<typename SnsTopicArnT = Aws::String>
70 void SetSnsTopicArn(SnsTopicArnT&& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = std::forward<SnsTopicArnT>(value); }
71 template<typename SnsTopicArnT = Aws::String>
72 CreateEventSubscriptionRequest& WithSnsTopicArn(SnsTopicArnT&& value) { SetSnsTopicArn(std::forward<SnsTopicArnT>(value)); return *this;}
74
76
85 inline const Aws::String& GetSourceType() const { return m_sourceType; }
86 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
87 template<typename SourceTypeT = Aws::String>
88 void SetSourceType(SourceTypeT&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::forward<SourceTypeT>(value); }
89 template<typename SourceTypeT = Aws::String>
90 CreateEventSubscriptionRequest& WithSourceType(SourceTypeT&& value) { SetSourceType(std::forward<SourceTypeT>(value)); return *this;}
92
94
105 inline const Aws::Vector<Aws::String>& GetEventCategories() const { return m_eventCategories; }
106 inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; }
107 template<typename EventCategoriesT = Aws::Vector<Aws::String>>
108 void SetEventCategories(EventCategoriesT&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = std::forward<EventCategoriesT>(value); }
109 template<typename EventCategoriesT = Aws::Vector<Aws::String>>
110 CreateEventSubscriptionRequest& WithEventCategories(EventCategoriesT&& value) { SetEventCategories(std::forward<EventCategoriesT>(value)); return *this;}
111 template<typename EventCategoriesT = Aws::String>
112 CreateEventSubscriptionRequest& AddEventCategories(EventCategoriesT&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.emplace_back(std::forward<EventCategoriesT>(value)); return *this; }
114
116
135 inline const Aws::Vector<Aws::String>& GetSourceIds() const { return m_sourceIds; }
136 inline bool SourceIdsHasBeenSet() const { return m_sourceIdsHasBeenSet; }
137 template<typename SourceIdsT = Aws::Vector<Aws::String>>
138 void SetSourceIds(SourceIdsT&& value) { m_sourceIdsHasBeenSet = true; m_sourceIds = std::forward<SourceIdsT>(value); }
139 template<typename SourceIdsT = Aws::Vector<Aws::String>>
140 CreateEventSubscriptionRequest& WithSourceIds(SourceIdsT&& value) { SetSourceIds(std::forward<SourceIdsT>(value)); return *this;}
141 template<typename SourceIdsT = Aws::String>
142 CreateEventSubscriptionRequest& AddSourceIds(SourceIdsT&& value) { m_sourceIdsHasBeenSet = true; m_sourceIds.emplace_back(std::forward<SourceIdsT>(value)); return *this; }
144
146
150 inline bool GetEnabled() const { return m_enabled; }
151 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
152 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
153 inline CreateEventSubscriptionRequest& WithEnabled(bool value) { SetEnabled(value); return *this;}
155
157
158 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
159 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
160 template<typename TagsT = Aws::Vector<Tag>>
161 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
162 template<typename TagsT = Aws::Vector<Tag>>
163 CreateEventSubscriptionRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
164 template<typename TagsT = Tag>
165 CreateEventSubscriptionRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
167 private:
168
169 Aws::String m_subscriptionName;
170 bool m_subscriptionNameHasBeenSet = false;
171
172 Aws::String m_snsTopicArn;
173 bool m_snsTopicArnHasBeenSet = false;
174
175 Aws::String m_sourceType;
176 bool m_sourceTypeHasBeenSet = false;
177
178 Aws::Vector<Aws::String> m_eventCategories;
179 bool m_eventCategoriesHasBeenSet = false;
180
181 Aws::Vector<Aws::String> m_sourceIds;
182 bool m_sourceIdsHasBeenSet = 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 RDS
193} // namespace Aws
CreateEventSubscriptionRequest & WithSnsTopicArn(SnsTopicArnT &&value)
AWS_RDS_API Aws::String SerializePayload() const override
const Aws::Vector< Aws::String > & GetEventCategories() const
CreateEventSubscriptionRequest & AddTags(TagsT &&value)
AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateEventSubscriptionRequest & WithTags(TagsT &&value)
CreateEventSubscriptionRequest & WithSubscriptionName(SubscriptionNameT &&value)
CreateEventSubscriptionRequest & AddSourceIds(SourceIdsT &&value)
CreateEventSubscriptionRequest & WithSourceType(SourceTypeT &&value)
CreateEventSubscriptionRequest & WithEventCategories(EventCategoriesT &&value)
const Aws::Vector< Aws::String > & GetSourceIds() const
CreateEventSubscriptionRequest & AddEventCategories(EventCategoriesT &&value)
virtual const char * GetServiceRequestName() const override
CreateEventSubscriptionRequest & WithEnabled(bool value)
CreateEventSubscriptionRequest & WithSourceIds(SourceIdsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector