AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateDataMigrationRequest.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/memory/stl/AWSVector.h>
12#include <aws/dms/model/SourceDataSetting.h>
13#include <aws/dms/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace DatabaseMigrationService
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_DATABASEMIGRATIONSERVICE_API CreateDataMigrationRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateDataMigration"; }
35
36 AWS_DATABASEMIGRATIONSERVICE_API Aws::String SerializePayload() const override;
37
38 AWS_DATABASEMIGRATIONSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
40
42
49 inline const Aws::String& GetDataMigrationName() const{ return m_dataMigrationName; }
50 inline bool DataMigrationNameHasBeenSet() const { return m_dataMigrationNameHasBeenSet; }
51 inline void SetDataMigrationName(const Aws::String& value) { m_dataMigrationNameHasBeenSet = true; m_dataMigrationName = value; }
52 inline void SetDataMigrationName(Aws::String&& value) { m_dataMigrationNameHasBeenSet = true; m_dataMigrationName = std::move(value); }
53 inline void SetDataMigrationName(const char* value) { m_dataMigrationNameHasBeenSet = true; m_dataMigrationName.assign(value); }
55 inline CreateDataMigrationRequest& WithDataMigrationName(Aws::String&& value) { SetDataMigrationName(std::move(value)); return *this;}
56 inline CreateDataMigrationRequest& WithDataMigrationName(const char* value) { SetDataMigrationName(value); return *this;}
58
60
63 inline const Aws::String& GetMigrationProjectIdentifier() const{ return m_migrationProjectIdentifier; }
64 inline bool MigrationProjectIdentifierHasBeenSet() const { return m_migrationProjectIdentifierHasBeenSet; }
65 inline void SetMigrationProjectIdentifier(const Aws::String& value) { m_migrationProjectIdentifierHasBeenSet = true; m_migrationProjectIdentifier = value; }
66 inline void SetMigrationProjectIdentifier(Aws::String&& value) { m_migrationProjectIdentifierHasBeenSet = true; m_migrationProjectIdentifier = std::move(value); }
67 inline void SetMigrationProjectIdentifier(const char* value) { m_migrationProjectIdentifierHasBeenSet = true; m_migrationProjectIdentifier.assign(value); }
72
74
78 inline const MigrationTypeValue& GetDataMigrationType() const{ return m_dataMigrationType; }
79 inline bool DataMigrationTypeHasBeenSet() const { return m_dataMigrationTypeHasBeenSet; }
80 inline void SetDataMigrationType(const MigrationTypeValue& value) { m_dataMigrationTypeHasBeenSet = true; m_dataMigrationType = value; }
81 inline void SetDataMigrationType(MigrationTypeValue&& value) { m_dataMigrationTypeHasBeenSet = true; m_dataMigrationType = std::move(value); }
85
87
91 inline const Aws::String& GetServiceAccessRoleArn() const{ return m_serviceAccessRoleArn; }
92 inline bool ServiceAccessRoleArnHasBeenSet() const { return m_serviceAccessRoleArnHasBeenSet; }
93 inline void SetServiceAccessRoleArn(const Aws::String& value) { m_serviceAccessRoleArnHasBeenSet = true; m_serviceAccessRoleArn = value; }
94 inline void SetServiceAccessRoleArn(Aws::String&& value) { m_serviceAccessRoleArnHasBeenSet = true; m_serviceAccessRoleArn = std::move(value); }
95 inline void SetServiceAccessRoleArn(const char* value) { m_serviceAccessRoleArnHasBeenSet = true; m_serviceAccessRoleArn.assign(value); }
98 inline CreateDataMigrationRequest& WithServiceAccessRoleArn(const char* value) { SetServiceAccessRoleArn(value); return *this;}
100
102
105 inline bool GetEnableCloudwatchLogs() const{ return m_enableCloudwatchLogs; }
106 inline bool EnableCloudwatchLogsHasBeenSet() const { return m_enableCloudwatchLogsHasBeenSet; }
107 inline void SetEnableCloudwatchLogs(bool value) { m_enableCloudwatchLogsHasBeenSet = true; m_enableCloudwatchLogs = value; }
110
112
115 inline const Aws::Vector<SourceDataSetting>& GetSourceDataSettings() const{ return m_sourceDataSettings; }
116 inline bool SourceDataSettingsHasBeenSet() const { return m_sourceDataSettingsHasBeenSet; }
117 inline void SetSourceDataSettings(const Aws::Vector<SourceDataSetting>& value) { m_sourceDataSettingsHasBeenSet = true; m_sourceDataSettings = value; }
118 inline void SetSourceDataSettings(Aws::Vector<SourceDataSetting>&& value) { m_sourceDataSettingsHasBeenSet = true; m_sourceDataSettings = std::move(value); }
121 inline CreateDataMigrationRequest& AddSourceDataSettings(const SourceDataSetting& value) { m_sourceDataSettingsHasBeenSet = true; m_sourceDataSettings.push_back(value); return *this; }
122 inline CreateDataMigrationRequest& AddSourceDataSettings(SourceDataSetting&& value) { m_sourceDataSettingsHasBeenSet = true; m_sourceDataSettings.push_back(std::move(value)); return *this; }
124
126
130 inline int GetNumberOfJobs() const{ return m_numberOfJobs; }
131 inline bool NumberOfJobsHasBeenSet() const { return m_numberOfJobsHasBeenSet; }
132 inline void SetNumberOfJobs(int value) { m_numberOfJobsHasBeenSet = true; m_numberOfJobs = value; }
133 inline CreateDataMigrationRequest& WithNumberOfJobs(int value) { SetNumberOfJobs(value); return *this;}
135
137
140 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
141 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
142 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
143 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
144 inline CreateDataMigrationRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
145 inline CreateDataMigrationRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
146 inline CreateDataMigrationRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
147 inline CreateDataMigrationRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
149
151
155 inline const Aws::String& GetSelectionRules() const{ return m_selectionRules; }
156 inline bool SelectionRulesHasBeenSet() const { return m_selectionRulesHasBeenSet; }
157 inline void SetSelectionRules(const Aws::String& value) { m_selectionRulesHasBeenSet = true; m_selectionRules = value; }
158 inline void SetSelectionRules(Aws::String&& value) { m_selectionRulesHasBeenSet = true; m_selectionRules = std::move(value); }
159 inline void SetSelectionRules(const char* value) { m_selectionRulesHasBeenSet = true; m_selectionRules.assign(value); }
160 inline CreateDataMigrationRequest& WithSelectionRules(const Aws::String& value) { SetSelectionRules(value); return *this;}
161 inline CreateDataMigrationRequest& WithSelectionRules(Aws::String&& value) { SetSelectionRules(std::move(value)); return *this;}
162 inline CreateDataMigrationRequest& WithSelectionRules(const char* value) { SetSelectionRules(value); return *this;}
164 private:
165
166 Aws::String m_dataMigrationName;
167 bool m_dataMigrationNameHasBeenSet = false;
168
169 Aws::String m_migrationProjectIdentifier;
170 bool m_migrationProjectIdentifierHasBeenSet = false;
171
172 MigrationTypeValue m_dataMigrationType;
173 bool m_dataMigrationTypeHasBeenSet = false;
174
175 Aws::String m_serviceAccessRoleArn;
176 bool m_serviceAccessRoleArnHasBeenSet = false;
177
178 bool m_enableCloudwatchLogs;
179 bool m_enableCloudwatchLogsHasBeenSet = false;
180
181 Aws::Vector<SourceDataSetting> m_sourceDataSettings;
182 bool m_sourceDataSettingsHasBeenSet = false;
183
184 int m_numberOfJobs;
185 bool m_numberOfJobsHasBeenSet = false;
186
187 Aws::Vector<Tag> m_tags;
188 bool m_tagsHasBeenSet = false;
189
190 Aws::String m_selectionRules;
191 bool m_selectionRulesHasBeenSet = false;
192 };
193
194} // namespace Model
195} // namespace DatabaseMigrationService
196} // namespace Aws
CreateDataMigrationRequest & WithDataMigrationType(MigrationTypeValue &&value)
CreateDataMigrationRequest & WithDataMigrationName(const Aws::String &value)
const Aws::Vector< SourceDataSetting > & GetSourceDataSettings() const
CreateDataMigrationRequest & WithServiceAccessRoleArn(const Aws::String &value)
CreateDataMigrationRequest & WithServiceAccessRoleArn(const char *value)
CreateDataMigrationRequest & WithDataMigrationType(const MigrationTypeValue &value)
CreateDataMigrationRequest & AddSourceDataSettings(const SourceDataSetting &value)
void SetSourceDataSettings(const Aws::Vector< SourceDataSetting > &value)
CreateDataMigrationRequest & WithSelectionRules(const Aws::String &value)
CreateDataMigrationRequest & WithDataMigrationName(Aws::String &&value)
CreateDataMigrationRequest & WithMigrationProjectIdentifier(Aws::String &&value)
CreateDataMigrationRequest & AddSourceDataSettings(SourceDataSetting &&value)
CreateDataMigrationRequest & WithDataMigrationName(const char *value)
CreateDataMigrationRequest & WithSourceDataSettings(const Aws::Vector< SourceDataSetting > &value)
AWS_DATABASEMIGRATIONSERVICE_API Aws::String SerializePayload() const override
CreateDataMigrationRequest & WithSelectionRules(Aws::String &&value)
AWS_DATABASEMIGRATIONSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateDataMigrationRequest & WithMigrationProjectIdentifier(const Aws::String &value)
CreateDataMigrationRequest & WithTags(Aws::Vector< Tag > &&value)
CreateDataMigrationRequest & WithSourceDataSettings(Aws::Vector< SourceDataSetting > &&value)
CreateDataMigrationRequest & WithMigrationProjectIdentifier(const char *value)
CreateDataMigrationRequest & WithTags(const Aws::Vector< Tag > &value)
CreateDataMigrationRequest & WithServiceAccessRoleArn(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