AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateDataMigrationRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/dms/DatabaseMigrationServiceRequest.h>
10#include <aws/dms/DatabaseMigrationService_EXPORTS.h>
11#include <aws/dms/model/MigrationTypeValue.h>
12#include <aws/dms/model/SourceDataSetting.h>
13#include <aws/dms/model/Tag.h>
14#include <aws/dms/model/TargetDataSetting.h>
15
16#include <utility>
17
18namespace Aws {
19namespace DatabaseMigrationService {
20namespace Model {
21
25 public:
26 AWS_DATABASEMIGRATIONSERVICE_API CreateDataMigrationRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateDataMigration"; }
33
34 AWS_DATABASEMIGRATIONSERVICE_API Aws::String SerializePayload() const override;
35
36 AWS_DATABASEMIGRATIONSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
39
46 inline const Aws::String& GetDataMigrationName() const { return m_dataMigrationName; }
47 inline bool DataMigrationNameHasBeenSet() const { return m_dataMigrationNameHasBeenSet; }
48 template <typename DataMigrationNameT = Aws::String>
49 void SetDataMigrationName(DataMigrationNameT&& value) {
50 m_dataMigrationNameHasBeenSet = true;
51 m_dataMigrationName = std::forward<DataMigrationNameT>(value);
52 }
53 template <typename DataMigrationNameT = Aws::String>
55 SetDataMigrationName(std::forward<DataMigrationNameT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetMigrationProjectIdentifier() const { return m_migrationProjectIdentifier; }
65 inline bool MigrationProjectIdentifierHasBeenSet() const { return m_migrationProjectIdentifierHasBeenSet; }
66 template <typename MigrationProjectIdentifierT = Aws::String>
67 void SetMigrationProjectIdentifier(MigrationProjectIdentifierT&& value) {
68 m_migrationProjectIdentifierHasBeenSet = true;
69 m_migrationProjectIdentifier = std::forward<MigrationProjectIdentifierT>(value);
70 }
71 template <typename MigrationProjectIdentifierT = Aws::String>
72 CreateDataMigrationRequest& WithMigrationProjectIdentifier(MigrationProjectIdentifierT&& value) {
73 SetMigrationProjectIdentifier(std::forward<MigrationProjectIdentifierT>(value));
74 return *this;
75 }
77
79
83 inline MigrationTypeValue GetDataMigrationType() const { return m_dataMigrationType; }
84 inline bool DataMigrationTypeHasBeenSet() const { return m_dataMigrationTypeHasBeenSet; }
86 m_dataMigrationTypeHasBeenSet = true;
87 m_dataMigrationType = value;
88 }
91 return *this;
92 }
94
96
100 inline const Aws::String& GetServiceAccessRoleArn() const { return m_serviceAccessRoleArn; }
101 inline bool ServiceAccessRoleArnHasBeenSet() const { return m_serviceAccessRoleArnHasBeenSet; }
102 template <typename ServiceAccessRoleArnT = Aws::String>
103 void SetServiceAccessRoleArn(ServiceAccessRoleArnT&& value) {
104 m_serviceAccessRoleArnHasBeenSet = true;
105 m_serviceAccessRoleArn = std::forward<ServiceAccessRoleArnT>(value);
106 }
107 template <typename ServiceAccessRoleArnT = Aws::String>
108 CreateDataMigrationRequest& WithServiceAccessRoleArn(ServiceAccessRoleArnT&& value) {
109 SetServiceAccessRoleArn(std::forward<ServiceAccessRoleArnT>(value));
110 return *this;
111 }
113
115
118 inline bool GetEnableCloudwatchLogs() const { return m_enableCloudwatchLogs; }
119 inline bool EnableCloudwatchLogsHasBeenSet() const { return m_enableCloudwatchLogsHasBeenSet; }
120 inline void SetEnableCloudwatchLogs(bool value) {
121 m_enableCloudwatchLogsHasBeenSet = true;
122 m_enableCloudwatchLogs = value;
123 }
126 return *this;
127 }
129
131
134 inline const Aws::Vector<SourceDataSetting>& GetSourceDataSettings() const { return m_sourceDataSettings; }
135 inline bool SourceDataSettingsHasBeenSet() const { return m_sourceDataSettingsHasBeenSet; }
136 template <typename SourceDataSettingsT = Aws::Vector<SourceDataSetting>>
137 void SetSourceDataSettings(SourceDataSettingsT&& value) {
138 m_sourceDataSettingsHasBeenSet = true;
139 m_sourceDataSettings = std::forward<SourceDataSettingsT>(value);
140 }
141 template <typename SourceDataSettingsT = Aws::Vector<SourceDataSetting>>
143 SetSourceDataSettings(std::forward<SourceDataSettingsT>(value));
144 return *this;
145 }
146 template <typename SourceDataSettingsT = SourceDataSetting>
147 CreateDataMigrationRequest& AddSourceDataSettings(SourceDataSettingsT&& value) {
148 m_sourceDataSettingsHasBeenSet = true;
149 m_sourceDataSettings.emplace_back(std::forward<SourceDataSettingsT>(value));
150 return *this;
151 }
153
155
158 inline const Aws::Vector<TargetDataSetting>& GetTargetDataSettings() const { return m_targetDataSettings; }
159 inline bool TargetDataSettingsHasBeenSet() const { return m_targetDataSettingsHasBeenSet; }
160 template <typename TargetDataSettingsT = Aws::Vector<TargetDataSetting>>
161 void SetTargetDataSettings(TargetDataSettingsT&& value) {
162 m_targetDataSettingsHasBeenSet = true;
163 m_targetDataSettings = std::forward<TargetDataSettingsT>(value);
164 }
165 template <typename TargetDataSettingsT = Aws::Vector<TargetDataSetting>>
167 SetTargetDataSettings(std::forward<TargetDataSettingsT>(value));
168 return *this;
169 }
170 template <typename TargetDataSettingsT = TargetDataSetting>
171 CreateDataMigrationRequest& AddTargetDataSettings(TargetDataSettingsT&& value) {
172 m_targetDataSettingsHasBeenSet = true;
173 m_targetDataSettings.emplace_back(std::forward<TargetDataSettingsT>(value));
174 return *this;
175 }
177
179
183 inline int GetNumberOfJobs() const { return m_numberOfJobs; }
184 inline bool NumberOfJobsHasBeenSet() const { return m_numberOfJobsHasBeenSet; }
185 inline void SetNumberOfJobs(int value) {
186 m_numberOfJobsHasBeenSet = true;
187 m_numberOfJobs = value;
188 }
190 SetNumberOfJobs(value);
191 return *this;
192 }
194
196
199 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
200 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
201 template <typename TagsT = Aws::Vector<Tag>>
202 void SetTags(TagsT&& value) {
203 m_tagsHasBeenSet = true;
204 m_tags = std::forward<TagsT>(value);
205 }
206 template <typename TagsT = Aws::Vector<Tag>>
208 SetTags(std::forward<TagsT>(value));
209 return *this;
210 }
211 template <typename TagsT = Tag>
213 m_tagsHasBeenSet = true;
214 m_tags.emplace_back(std::forward<TagsT>(value));
215 return *this;
216 }
218
220
224 inline const Aws::String& GetSelectionRules() const { return m_selectionRules; }
225 inline bool SelectionRulesHasBeenSet() const { return m_selectionRulesHasBeenSet; }
226 template <typename SelectionRulesT = Aws::String>
227 void SetSelectionRules(SelectionRulesT&& value) {
228 m_selectionRulesHasBeenSet = true;
229 m_selectionRules = std::forward<SelectionRulesT>(value);
230 }
231 template <typename SelectionRulesT = Aws::String>
233 SetSelectionRules(std::forward<SelectionRulesT>(value));
234 return *this;
235 }
237 private:
238 Aws::String m_dataMigrationName;
239
240 Aws::String m_migrationProjectIdentifier;
241
243
244 Aws::String m_serviceAccessRoleArn;
245
246 bool m_enableCloudwatchLogs{false};
247
248 Aws::Vector<SourceDataSetting> m_sourceDataSettings;
249
250 Aws::Vector<TargetDataSetting> m_targetDataSettings;
251
252 int m_numberOfJobs{0};
253
254 Aws::Vector<Tag> m_tags;
255
256 Aws::String m_selectionRules;
257 bool m_dataMigrationNameHasBeenSet = false;
258 bool m_migrationProjectIdentifierHasBeenSet = false;
259 bool m_dataMigrationTypeHasBeenSet = false;
260 bool m_serviceAccessRoleArnHasBeenSet = false;
261 bool m_enableCloudwatchLogsHasBeenSet = false;
262 bool m_sourceDataSettingsHasBeenSet = false;
263 bool m_targetDataSettingsHasBeenSet = false;
264 bool m_numberOfJobsHasBeenSet = false;
265 bool m_tagsHasBeenSet = false;
266 bool m_selectionRulesHasBeenSet = false;
267};
268
269} // namespace Model
270} // namespace DatabaseMigrationService
271} // namespace Aws
AWS_DATABASEMIGRATIONSERVICE_API CreateDataMigrationRequest()=default
CreateDataMigrationRequest & WithServiceAccessRoleArn(ServiceAccessRoleArnT &&value)
const Aws::Vector< SourceDataSetting > & GetSourceDataSettings() const
CreateDataMigrationRequest & AddTargetDataSettings(TargetDataSettingsT &&value)
const Aws::Vector< TargetDataSetting > & GetTargetDataSettings() const
CreateDataMigrationRequest & WithDataMigrationName(DataMigrationNameT &&value)
AWS_DATABASEMIGRATIONSERVICE_API Aws::String SerializePayload() const override
CreateDataMigrationRequest & WithTargetDataSettings(TargetDataSettingsT &&value)
AWS_DATABASEMIGRATIONSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateDataMigrationRequest & WithMigrationProjectIdentifier(MigrationProjectIdentifierT &&value)
CreateDataMigrationRequest & WithSelectionRules(SelectionRulesT &&value)
CreateDataMigrationRequest & WithDataMigrationType(MigrationTypeValue value)
CreateDataMigrationRequest & AddSourceDataSettings(SourceDataSettingsT &&value)
CreateDataMigrationRequest & WithSourceDataSettings(SourceDataSettingsT &&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