AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ModifyDataMigrationRequest.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/TargetDataSetting.h>
14
15#include <utility>
16
17namespace Aws {
18namespace DatabaseMigrationService {
19namespace Model {
20
24 public:
25 AWS_DATABASEMIGRATIONSERVICE_API ModifyDataMigrationRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "ModifyDataMigration"; }
32
33 AWS_DATABASEMIGRATIONSERVICE_API Aws::String SerializePayload() const override;
34
35 AWS_DATABASEMIGRATIONSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
38
41 inline const Aws::String& GetDataMigrationIdentifier() const { return m_dataMigrationIdentifier; }
42 inline bool DataMigrationIdentifierHasBeenSet() const { return m_dataMigrationIdentifierHasBeenSet; }
43 template <typename DataMigrationIdentifierT = Aws::String>
44 void SetDataMigrationIdentifier(DataMigrationIdentifierT&& value) {
45 m_dataMigrationIdentifierHasBeenSet = true;
46 m_dataMigrationIdentifier = std::forward<DataMigrationIdentifierT>(value);
47 }
48 template <typename DataMigrationIdentifierT = Aws::String>
49 ModifyDataMigrationRequest& WithDataMigrationIdentifier(DataMigrationIdentifierT&& value) {
50 SetDataMigrationIdentifier(std::forward<DataMigrationIdentifierT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetDataMigrationName() const { return m_dataMigrationName; }
60 inline bool DataMigrationNameHasBeenSet() const { return m_dataMigrationNameHasBeenSet; }
61 template <typename DataMigrationNameT = Aws::String>
62 void SetDataMigrationName(DataMigrationNameT&& value) {
63 m_dataMigrationNameHasBeenSet = true;
64 m_dataMigrationName = std::forward<DataMigrationNameT>(value);
65 }
66 template <typename DataMigrationNameT = Aws::String>
68 SetDataMigrationName(std::forward<DataMigrationNameT>(value));
69 return *this;
70 }
72
74
77 inline bool GetEnableCloudwatchLogs() const { return m_enableCloudwatchLogs; }
78 inline bool EnableCloudwatchLogsHasBeenSet() const { return m_enableCloudwatchLogsHasBeenSet; }
79 inline void SetEnableCloudwatchLogs(bool value) {
80 m_enableCloudwatchLogsHasBeenSet = true;
81 m_enableCloudwatchLogs = value;
82 }
85 return *this;
86 }
88
90
93 inline const Aws::String& GetServiceAccessRoleArn() const { return m_serviceAccessRoleArn; }
94 inline bool ServiceAccessRoleArnHasBeenSet() const { return m_serviceAccessRoleArnHasBeenSet; }
95 template <typename ServiceAccessRoleArnT = Aws::String>
96 void SetServiceAccessRoleArn(ServiceAccessRoleArnT&& value) {
97 m_serviceAccessRoleArnHasBeenSet = true;
98 m_serviceAccessRoleArn = std::forward<ServiceAccessRoleArnT>(value);
99 }
100 template <typename ServiceAccessRoleArnT = Aws::String>
101 ModifyDataMigrationRequest& WithServiceAccessRoleArn(ServiceAccessRoleArnT&& value) {
102 SetServiceAccessRoleArn(std::forward<ServiceAccessRoleArnT>(value));
103 return *this;
104 }
106
108
111 inline MigrationTypeValue GetDataMigrationType() const { return m_dataMigrationType; }
112 inline bool DataMigrationTypeHasBeenSet() const { return m_dataMigrationTypeHasBeenSet; }
114 m_dataMigrationTypeHasBeenSet = true;
115 m_dataMigrationType = value;
116 }
119 return *this;
120 }
122
124
128 inline const Aws::Vector<SourceDataSetting>& GetSourceDataSettings() const { return m_sourceDataSettings; }
129 inline bool SourceDataSettingsHasBeenSet() const { return m_sourceDataSettingsHasBeenSet; }
130 template <typename SourceDataSettingsT = Aws::Vector<SourceDataSetting>>
131 void SetSourceDataSettings(SourceDataSettingsT&& value) {
132 m_sourceDataSettingsHasBeenSet = true;
133 m_sourceDataSettings = std::forward<SourceDataSettingsT>(value);
134 }
135 template <typename SourceDataSettingsT = Aws::Vector<SourceDataSetting>>
137 SetSourceDataSettings(std::forward<SourceDataSettingsT>(value));
138 return *this;
139 }
140 template <typename SourceDataSettingsT = SourceDataSetting>
141 ModifyDataMigrationRequest& AddSourceDataSettings(SourceDataSettingsT&& value) {
142 m_sourceDataSettingsHasBeenSet = true;
143 m_sourceDataSettings.emplace_back(std::forward<SourceDataSettingsT>(value));
144 return *this;
145 }
147
149
153 inline const Aws::Vector<TargetDataSetting>& GetTargetDataSettings() const { return m_targetDataSettings; }
154 inline bool TargetDataSettingsHasBeenSet() const { return m_targetDataSettingsHasBeenSet; }
155 template <typename TargetDataSettingsT = Aws::Vector<TargetDataSetting>>
156 void SetTargetDataSettings(TargetDataSettingsT&& value) {
157 m_targetDataSettingsHasBeenSet = true;
158 m_targetDataSettings = std::forward<TargetDataSettingsT>(value);
159 }
160 template <typename TargetDataSettingsT = Aws::Vector<TargetDataSetting>>
162 SetTargetDataSettings(std::forward<TargetDataSettingsT>(value));
163 return *this;
164 }
165 template <typename TargetDataSettingsT = TargetDataSetting>
166 ModifyDataMigrationRequest& AddTargetDataSettings(TargetDataSettingsT&& value) {
167 m_targetDataSettingsHasBeenSet = true;
168 m_targetDataSettings.emplace_back(std::forward<TargetDataSettingsT>(value));
169 return *this;
170 }
172
174
178 inline int GetNumberOfJobs() const { return m_numberOfJobs; }
179 inline bool NumberOfJobsHasBeenSet() const { return m_numberOfJobsHasBeenSet; }
180 inline void SetNumberOfJobs(int value) {
181 m_numberOfJobsHasBeenSet = true;
182 m_numberOfJobs = value;
183 }
185 SetNumberOfJobs(value);
186 return *this;
187 }
189
191
195 inline const Aws::String& GetSelectionRules() const { return m_selectionRules; }
196 inline bool SelectionRulesHasBeenSet() const { return m_selectionRulesHasBeenSet; }
197 template <typename SelectionRulesT = Aws::String>
198 void SetSelectionRules(SelectionRulesT&& value) {
199 m_selectionRulesHasBeenSet = true;
200 m_selectionRules = std::forward<SelectionRulesT>(value);
201 }
202 template <typename SelectionRulesT = Aws::String>
204 SetSelectionRules(std::forward<SelectionRulesT>(value));
205 return *this;
206 }
208 private:
209 Aws::String m_dataMigrationIdentifier;
210
211 Aws::String m_dataMigrationName;
212
213 bool m_enableCloudwatchLogs{false};
214
215 Aws::String m_serviceAccessRoleArn;
216
218
219 Aws::Vector<SourceDataSetting> m_sourceDataSettings;
220
221 Aws::Vector<TargetDataSetting> m_targetDataSettings;
222
223 int m_numberOfJobs{0};
224
225 Aws::String m_selectionRules;
226 bool m_dataMigrationIdentifierHasBeenSet = false;
227 bool m_dataMigrationNameHasBeenSet = false;
228 bool m_enableCloudwatchLogsHasBeenSet = false;
229 bool m_serviceAccessRoleArnHasBeenSet = false;
230 bool m_dataMigrationTypeHasBeenSet = false;
231 bool m_sourceDataSettingsHasBeenSet = false;
232 bool m_targetDataSettingsHasBeenSet = false;
233 bool m_numberOfJobsHasBeenSet = false;
234 bool m_selectionRulesHasBeenSet = false;
235};
236
237} // namespace Model
238} // namespace DatabaseMigrationService
239} // namespace Aws
AWS_DATABASEMIGRATIONSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_DATABASEMIGRATIONSERVICE_API Aws::String SerializePayload() const override
ModifyDataMigrationRequest & WithDataMigrationIdentifier(DataMigrationIdentifierT &&value)
ModifyDataMigrationRequest & WithSelectionRules(SelectionRulesT &&value)
ModifyDataMigrationRequest & WithTargetDataSettings(TargetDataSettingsT &&value)
ModifyDataMigrationRequest & WithDataMigrationType(MigrationTypeValue value)
ModifyDataMigrationRequest & AddTargetDataSettings(TargetDataSettingsT &&value)
ModifyDataMigrationRequest & AddSourceDataSettings(SourceDataSettingsT &&value)
const Aws::Vector< TargetDataSetting > & GetTargetDataSettings() const
const Aws::Vector< SourceDataSetting > & GetSourceDataSettings() const
ModifyDataMigrationRequest & WithDataMigrationName(DataMigrationNameT &&value)
ModifyDataMigrationRequest & WithServiceAccessRoleArn(ServiceAccessRoleArnT &&value)
AWS_DATABASEMIGRATIONSERVICE_API ModifyDataMigrationRequest()=default
ModifyDataMigrationRequest & 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