AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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/TargetDataSetting.h>
14#include <aws/dms/model/Tag.h>
15#include <utility>
16
17namespace Aws
18{
19namespace DatabaseMigrationService
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_DATABASEMIGRATIONSERVICE_API CreateDataMigrationRequest() = 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 "CreateDataMigration"; }
36
37 AWS_DATABASEMIGRATIONSERVICE_API Aws::String SerializePayload() const override;
38
39 AWS_DATABASEMIGRATIONSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40
41
43
50 inline const Aws::String& GetDataMigrationName() const { return m_dataMigrationName; }
51 inline bool DataMigrationNameHasBeenSet() const { return m_dataMigrationNameHasBeenSet; }
52 template<typename DataMigrationNameT = Aws::String>
53 void SetDataMigrationName(DataMigrationNameT&& value) { m_dataMigrationNameHasBeenSet = true; m_dataMigrationName = std::forward<DataMigrationNameT>(value); }
54 template<typename DataMigrationNameT = Aws::String>
55 CreateDataMigrationRequest& WithDataMigrationName(DataMigrationNameT&& value) { SetDataMigrationName(std::forward<DataMigrationNameT>(value)); return *this;}
57
59
62 inline const Aws::String& GetMigrationProjectIdentifier() const { return m_migrationProjectIdentifier; }
63 inline bool MigrationProjectIdentifierHasBeenSet() const { return m_migrationProjectIdentifierHasBeenSet; }
64 template<typename MigrationProjectIdentifierT = Aws::String>
65 void SetMigrationProjectIdentifier(MigrationProjectIdentifierT&& value) { m_migrationProjectIdentifierHasBeenSet = true; m_migrationProjectIdentifier = std::forward<MigrationProjectIdentifierT>(value); }
66 template<typename MigrationProjectIdentifierT = Aws::String>
67 CreateDataMigrationRequest& WithMigrationProjectIdentifier(MigrationProjectIdentifierT&& value) { SetMigrationProjectIdentifier(std::forward<MigrationProjectIdentifierT>(value)); return *this;}
69
71
75 inline MigrationTypeValue GetDataMigrationType() const { return m_dataMigrationType; }
76 inline bool DataMigrationTypeHasBeenSet() const { return m_dataMigrationTypeHasBeenSet; }
77 inline void SetDataMigrationType(MigrationTypeValue value) { m_dataMigrationTypeHasBeenSet = true; m_dataMigrationType = value; }
80
82
86 inline const Aws::String& GetServiceAccessRoleArn() const { return m_serviceAccessRoleArn; }
87 inline bool ServiceAccessRoleArnHasBeenSet() const { return m_serviceAccessRoleArnHasBeenSet; }
88 template<typename ServiceAccessRoleArnT = Aws::String>
89 void SetServiceAccessRoleArn(ServiceAccessRoleArnT&& value) { m_serviceAccessRoleArnHasBeenSet = true; m_serviceAccessRoleArn = std::forward<ServiceAccessRoleArnT>(value); }
90 template<typename ServiceAccessRoleArnT = Aws::String>
91 CreateDataMigrationRequest& WithServiceAccessRoleArn(ServiceAccessRoleArnT&& value) { SetServiceAccessRoleArn(std::forward<ServiceAccessRoleArnT>(value)); return *this;}
93
95
98 inline bool GetEnableCloudwatchLogs() const { return m_enableCloudwatchLogs; }
99 inline bool EnableCloudwatchLogsHasBeenSet() const { return m_enableCloudwatchLogsHasBeenSet; }
100 inline void SetEnableCloudwatchLogs(bool value) { m_enableCloudwatchLogsHasBeenSet = true; m_enableCloudwatchLogs = value; }
103
105
108 inline const Aws::Vector<SourceDataSetting>& GetSourceDataSettings() const { return m_sourceDataSettings; }
109 inline bool SourceDataSettingsHasBeenSet() const { return m_sourceDataSettingsHasBeenSet; }
110 template<typename SourceDataSettingsT = Aws::Vector<SourceDataSetting>>
111 void SetSourceDataSettings(SourceDataSettingsT&& value) { m_sourceDataSettingsHasBeenSet = true; m_sourceDataSettings = std::forward<SourceDataSettingsT>(value); }
112 template<typename SourceDataSettingsT = Aws::Vector<SourceDataSetting>>
113 CreateDataMigrationRequest& WithSourceDataSettings(SourceDataSettingsT&& value) { SetSourceDataSettings(std::forward<SourceDataSettingsT>(value)); return *this;}
114 template<typename SourceDataSettingsT = SourceDataSetting>
115 CreateDataMigrationRequest& AddSourceDataSettings(SourceDataSettingsT&& value) { m_sourceDataSettingsHasBeenSet = true; m_sourceDataSettings.emplace_back(std::forward<SourceDataSettingsT>(value)); return *this; }
117
119
122 inline const Aws::Vector<TargetDataSetting>& GetTargetDataSettings() const { return m_targetDataSettings; }
123 inline bool TargetDataSettingsHasBeenSet() const { return m_targetDataSettingsHasBeenSet; }
124 template<typename TargetDataSettingsT = Aws::Vector<TargetDataSetting>>
125 void SetTargetDataSettings(TargetDataSettingsT&& value) { m_targetDataSettingsHasBeenSet = true; m_targetDataSettings = std::forward<TargetDataSettingsT>(value); }
126 template<typename TargetDataSettingsT = Aws::Vector<TargetDataSetting>>
127 CreateDataMigrationRequest& WithTargetDataSettings(TargetDataSettingsT&& value) { SetTargetDataSettings(std::forward<TargetDataSettingsT>(value)); return *this;}
128 template<typename TargetDataSettingsT = TargetDataSetting>
129 CreateDataMigrationRequest& AddTargetDataSettings(TargetDataSettingsT&& value) { m_targetDataSettingsHasBeenSet = true; m_targetDataSettings.emplace_back(std::forward<TargetDataSettingsT>(value)); return *this; }
131
133
137 inline int GetNumberOfJobs() const { return m_numberOfJobs; }
138 inline bool NumberOfJobsHasBeenSet() const { return m_numberOfJobsHasBeenSet; }
139 inline void SetNumberOfJobs(int value) { m_numberOfJobsHasBeenSet = true; m_numberOfJobs = value; }
140 inline CreateDataMigrationRequest& WithNumberOfJobs(int value) { SetNumberOfJobs(value); return *this;}
142
144
147 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
148 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
149 template<typename TagsT = Aws::Vector<Tag>>
150 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
151 template<typename TagsT = Aws::Vector<Tag>>
152 CreateDataMigrationRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
153 template<typename TagsT = Tag>
154 CreateDataMigrationRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
156
158
162 inline const Aws::String& GetSelectionRules() const { return m_selectionRules; }
163 inline bool SelectionRulesHasBeenSet() const { return m_selectionRulesHasBeenSet; }
164 template<typename SelectionRulesT = Aws::String>
165 void SetSelectionRules(SelectionRulesT&& value) { m_selectionRulesHasBeenSet = true; m_selectionRules = std::forward<SelectionRulesT>(value); }
166 template<typename SelectionRulesT = Aws::String>
167 CreateDataMigrationRequest& WithSelectionRules(SelectionRulesT&& value) { SetSelectionRules(std::forward<SelectionRulesT>(value)); return *this;}
169 private:
170
171 Aws::String m_dataMigrationName;
172 bool m_dataMigrationNameHasBeenSet = false;
173
174 Aws::String m_migrationProjectIdentifier;
175 bool m_migrationProjectIdentifierHasBeenSet = false;
176
178 bool m_dataMigrationTypeHasBeenSet = false;
179
180 Aws::String m_serviceAccessRoleArn;
181 bool m_serviceAccessRoleArnHasBeenSet = false;
182
183 bool m_enableCloudwatchLogs{false};
184 bool m_enableCloudwatchLogsHasBeenSet = false;
185
186 Aws::Vector<SourceDataSetting> m_sourceDataSettings;
187 bool m_sourceDataSettingsHasBeenSet = false;
188
189 Aws::Vector<TargetDataSetting> m_targetDataSettings;
190 bool m_targetDataSettingsHasBeenSet = false;
191
192 int m_numberOfJobs{0};
193 bool m_numberOfJobsHasBeenSet = false;
194
195 Aws::Vector<Tag> m_tags;
196 bool m_tagsHasBeenSet = false;
197
198 Aws::String m_selectionRules;
199 bool m_selectionRulesHasBeenSet = false;
200 };
201
202} // namespace Model
203} // namespace DatabaseMigrationService
204} // 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