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/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();
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 inline void SetSubscriptionName(const Aws::String& value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName = value; }
50 inline void SetSubscriptionName(Aws::String&& value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName = std::move(value); }
51 inline void SetSubscriptionName(const char* value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName.assign(value); }
53 inline CreateEventSubscriptionRequest& WithSubscriptionName(Aws::String&& value) { SetSubscriptionName(std::move(value)); return *this;}
54 inline CreateEventSubscriptionRequest& WithSubscriptionName(const char* value) { SetSubscriptionName(value); return *this;}
56
58
63 inline const Aws::String& GetSnsTopicArn() const{ return m_snsTopicArn; }
64 inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; }
65 inline void SetSnsTopicArn(const Aws::String& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = value; }
66 inline void SetSnsTopicArn(Aws::String&& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = std::move(value); }
67 inline void SetSnsTopicArn(const char* value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn.assign(value); }
68 inline CreateEventSubscriptionRequest& WithSnsTopicArn(const Aws::String& value) { SetSnsTopicArn(value); return *this;}
69 inline CreateEventSubscriptionRequest& WithSnsTopicArn(Aws::String&& value) { SetSnsTopicArn(std::move(value)); return *this;}
70 inline CreateEventSubscriptionRequest& WithSnsTopicArn(const char* value) { SetSnsTopicArn(value); return *this;}
72
74
81 inline const Aws::String& GetSourceType() const{ return m_sourceType; }
82 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
83 inline void SetSourceType(const Aws::String& value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
84 inline void SetSourceType(Aws::String&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::move(value); }
85 inline void SetSourceType(const char* value) { m_sourceTypeHasBeenSet = true; m_sourceType.assign(value); }
86 inline CreateEventSubscriptionRequest& WithSourceType(const Aws::String& value) { SetSourceType(value); return *this;}
87 inline CreateEventSubscriptionRequest& WithSourceType(Aws::String&& value) { SetSourceType(std::move(value)); return *this;}
88 inline CreateEventSubscriptionRequest& WithSourceType(const char* value) { SetSourceType(value); return *this;}
90
92
99 inline const Aws::Vector<Aws::String>& GetEventCategories() const{ return m_eventCategories; }
100 inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; }
101 inline void SetEventCategories(const Aws::Vector<Aws::String>& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = value; }
102 inline void SetEventCategories(Aws::Vector<Aws::String>&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = std::move(value); }
105 inline CreateEventSubscriptionRequest& AddEventCategories(const Aws::String& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
106 inline CreateEventSubscriptionRequest& AddEventCategories(Aws::String&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(std::move(value)); return *this; }
107 inline CreateEventSubscriptionRequest& AddEventCategories(const char* value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
109
111
118 inline const Aws::Vector<Aws::String>& GetSourceIds() const{ return m_sourceIds; }
119 inline bool SourceIdsHasBeenSet() const { return m_sourceIdsHasBeenSet; }
120 inline void SetSourceIds(const Aws::Vector<Aws::String>& value) { m_sourceIdsHasBeenSet = true; m_sourceIds = value; }
121 inline void SetSourceIds(Aws::Vector<Aws::String>&& value) { m_sourceIdsHasBeenSet = true; m_sourceIds = std::move(value); }
123 inline CreateEventSubscriptionRequest& WithSourceIds(Aws::Vector<Aws::String>&& value) { SetSourceIds(std::move(value)); return *this;}
124 inline CreateEventSubscriptionRequest& AddSourceIds(const Aws::String& value) { m_sourceIdsHasBeenSet = true; m_sourceIds.push_back(value); return *this; }
125 inline CreateEventSubscriptionRequest& AddSourceIds(Aws::String&& value) { m_sourceIdsHasBeenSet = true; m_sourceIds.push_back(std::move(value)); return *this; }
126 inline CreateEventSubscriptionRequest& AddSourceIds(const char* value) { m_sourceIdsHasBeenSet = true; m_sourceIds.push_back(value); return *this; }
128
130
134 inline bool GetEnabled() const{ return m_enabled; }
135 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
136 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
137 inline CreateEventSubscriptionRequest& WithEnabled(bool value) { SetEnabled(value); return *this;}
139
141
144 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
145 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
146 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
147 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
148 inline CreateEventSubscriptionRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
149 inline CreateEventSubscriptionRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
150 inline CreateEventSubscriptionRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
151 inline CreateEventSubscriptionRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
153 private:
154
155 Aws::String m_subscriptionName;
156 bool m_subscriptionNameHasBeenSet = false;
157
158 Aws::String m_snsTopicArn;
159 bool m_snsTopicArnHasBeenSet = false;
160
161 Aws::String m_sourceType;
162 bool m_sourceTypeHasBeenSet = false;
163
164 Aws::Vector<Aws::String> m_eventCategories;
165 bool m_eventCategoriesHasBeenSet = false;
166
167 Aws::Vector<Aws::String> m_sourceIds;
168 bool m_sourceIdsHasBeenSet = false;
169
170 bool m_enabled;
171 bool m_enabledHasBeenSet = false;
172
173 Aws::Vector<Tag> m_tags;
174 bool m_tagsHasBeenSet = false;
175 };
176
177} // namespace Model
178} // namespace DatabaseMigrationService
179} // namespace Aws
CreateEventSubscriptionRequest & AddSourceIds(const Aws::String &value)
CreateEventSubscriptionRequest & WithSubscriptionName(const Aws::String &value)
CreateEventSubscriptionRequest & WithSubscriptionName(Aws::String &&value)
CreateEventSubscriptionRequest & WithSourceIds(const Aws::Vector< Aws::String > &value)
CreateEventSubscriptionRequest & WithTags(const Aws::Vector< Tag > &value)
CreateEventSubscriptionRequest & AddEventCategories(const Aws::String &value)
CreateEventSubscriptionRequest & WithSourceIds(Aws::Vector< Aws::String > &&value)
AWS_DATABASEMIGRATIONSERVICE_API Aws::String SerializePayload() const override
CreateEventSubscriptionRequest & WithEventCategories(Aws::Vector< Aws::String > &&value)
CreateEventSubscriptionRequest & WithSnsTopicArn(Aws::String &&value)
CreateEventSubscriptionRequest & WithEventCategories(const Aws::Vector< Aws::String > &value)
CreateEventSubscriptionRequest & AddEventCategories(Aws::String &&value)
CreateEventSubscriptionRequest & WithTags(Aws::Vector< Tag > &&value)
AWS_DATABASEMIGRATIONSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateEventSubscriptionRequest & WithSnsTopicArn(const Aws::String &value)
CreateEventSubscriptionRequest & WithSourceType(const Aws::String &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