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/dms/DatabaseMigrationService_EXPORTS.h>
8#include <aws/dms/DatabaseMigrationServiceRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/dms/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace DatabaseMigrationService
17{
18namespace Model
19{
20
27 {
28 public:
29 AWS_DATABASEMIGRATIONSERVICE_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_DATABASEMIGRATIONSERVICE_API Aws::String SerializePayload() const override;
38
39 AWS_DATABASEMIGRATIONSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40
41
43
47 inline const Aws::String& GetSubscriptionName() const { return m_subscriptionName; }
48 inline bool SubscriptionNameHasBeenSet() const { return m_subscriptionNameHasBeenSet; }
49 template<typename SubscriptionNameT = Aws::String>
50 void SetSubscriptionName(SubscriptionNameT&& value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName = std::forward<SubscriptionNameT>(value); }
51 template<typename SubscriptionNameT = Aws::String>
52 CreateEventSubscriptionRequest& WithSubscriptionName(SubscriptionNameT&& value) { SetSubscriptionName(std::forward<SubscriptionNameT>(value)); return *this;}
54
56
61 inline const Aws::String& GetSnsTopicArn() const { return m_snsTopicArn; }
62 inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; }
63 template<typename SnsTopicArnT = Aws::String>
64 void SetSnsTopicArn(SnsTopicArnT&& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = std::forward<SnsTopicArnT>(value); }
65 template<typename SnsTopicArnT = Aws::String>
66 CreateEventSubscriptionRequest& WithSnsTopicArn(SnsTopicArnT&& value) { SetSnsTopicArn(std::forward<SnsTopicArnT>(value)); return *this;}
68
70
77 inline const Aws::String& GetSourceType() const { return m_sourceType; }
78 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
79 template<typename SourceTypeT = Aws::String>
80 void SetSourceType(SourceTypeT&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::forward<SourceTypeT>(value); }
81 template<typename SourceTypeT = Aws::String>
82 CreateEventSubscriptionRequest& WithSourceType(SourceTypeT&& value) { SetSourceType(std::forward<SourceTypeT>(value)); return *this;}
84
86
93 inline const Aws::Vector<Aws::String>& GetEventCategories() const { return m_eventCategories; }
94 inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; }
95 template<typename EventCategoriesT = Aws::Vector<Aws::String>>
96 void SetEventCategories(EventCategoriesT&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = std::forward<EventCategoriesT>(value); }
97 template<typename EventCategoriesT = Aws::Vector<Aws::String>>
98 CreateEventSubscriptionRequest& WithEventCategories(EventCategoriesT&& value) { SetEventCategories(std::forward<EventCategoriesT>(value)); return *this;}
99 template<typename EventCategoriesT = Aws::String>
100 CreateEventSubscriptionRequest& AddEventCategories(EventCategoriesT&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.emplace_back(std::forward<EventCategoriesT>(value)); return *this; }
102
104
111 inline const Aws::Vector<Aws::String>& GetSourceIds() const { return m_sourceIds; }
112 inline bool SourceIdsHasBeenSet() const { return m_sourceIdsHasBeenSet; }
113 template<typename SourceIdsT = Aws::Vector<Aws::String>>
114 void SetSourceIds(SourceIdsT&& value) { m_sourceIdsHasBeenSet = true; m_sourceIds = std::forward<SourceIdsT>(value); }
115 template<typename SourceIdsT = Aws::Vector<Aws::String>>
116 CreateEventSubscriptionRequest& WithSourceIds(SourceIdsT&& value) { SetSourceIds(std::forward<SourceIdsT>(value)); return *this;}
117 template<typename SourceIdsT = Aws::String>
118 CreateEventSubscriptionRequest& AddSourceIds(SourceIdsT&& value) { m_sourceIdsHasBeenSet = true; m_sourceIds.emplace_back(std::forward<SourceIdsT>(value)); return *this; }
120
122
126 inline bool GetEnabled() const { return m_enabled; }
127 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
128 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
129 inline CreateEventSubscriptionRequest& WithEnabled(bool value) { SetEnabled(value); return *this;}
131
133
136 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
137 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
138 template<typename TagsT = Aws::Vector<Tag>>
139 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
140 template<typename TagsT = Aws::Vector<Tag>>
141 CreateEventSubscriptionRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
142 template<typename TagsT = Tag>
143 CreateEventSubscriptionRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
145 private:
146
147 Aws::String m_subscriptionName;
148 bool m_subscriptionNameHasBeenSet = false;
149
150 Aws::String m_snsTopicArn;
151 bool m_snsTopicArnHasBeenSet = false;
152
153 Aws::String m_sourceType;
154 bool m_sourceTypeHasBeenSet = false;
155
156 Aws::Vector<Aws::String> m_eventCategories;
157 bool m_eventCategoriesHasBeenSet = false;
158
159 Aws::Vector<Aws::String> m_sourceIds;
160 bool m_sourceIdsHasBeenSet = false;
161
162 bool m_enabled{false};
163 bool m_enabledHasBeenSet = false;
164
165 Aws::Vector<Tag> m_tags;
166 bool m_tagsHasBeenSet = false;
167 };
168
169} // namespace Model
170} // namespace DatabaseMigrationService
171} // namespace Aws
CreateEventSubscriptionRequest & AddEventCategories(EventCategoriesT &&value)
CreateEventSubscriptionRequest & WithSnsTopicArn(SnsTopicArnT &&value)
AWS_DATABASEMIGRATIONSERVICE_API CreateEventSubscriptionRequest()=default
CreateEventSubscriptionRequest & WithEventCategories(EventCategoriesT &&value)
AWS_DATABASEMIGRATIONSERVICE_API Aws::String SerializePayload() const override
AWS_DATABASEMIGRATIONSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateEventSubscriptionRequest & WithSubscriptionName(SubscriptionNameT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector