AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateReplicationTaskRequest.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/dms/model/MigrationTypeValue.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/dms/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace DatabaseMigrationService
19{
20namespace Model
21{
22
29 {
30 public:
31 AWS_DATABASEMIGRATIONSERVICE_API CreateReplicationTaskRequest();
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateReplicationTask"; }
38
39 AWS_DATABASEMIGRATIONSERVICE_API Aws::String SerializePayload() const override;
40
41 AWS_DATABASEMIGRATIONSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
42
43
45
51 inline const Aws::String& GetReplicationTaskIdentifier() const{ return m_replicationTaskIdentifier; }
52 inline bool ReplicationTaskIdentifierHasBeenSet() const { return m_replicationTaskIdentifierHasBeenSet; }
53 inline void SetReplicationTaskIdentifier(const Aws::String& value) { m_replicationTaskIdentifierHasBeenSet = true; m_replicationTaskIdentifier = value; }
54 inline void SetReplicationTaskIdentifier(Aws::String&& value) { m_replicationTaskIdentifierHasBeenSet = true; m_replicationTaskIdentifier = std::move(value); }
55 inline void SetReplicationTaskIdentifier(const char* value) { m_replicationTaskIdentifierHasBeenSet = true; m_replicationTaskIdentifier.assign(value); }
60
62
66 inline const Aws::String& GetSourceEndpointArn() const{ return m_sourceEndpointArn; }
67 inline bool SourceEndpointArnHasBeenSet() const { return m_sourceEndpointArnHasBeenSet; }
68 inline void SetSourceEndpointArn(const Aws::String& value) { m_sourceEndpointArnHasBeenSet = true; m_sourceEndpointArn = value; }
69 inline void SetSourceEndpointArn(Aws::String&& value) { m_sourceEndpointArnHasBeenSet = true; m_sourceEndpointArn = std::move(value); }
70 inline void SetSourceEndpointArn(const char* value) { m_sourceEndpointArnHasBeenSet = true; m_sourceEndpointArn.assign(value); }
72 inline CreateReplicationTaskRequest& WithSourceEndpointArn(Aws::String&& value) { SetSourceEndpointArn(std::move(value)); return *this;}
73 inline CreateReplicationTaskRequest& WithSourceEndpointArn(const char* value) { SetSourceEndpointArn(value); return *this;}
75
77
81 inline const Aws::String& GetTargetEndpointArn() const{ return m_targetEndpointArn; }
82 inline bool TargetEndpointArnHasBeenSet() const { return m_targetEndpointArnHasBeenSet; }
83 inline void SetTargetEndpointArn(const Aws::String& value) { m_targetEndpointArnHasBeenSet = true; m_targetEndpointArn = value; }
84 inline void SetTargetEndpointArn(Aws::String&& value) { m_targetEndpointArnHasBeenSet = true; m_targetEndpointArn = std::move(value); }
85 inline void SetTargetEndpointArn(const char* value) { m_targetEndpointArnHasBeenSet = true; m_targetEndpointArn.assign(value); }
87 inline CreateReplicationTaskRequest& WithTargetEndpointArn(Aws::String&& value) { SetTargetEndpointArn(std::move(value)); return *this;}
88 inline CreateReplicationTaskRequest& WithTargetEndpointArn(const char* value) { SetTargetEndpointArn(value); return *this;}
90
92
95 inline const Aws::String& GetReplicationInstanceArn() const{ return m_replicationInstanceArn; }
96 inline bool ReplicationInstanceArnHasBeenSet() const { return m_replicationInstanceArnHasBeenSet; }
97 inline void SetReplicationInstanceArn(const Aws::String& value) { m_replicationInstanceArnHasBeenSet = true; m_replicationInstanceArn = value; }
98 inline void SetReplicationInstanceArn(Aws::String&& value) { m_replicationInstanceArnHasBeenSet = true; m_replicationInstanceArn = std::move(value); }
99 inline void SetReplicationInstanceArn(const char* value) { m_replicationInstanceArnHasBeenSet = true; m_replicationInstanceArn.assign(value); }
104
106
110 inline const MigrationTypeValue& GetMigrationType() const{ return m_migrationType; }
111 inline bool MigrationTypeHasBeenSet() const { return m_migrationTypeHasBeenSet; }
112 inline void SetMigrationType(const MigrationTypeValue& value) { m_migrationTypeHasBeenSet = true; m_migrationType = value; }
113 inline void SetMigrationType(MigrationTypeValue&& value) { m_migrationTypeHasBeenSet = true; m_migrationType = std::move(value); }
115 inline CreateReplicationTaskRequest& WithMigrationType(MigrationTypeValue&& value) { SetMigrationType(std::move(value)); return *this;}
117
119
125 inline const Aws::String& GetTableMappings() const{ return m_tableMappings; }
126 inline bool TableMappingsHasBeenSet() const { return m_tableMappingsHasBeenSet; }
127 inline void SetTableMappings(const Aws::String& value) { m_tableMappingsHasBeenSet = true; m_tableMappings = value; }
128 inline void SetTableMappings(Aws::String&& value) { m_tableMappingsHasBeenSet = true; m_tableMappings = std::move(value); }
129 inline void SetTableMappings(const char* value) { m_tableMappingsHasBeenSet = true; m_tableMappings.assign(value); }
130 inline CreateReplicationTaskRequest& WithTableMappings(const Aws::String& value) { SetTableMappings(value); return *this;}
131 inline CreateReplicationTaskRequest& WithTableMappings(Aws::String&& value) { SetTableMappings(std::move(value)); return *this;}
132 inline CreateReplicationTaskRequest& WithTableMappings(const char* value) { SetTableMappings(value); return *this;}
134
136
142 inline const Aws::String& GetReplicationTaskSettings() const{ return m_replicationTaskSettings; }
143 inline bool ReplicationTaskSettingsHasBeenSet() const { return m_replicationTaskSettingsHasBeenSet; }
144 inline void SetReplicationTaskSettings(const Aws::String& value) { m_replicationTaskSettingsHasBeenSet = true; m_replicationTaskSettings = value; }
145 inline void SetReplicationTaskSettings(Aws::String&& value) { m_replicationTaskSettingsHasBeenSet = true; m_replicationTaskSettings = std::move(value); }
146 inline void SetReplicationTaskSettings(const char* value) { m_replicationTaskSettingsHasBeenSet = true; m_replicationTaskSettings.assign(value); }
151
153
159 inline const Aws::Utils::DateTime& GetCdcStartTime() const{ return m_cdcStartTime; }
160 inline bool CdcStartTimeHasBeenSet() const { return m_cdcStartTimeHasBeenSet; }
161 inline void SetCdcStartTime(const Aws::Utils::DateTime& value) { m_cdcStartTimeHasBeenSet = true; m_cdcStartTime = value; }
162 inline void SetCdcStartTime(Aws::Utils::DateTime&& value) { m_cdcStartTimeHasBeenSet = true; m_cdcStartTime = std::move(value); }
164 inline CreateReplicationTaskRequest& WithCdcStartTime(Aws::Utils::DateTime&& value) { SetCdcStartTime(std::move(value)); return *this;}
166
168
185 inline const Aws::String& GetCdcStartPosition() const{ return m_cdcStartPosition; }
186 inline bool CdcStartPositionHasBeenSet() const { return m_cdcStartPositionHasBeenSet; }
187 inline void SetCdcStartPosition(const Aws::String& value) { m_cdcStartPositionHasBeenSet = true; m_cdcStartPosition = value; }
188 inline void SetCdcStartPosition(Aws::String&& value) { m_cdcStartPositionHasBeenSet = true; m_cdcStartPosition = std::move(value); }
189 inline void SetCdcStartPosition(const char* value) { m_cdcStartPositionHasBeenSet = true; m_cdcStartPosition.assign(value); }
191 inline CreateReplicationTaskRequest& WithCdcStartPosition(Aws::String&& value) { SetCdcStartPosition(std::move(value)); return *this;}
192 inline CreateReplicationTaskRequest& WithCdcStartPosition(const char* value) { SetCdcStartPosition(value); return *this;}
194
196
202 inline const Aws::String& GetCdcStopPosition() const{ return m_cdcStopPosition; }
203 inline bool CdcStopPositionHasBeenSet() const { return m_cdcStopPositionHasBeenSet; }
204 inline void SetCdcStopPosition(const Aws::String& value) { m_cdcStopPositionHasBeenSet = true; m_cdcStopPosition = value; }
205 inline void SetCdcStopPosition(Aws::String&& value) { m_cdcStopPositionHasBeenSet = true; m_cdcStopPosition = std::move(value); }
206 inline void SetCdcStopPosition(const char* value) { m_cdcStopPositionHasBeenSet = true; m_cdcStopPosition.assign(value); }
208 inline CreateReplicationTaskRequest& WithCdcStopPosition(Aws::String&& value) { SetCdcStopPosition(std::move(value)); return *this;}
209 inline CreateReplicationTaskRequest& WithCdcStopPosition(const char* value) { SetCdcStopPosition(value); return *this;}
211
213
216 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
217 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
218 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
219 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
220 inline CreateReplicationTaskRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
221 inline CreateReplicationTaskRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
222 inline CreateReplicationTaskRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
223 inline CreateReplicationTaskRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
225
227
234 inline const Aws::String& GetTaskData() const{ return m_taskData; }
235 inline bool TaskDataHasBeenSet() const { return m_taskDataHasBeenSet; }
236 inline void SetTaskData(const Aws::String& value) { m_taskDataHasBeenSet = true; m_taskData = value; }
237 inline void SetTaskData(Aws::String&& value) { m_taskDataHasBeenSet = true; m_taskData = std::move(value); }
238 inline void SetTaskData(const char* value) { m_taskDataHasBeenSet = true; m_taskData.assign(value); }
239 inline CreateReplicationTaskRequest& WithTaskData(const Aws::String& value) { SetTaskData(value); return *this;}
240 inline CreateReplicationTaskRequest& WithTaskData(Aws::String&& value) { SetTaskData(std::move(value)); return *this;}
241 inline CreateReplicationTaskRequest& WithTaskData(const char* value) { SetTaskData(value); return *this;}
243
245
257 inline const Aws::String& GetResourceIdentifier() const{ return m_resourceIdentifier; }
258 inline bool ResourceIdentifierHasBeenSet() const { return m_resourceIdentifierHasBeenSet; }
259 inline void SetResourceIdentifier(const Aws::String& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier = value; }
260 inline void SetResourceIdentifier(Aws::String&& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier = std::move(value); }
261 inline void SetResourceIdentifier(const char* value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.assign(value); }
264 inline CreateReplicationTaskRequest& WithResourceIdentifier(const char* value) { SetResourceIdentifier(value); return *this;}
266 private:
267
268 Aws::String m_replicationTaskIdentifier;
269 bool m_replicationTaskIdentifierHasBeenSet = false;
270
271 Aws::String m_sourceEndpointArn;
272 bool m_sourceEndpointArnHasBeenSet = false;
273
274 Aws::String m_targetEndpointArn;
275 bool m_targetEndpointArnHasBeenSet = false;
276
277 Aws::String m_replicationInstanceArn;
278 bool m_replicationInstanceArnHasBeenSet = false;
279
280 MigrationTypeValue m_migrationType;
281 bool m_migrationTypeHasBeenSet = false;
282
283 Aws::String m_tableMappings;
284 bool m_tableMappingsHasBeenSet = false;
285
286 Aws::String m_replicationTaskSettings;
287 bool m_replicationTaskSettingsHasBeenSet = false;
288
289 Aws::Utils::DateTime m_cdcStartTime;
290 bool m_cdcStartTimeHasBeenSet = false;
291
292 Aws::String m_cdcStartPosition;
293 bool m_cdcStartPositionHasBeenSet = false;
294
295 Aws::String m_cdcStopPosition;
296 bool m_cdcStopPositionHasBeenSet = false;
297
298 Aws::Vector<Tag> m_tags;
299 bool m_tagsHasBeenSet = false;
300
301 Aws::String m_taskData;
302 bool m_taskDataHasBeenSet = false;
303
304 Aws::String m_resourceIdentifier;
305 bool m_resourceIdentifierHasBeenSet = false;
306 };
307
308} // namespace Model
309} // namespace DatabaseMigrationService
310} // namespace Aws
CreateReplicationTaskRequest & WithCdcStartPosition(const Aws::String &value)
CreateReplicationTaskRequest & WithReplicationTaskIdentifier(const char *value)
CreateReplicationTaskRequest & WithReplicationInstanceArn(const Aws::String &value)
CreateReplicationTaskRequest & WithCdcStartTime(Aws::Utils::DateTime &&value)
CreateReplicationTaskRequest & WithTargetEndpointArn(const Aws::String &value)
CreateReplicationTaskRequest & WithCdcStopPosition(Aws::String &&value)
CreateReplicationTaskRequest & WithMigrationType(const MigrationTypeValue &value)
CreateReplicationTaskRequest & WithSourceEndpointArn(const char *value)
CreateReplicationTaskRequest & WithResourceIdentifier(const Aws::String &value)
CreateReplicationTaskRequest & WithReplicationTaskSettings(const char *value)
CreateReplicationTaskRequest & WithReplicationInstanceArn(Aws::String &&value)
CreateReplicationTaskRequest & WithCdcStartPosition(Aws::String &&value)
CreateReplicationTaskRequest & WithReplicationTaskIdentifier(Aws::String &&value)
CreateReplicationTaskRequest & WithReplicationTaskIdentifier(const Aws::String &value)
CreateReplicationTaskRequest & WithTags(Aws::Vector< Tag > &&value)
CreateReplicationTaskRequest & WithReplicationTaskSettings(const Aws::String &value)
CreateReplicationTaskRequest & WithTaskData(const Aws::String &value)
CreateReplicationTaskRequest & WithReplicationTaskSettings(Aws::String &&value)
CreateReplicationTaskRequest & WithSourceEndpointArn(Aws::String &&value)
CreateReplicationTaskRequest & WithCdcStopPosition(const Aws::String &value)
CreateReplicationTaskRequest & WithTags(const Aws::Vector< Tag > &value)
CreateReplicationTaskRequest & WithSourceEndpointArn(const Aws::String &value)
CreateReplicationTaskRequest & WithTargetEndpointArn(Aws::String &&value)
AWS_DATABASEMIGRATIONSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateReplicationTaskRequest & WithResourceIdentifier(Aws::String &&value)
CreateReplicationTaskRequest & WithTableMappings(const Aws::String &value)
CreateReplicationTaskRequest & WithReplicationInstanceArn(const char *value)
CreateReplicationTaskRequest & WithResourceIdentifier(const char *value)
CreateReplicationTaskRequest & WithMigrationType(MigrationTypeValue &&value)
CreateReplicationTaskRequest & WithCdcStartTime(const Aws::Utils::DateTime &value)
AWS_DATABASEMIGRATIONSERVICE_API Aws::String SerializePayload() const override
CreateReplicationTaskRequest & WithTableMappings(Aws::String &&value)
CreateReplicationTaskRequest & WithTargetEndpointArn(const char *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