AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ModifyDataMigrationRequest.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 <utility>
15
16namespace Aws
17{
18namespace DatabaseMigrationService
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_DATABASEMIGRATIONSERVICE_API ModifyDataMigrationRequest() = default;
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 "ModifyDataMigration"; }
35
36 AWS_DATABASEMIGRATIONSERVICE_API Aws::String SerializePayload() const override;
37
38 AWS_DATABASEMIGRATIONSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
40
42
45 inline const Aws::String& GetDataMigrationIdentifier() const { return m_dataMigrationIdentifier; }
46 inline bool DataMigrationIdentifierHasBeenSet() const { return m_dataMigrationIdentifierHasBeenSet; }
47 template<typename DataMigrationIdentifierT = Aws::String>
48 void SetDataMigrationIdentifier(DataMigrationIdentifierT&& value) { m_dataMigrationIdentifierHasBeenSet = true; m_dataMigrationIdentifier = std::forward<DataMigrationIdentifierT>(value); }
49 template<typename DataMigrationIdentifierT = Aws::String>
50 ModifyDataMigrationRequest& WithDataMigrationIdentifier(DataMigrationIdentifierT&& value) { SetDataMigrationIdentifier(std::forward<DataMigrationIdentifierT>(value)); return *this;}
52
54
57 inline const Aws::String& GetDataMigrationName() const { return m_dataMigrationName; }
58 inline bool DataMigrationNameHasBeenSet() const { return m_dataMigrationNameHasBeenSet; }
59 template<typename DataMigrationNameT = Aws::String>
60 void SetDataMigrationName(DataMigrationNameT&& value) { m_dataMigrationNameHasBeenSet = true; m_dataMigrationName = std::forward<DataMigrationNameT>(value); }
61 template<typename DataMigrationNameT = Aws::String>
62 ModifyDataMigrationRequest& WithDataMigrationName(DataMigrationNameT&& value) { SetDataMigrationName(std::forward<DataMigrationNameT>(value)); return *this;}
64
66
69 inline bool GetEnableCloudwatchLogs() const { return m_enableCloudwatchLogs; }
70 inline bool EnableCloudwatchLogsHasBeenSet() const { return m_enableCloudwatchLogsHasBeenSet; }
71 inline void SetEnableCloudwatchLogs(bool value) { m_enableCloudwatchLogsHasBeenSet = true; m_enableCloudwatchLogs = value; }
74
76
79 inline const Aws::String& GetServiceAccessRoleArn() const { return m_serviceAccessRoleArn; }
80 inline bool ServiceAccessRoleArnHasBeenSet() const { return m_serviceAccessRoleArnHasBeenSet; }
81 template<typename ServiceAccessRoleArnT = Aws::String>
82 void SetServiceAccessRoleArn(ServiceAccessRoleArnT&& value) { m_serviceAccessRoleArnHasBeenSet = true; m_serviceAccessRoleArn = std::forward<ServiceAccessRoleArnT>(value); }
83 template<typename ServiceAccessRoleArnT = Aws::String>
84 ModifyDataMigrationRequest& WithServiceAccessRoleArn(ServiceAccessRoleArnT&& value) { SetServiceAccessRoleArn(std::forward<ServiceAccessRoleArnT>(value)); return *this;}
86
88
91 inline MigrationTypeValue GetDataMigrationType() const { return m_dataMigrationType; }
92 inline bool DataMigrationTypeHasBeenSet() const { return m_dataMigrationTypeHasBeenSet; }
93 inline void SetDataMigrationType(MigrationTypeValue value) { m_dataMigrationTypeHasBeenSet = true; m_dataMigrationType = value; }
96
98
102 inline const Aws::Vector<SourceDataSetting>& GetSourceDataSettings() const { return m_sourceDataSettings; }
103 inline bool SourceDataSettingsHasBeenSet() const { return m_sourceDataSettingsHasBeenSet; }
104 template<typename SourceDataSettingsT = Aws::Vector<SourceDataSetting>>
105 void SetSourceDataSettings(SourceDataSettingsT&& value) { m_sourceDataSettingsHasBeenSet = true; m_sourceDataSettings = std::forward<SourceDataSettingsT>(value); }
106 template<typename SourceDataSettingsT = Aws::Vector<SourceDataSetting>>
107 ModifyDataMigrationRequest& WithSourceDataSettings(SourceDataSettingsT&& value) { SetSourceDataSettings(std::forward<SourceDataSettingsT>(value)); return *this;}
108 template<typename SourceDataSettingsT = SourceDataSetting>
109 ModifyDataMigrationRequest& AddSourceDataSettings(SourceDataSettingsT&& value) { m_sourceDataSettingsHasBeenSet = true; m_sourceDataSettings.emplace_back(std::forward<SourceDataSettingsT>(value)); return *this; }
111
113
117 inline const Aws::Vector<TargetDataSetting>& GetTargetDataSettings() const { return m_targetDataSettings; }
118 inline bool TargetDataSettingsHasBeenSet() const { return m_targetDataSettingsHasBeenSet; }
119 template<typename TargetDataSettingsT = Aws::Vector<TargetDataSetting>>
120 void SetTargetDataSettings(TargetDataSettingsT&& value) { m_targetDataSettingsHasBeenSet = true; m_targetDataSettings = std::forward<TargetDataSettingsT>(value); }
121 template<typename TargetDataSettingsT = Aws::Vector<TargetDataSetting>>
122 ModifyDataMigrationRequest& WithTargetDataSettings(TargetDataSettingsT&& value) { SetTargetDataSettings(std::forward<TargetDataSettingsT>(value)); return *this;}
123 template<typename TargetDataSettingsT = TargetDataSetting>
124 ModifyDataMigrationRequest& AddTargetDataSettings(TargetDataSettingsT&& value) { m_targetDataSettingsHasBeenSet = true; m_targetDataSettings.emplace_back(std::forward<TargetDataSettingsT>(value)); return *this; }
126
128
132 inline int GetNumberOfJobs() const { return m_numberOfJobs; }
133 inline bool NumberOfJobsHasBeenSet() const { return m_numberOfJobsHasBeenSet; }
134 inline void SetNumberOfJobs(int value) { m_numberOfJobsHasBeenSet = true; m_numberOfJobs = value; }
135 inline ModifyDataMigrationRequest& WithNumberOfJobs(int value) { SetNumberOfJobs(value); return *this;}
137
139
143 inline const Aws::String& GetSelectionRules() const { return m_selectionRules; }
144 inline bool SelectionRulesHasBeenSet() const { return m_selectionRulesHasBeenSet; }
145 template<typename SelectionRulesT = Aws::String>
146 void SetSelectionRules(SelectionRulesT&& value) { m_selectionRulesHasBeenSet = true; m_selectionRules = std::forward<SelectionRulesT>(value); }
147 template<typename SelectionRulesT = Aws::String>
148 ModifyDataMigrationRequest& WithSelectionRules(SelectionRulesT&& value) { SetSelectionRules(std::forward<SelectionRulesT>(value)); return *this;}
150 private:
151
152 Aws::String m_dataMigrationIdentifier;
153 bool m_dataMigrationIdentifierHasBeenSet = false;
154
155 Aws::String m_dataMigrationName;
156 bool m_dataMigrationNameHasBeenSet = false;
157
158 bool m_enableCloudwatchLogs{false};
159 bool m_enableCloudwatchLogsHasBeenSet = false;
160
161 Aws::String m_serviceAccessRoleArn;
162 bool m_serviceAccessRoleArnHasBeenSet = false;
163
165 bool m_dataMigrationTypeHasBeenSet = false;
166
167 Aws::Vector<SourceDataSetting> m_sourceDataSettings;
168 bool m_sourceDataSettingsHasBeenSet = false;
169
170 Aws::Vector<TargetDataSetting> m_targetDataSettings;
171 bool m_targetDataSettingsHasBeenSet = false;
172
173 int m_numberOfJobs{0};
174 bool m_numberOfJobsHasBeenSet = false;
175
176 Aws::String m_selectionRules;
177 bool m_selectionRulesHasBeenSet = false;
178 };
179
180} // namespace Model
181} // namespace DatabaseMigrationService
182} // 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