AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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 <utility>
14
15namespace Aws
16{
17namespace DatabaseMigrationService
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_DATABASEMIGRATIONSERVICE_API ModifyDataMigrationRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "ModifyDataMigration"; }
34
35 AWS_DATABASEMIGRATIONSERVICE_API Aws::String SerializePayload() const override;
36
37 AWS_DATABASEMIGRATIONSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
44 inline const Aws::String& GetDataMigrationIdentifier() const{ return m_dataMigrationIdentifier; }
45 inline bool DataMigrationIdentifierHasBeenSet() const { return m_dataMigrationIdentifierHasBeenSet; }
46 inline void SetDataMigrationIdentifier(const Aws::String& value) { m_dataMigrationIdentifierHasBeenSet = true; m_dataMigrationIdentifier = value; }
47 inline void SetDataMigrationIdentifier(Aws::String&& value) { m_dataMigrationIdentifierHasBeenSet = true; m_dataMigrationIdentifier = std::move(value); }
48 inline void SetDataMigrationIdentifier(const char* value) { m_dataMigrationIdentifierHasBeenSet = true; m_dataMigrationIdentifier.assign(value); }
51 inline ModifyDataMigrationRequest& WithDataMigrationIdentifier(const char* value) { SetDataMigrationIdentifier(value); return *this;}
53
55
58 inline const Aws::String& GetDataMigrationName() const{ return m_dataMigrationName; }
59 inline bool DataMigrationNameHasBeenSet() const { return m_dataMigrationNameHasBeenSet; }
60 inline void SetDataMigrationName(const Aws::String& value) { m_dataMigrationNameHasBeenSet = true; m_dataMigrationName = value; }
61 inline void SetDataMigrationName(Aws::String&& value) { m_dataMigrationNameHasBeenSet = true; m_dataMigrationName = std::move(value); }
62 inline void SetDataMigrationName(const char* value) { m_dataMigrationNameHasBeenSet = true; m_dataMigrationName.assign(value); }
64 inline ModifyDataMigrationRequest& WithDataMigrationName(Aws::String&& value) { SetDataMigrationName(std::move(value)); return *this;}
65 inline ModifyDataMigrationRequest& WithDataMigrationName(const char* value) { SetDataMigrationName(value); return *this;}
67
69
72 inline bool GetEnableCloudwatchLogs() const{ return m_enableCloudwatchLogs; }
73 inline bool EnableCloudwatchLogsHasBeenSet() const { return m_enableCloudwatchLogsHasBeenSet; }
74 inline void SetEnableCloudwatchLogs(bool value) { m_enableCloudwatchLogsHasBeenSet = true; m_enableCloudwatchLogs = value; }
77
79
82 inline const Aws::String& GetServiceAccessRoleArn() const{ return m_serviceAccessRoleArn; }
83 inline bool ServiceAccessRoleArnHasBeenSet() const { return m_serviceAccessRoleArnHasBeenSet; }
84 inline void SetServiceAccessRoleArn(const Aws::String& value) { m_serviceAccessRoleArnHasBeenSet = true; m_serviceAccessRoleArn = value; }
85 inline void SetServiceAccessRoleArn(Aws::String&& value) { m_serviceAccessRoleArnHasBeenSet = true; m_serviceAccessRoleArn = std::move(value); }
86 inline void SetServiceAccessRoleArn(const char* value) { m_serviceAccessRoleArnHasBeenSet = true; m_serviceAccessRoleArn.assign(value); }
89 inline ModifyDataMigrationRequest& WithServiceAccessRoleArn(const char* value) { SetServiceAccessRoleArn(value); return *this;}
91
93
96 inline const MigrationTypeValue& GetDataMigrationType() const{ return m_dataMigrationType; }
97 inline bool DataMigrationTypeHasBeenSet() const { return m_dataMigrationTypeHasBeenSet; }
98 inline void SetDataMigrationType(const MigrationTypeValue& value) { m_dataMigrationTypeHasBeenSet = true; m_dataMigrationType = value; }
99 inline void SetDataMigrationType(MigrationTypeValue&& value) { m_dataMigrationTypeHasBeenSet = true; m_dataMigrationType = std::move(value); }
103
105
109 inline const Aws::Vector<SourceDataSetting>& GetSourceDataSettings() const{ return m_sourceDataSettings; }
110 inline bool SourceDataSettingsHasBeenSet() const { return m_sourceDataSettingsHasBeenSet; }
111 inline void SetSourceDataSettings(const Aws::Vector<SourceDataSetting>& value) { m_sourceDataSettingsHasBeenSet = true; m_sourceDataSettings = value; }
112 inline void SetSourceDataSettings(Aws::Vector<SourceDataSetting>&& value) { m_sourceDataSettingsHasBeenSet = true; m_sourceDataSettings = std::move(value); }
115 inline ModifyDataMigrationRequest& AddSourceDataSettings(const SourceDataSetting& value) { m_sourceDataSettingsHasBeenSet = true; m_sourceDataSettings.push_back(value); return *this; }
116 inline ModifyDataMigrationRequest& AddSourceDataSettings(SourceDataSetting&& value) { m_sourceDataSettingsHasBeenSet = true; m_sourceDataSettings.push_back(std::move(value)); return *this; }
118
120
124 inline int GetNumberOfJobs() const{ return m_numberOfJobs; }
125 inline bool NumberOfJobsHasBeenSet() const { return m_numberOfJobsHasBeenSet; }
126 inline void SetNumberOfJobs(int value) { m_numberOfJobsHasBeenSet = true; m_numberOfJobs = value; }
127 inline ModifyDataMigrationRequest& WithNumberOfJobs(int value) { SetNumberOfJobs(value); return *this;}
129
131
135 inline const Aws::String& GetSelectionRules() const{ return m_selectionRules; }
136 inline bool SelectionRulesHasBeenSet() const { return m_selectionRulesHasBeenSet; }
137 inline void SetSelectionRules(const Aws::String& value) { m_selectionRulesHasBeenSet = true; m_selectionRules = value; }
138 inline void SetSelectionRules(Aws::String&& value) { m_selectionRulesHasBeenSet = true; m_selectionRules = std::move(value); }
139 inline void SetSelectionRules(const char* value) { m_selectionRulesHasBeenSet = true; m_selectionRules.assign(value); }
140 inline ModifyDataMigrationRequest& WithSelectionRules(const Aws::String& value) { SetSelectionRules(value); return *this;}
141 inline ModifyDataMigrationRequest& WithSelectionRules(Aws::String&& value) { SetSelectionRules(std::move(value)); return *this;}
142 inline ModifyDataMigrationRequest& WithSelectionRules(const char* value) { SetSelectionRules(value); return *this;}
144 private:
145
146 Aws::String m_dataMigrationIdentifier;
147 bool m_dataMigrationIdentifierHasBeenSet = false;
148
149 Aws::String m_dataMigrationName;
150 bool m_dataMigrationNameHasBeenSet = false;
151
152 bool m_enableCloudwatchLogs;
153 bool m_enableCloudwatchLogsHasBeenSet = false;
154
155 Aws::String m_serviceAccessRoleArn;
156 bool m_serviceAccessRoleArnHasBeenSet = false;
157
158 MigrationTypeValue m_dataMigrationType;
159 bool m_dataMigrationTypeHasBeenSet = false;
160
161 Aws::Vector<SourceDataSetting> m_sourceDataSettings;
162 bool m_sourceDataSettingsHasBeenSet = false;
163
164 int m_numberOfJobs;
165 bool m_numberOfJobsHasBeenSet = false;
166
167 Aws::String m_selectionRules;
168 bool m_selectionRulesHasBeenSet = false;
169 };
170
171} // namespace Model
172} // namespace DatabaseMigrationService
173} // namespace Aws
AWS_DATABASEMIGRATIONSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_DATABASEMIGRATIONSERVICE_API Aws::String SerializePayload() const override
ModifyDataMigrationRequest & WithSelectionRules(const Aws::String &value)
ModifyDataMigrationRequest & WithDataMigrationIdentifier(const Aws::String &value)
ModifyDataMigrationRequest & WithDataMigrationIdentifier(Aws::String &&value)
ModifyDataMigrationRequest & WithDataMigrationName(const char *value)
ModifyDataMigrationRequest & WithSelectionRules(Aws::String &&value)
ModifyDataMigrationRequest & WithDataMigrationName(const Aws::String &value)
ModifyDataMigrationRequest & WithDataMigrationIdentifier(const char *value)
ModifyDataMigrationRequest & WithDataMigrationType(MigrationTypeValue &&value)
ModifyDataMigrationRequest & AddSourceDataSettings(SourceDataSetting &&value)
ModifyDataMigrationRequest & WithServiceAccessRoleArn(const Aws::String &value)
ModifyDataMigrationRequest & WithSourceDataSettings(const Aws::Vector< SourceDataSetting > &value)
ModifyDataMigrationRequest & AddSourceDataSettings(const SourceDataSetting &value)
void SetSourceDataSettings(const Aws::Vector< SourceDataSetting > &value)
ModifyDataMigrationRequest & WithDataMigrationType(const MigrationTypeValue &value)
ModifyDataMigrationRequest & WithServiceAccessRoleArn(Aws::String &&value)
const Aws::Vector< SourceDataSetting > & GetSourceDataSettings() const
ModifyDataMigrationRequest & WithSourceDataSettings(Aws::Vector< SourceDataSetting > &&value)
ModifyDataMigrationRequest & WithDataMigrationName(Aws::String &&value)
ModifyDataMigrationRequest & WithServiceAccessRoleArn(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