AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateReplicationConfigRequest.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/ComputeConfig.h>
12#include <aws/dms/model/MigrationTypeValue.h>
13#include <aws/dms/model/Tag.h>
14
15#include <utility>
16
17namespace Aws {
18namespace DatabaseMigrationService {
19namespace Model {
20
27 public:
28 AWS_DATABASEMIGRATIONSERVICE_API CreateReplicationConfigRequest() = 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 "CreateReplicationConfig"; }
35
36 AWS_DATABASEMIGRATIONSERVICE_API Aws::String SerializePayload() const override;
37
38 AWS_DATABASEMIGRATIONSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
41
51 inline const Aws::String& GetReplicationConfigIdentifier() const { return m_replicationConfigIdentifier; }
52 inline bool ReplicationConfigIdentifierHasBeenSet() const { return m_replicationConfigIdentifierHasBeenSet; }
53 template <typename ReplicationConfigIdentifierT = Aws::String>
54 void SetReplicationConfigIdentifier(ReplicationConfigIdentifierT&& value) {
55 m_replicationConfigIdentifierHasBeenSet = true;
56 m_replicationConfigIdentifier = std::forward<ReplicationConfigIdentifierT>(value);
57 }
58 template <typename ReplicationConfigIdentifierT = Aws::String>
59 CreateReplicationConfigRequest& WithReplicationConfigIdentifier(ReplicationConfigIdentifierT&& value) {
60 SetReplicationConfigIdentifier(std::forward<ReplicationConfigIdentifierT>(value));
61 return *this;
62 }
64
66
70 inline const Aws::String& GetSourceEndpointArn() const { return m_sourceEndpointArn; }
71 inline bool SourceEndpointArnHasBeenSet() const { return m_sourceEndpointArnHasBeenSet; }
72 template <typename SourceEndpointArnT = Aws::String>
73 void SetSourceEndpointArn(SourceEndpointArnT&& value) {
74 m_sourceEndpointArnHasBeenSet = true;
75 m_sourceEndpointArn = std::forward<SourceEndpointArnT>(value);
76 }
77 template <typename SourceEndpointArnT = Aws::String>
79 SetSourceEndpointArn(std::forward<SourceEndpointArnT>(value));
80 return *this;
81 }
83
85
89 inline const Aws::String& GetTargetEndpointArn() const { return m_targetEndpointArn; }
90 inline bool TargetEndpointArnHasBeenSet() const { return m_targetEndpointArnHasBeenSet; }
91 template <typename TargetEndpointArnT = Aws::String>
92 void SetTargetEndpointArn(TargetEndpointArnT&& value) {
93 m_targetEndpointArnHasBeenSet = true;
94 m_targetEndpointArn = std::forward<TargetEndpointArnT>(value);
95 }
96 template <typename TargetEndpointArnT = Aws::String>
98 SetTargetEndpointArn(std::forward<TargetEndpointArnT>(value));
99 return *this;
100 }
102
104
107 inline const ComputeConfig& GetComputeConfig() const { return m_computeConfig; }
108 inline bool ComputeConfigHasBeenSet() const { return m_computeConfigHasBeenSet; }
109 template <typename ComputeConfigT = ComputeConfig>
110 void SetComputeConfig(ComputeConfigT&& value) {
111 m_computeConfigHasBeenSet = true;
112 m_computeConfig = std::forward<ComputeConfigT>(value);
113 }
114 template <typename ComputeConfigT = ComputeConfig>
116 SetComputeConfig(std::forward<ComputeConfigT>(value));
117 return *this;
118 }
120
122
128 inline MigrationTypeValue GetReplicationType() const { return m_replicationType; }
129 inline bool ReplicationTypeHasBeenSet() const { return m_replicationTypeHasBeenSet; }
131 m_replicationTypeHasBeenSet = true;
132 m_replicationType = value;
133 }
135 SetReplicationType(value);
136 return *this;
137 }
139
141
147 inline const Aws::String& GetTableMappings() const { return m_tableMappings; }
148 inline bool TableMappingsHasBeenSet() const { return m_tableMappingsHasBeenSet; }
149 template <typename TableMappingsT = Aws::String>
150 void SetTableMappings(TableMappingsT&& value) {
151 m_tableMappingsHasBeenSet = true;
152 m_tableMappings = std::forward<TableMappingsT>(value);
153 }
154 template <typename TableMappingsT = Aws::String>
156 SetTableMappings(std::forward<TableMappingsT>(value));
157 return *this;
158 }
160
162
168 inline const Aws::String& GetReplicationSettings() const { return m_replicationSettings; }
169 inline bool ReplicationSettingsHasBeenSet() const { return m_replicationSettingsHasBeenSet; }
170 template <typename ReplicationSettingsT = Aws::String>
171 void SetReplicationSettings(ReplicationSettingsT&& value) {
172 m_replicationSettingsHasBeenSet = true;
173 m_replicationSettings = std::forward<ReplicationSettingsT>(value);
174 }
175 template <typename ReplicationSettingsT = Aws::String>
177 SetReplicationSettings(std::forward<ReplicationSettingsT>(value));
178 return *this;
179 }
181
183
189 inline const Aws::String& GetSupplementalSettings() const { return m_supplementalSettings; }
190 inline bool SupplementalSettingsHasBeenSet() const { return m_supplementalSettingsHasBeenSet; }
191 template <typename SupplementalSettingsT = Aws::String>
192 void SetSupplementalSettings(SupplementalSettingsT&& value) {
193 m_supplementalSettingsHasBeenSet = true;
194 m_supplementalSettings = std::forward<SupplementalSettingsT>(value);
195 }
196 template <typename SupplementalSettingsT = Aws::String>
198 SetSupplementalSettings(std::forward<SupplementalSettingsT>(value));
199 return *this;
200 }
202
204
211 inline const Aws::String& GetResourceIdentifier() const { return m_resourceIdentifier; }
212 inline bool ResourceIdentifierHasBeenSet() const { return m_resourceIdentifierHasBeenSet; }
213 template <typename ResourceIdentifierT = Aws::String>
214 void SetResourceIdentifier(ResourceIdentifierT&& value) {
215 m_resourceIdentifierHasBeenSet = true;
216 m_resourceIdentifier = std::forward<ResourceIdentifierT>(value);
217 }
218 template <typename ResourceIdentifierT = Aws::String>
220 SetResourceIdentifier(std::forward<ResourceIdentifierT>(value));
221 return *this;
222 }
224
226
232 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
233 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
234 template <typename TagsT = Aws::Vector<Tag>>
235 void SetTags(TagsT&& value) {
236 m_tagsHasBeenSet = true;
237 m_tags = std::forward<TagsT>(value);
238 }
239 template <typename TagsT = Aws::Vector<Tag>>
241 SetTags(std::forward<TagsT>(value));
242 return *this;
243 }
244 template <typename TagsT = Tag>
246 m_tagsHasBeenSet = true;
247 m_tags.emplace_back(std::forward<TagsT>(value));
248 return *this;
249 }
251 private:
252 Aws::String m_replicationConfigIdentifier;
253
254 Aws::String m_sourceEndpointArn;
255
256 Aws::String m_targetEndpointArn;
257
258 ComputeConfig m_computeConfig;
259
261
262 Aws::String m_tableMappings;
263
264 Aws::String m_replicationSettings;
265
266 Aws::String m_supplementalSettings;
267
268 Aws::String m_resourceIdentifier;
269
270 Aws::Vector<Tag> m_tags;
271 bool m_replicationConfigIdentifierHasBeenSet = false;
272 bool m_sourceEndpointArnHasBeenSet = false;
273 bool m_targetEndpointArnHasBeenSet = false;
274 bool m_computeConfigHasBeenSet = false;
275 bool m_replicationTypeHasBeenSet = false;
276 bool m_tableMappingsHasBeenSet = false;
277 bool m_replicationSettingsHasBeenSet = false;
278 bool m_supplementalSettingsHasBeenSet = false;
279 bool m_resourceIdentifierHasBeenSet = false;
280 bool m_tagsHasBeenSet = false;
281};
282
283} // namespace Model
284} // namespace DatabaseMigrationService
285} // namespace Aws
CreateReplicationConfigRequest & WithTargetEndpointArn(TargetEndpointArnT &&value)
CreateReplicationConfigRequest & WithReplicationType(MigrationTypeValue value)
CreateReplicationConfigRequest & WithSourceEndpointArn(SourceEndpointArnT &&value)
CreateReplicationConfigRequest & WithReplicationConfigIdentifier(ReplicationConfigIdentifierT &&value)
AWS_DATABASEMIGRATIONSERVICE_API CreateReplicationConfigRequest()=default
CreateReplicationConfigRequest & WithSupplementalSettings(SupplementalSettingsT &&value)
AWS_DATABASEMIGRATIONSERVICE_API Aws::String SerializePayload() const override
CreateReplicationConfigRequest & WithResourceIdentifier(ResourceIdentifierT &&value)
CreateReplicationConfigRequest & WithTableMappings(TableMappingsT &&value)
CreateReplicationConfigRequest & WithComputeConfig(ComputeConfigT &&value)
CreateReplicationConfigRequest & WithReplicationSettings(ReplicationSettingsT &&value)
AWS_DATABASEMIGRATIONSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
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