AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateReplicationConfigRequest.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/ComputeConfig.h>
11#include <aws/dms/model/MigrationTypeValue.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/dms/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace DatabaseMigrationService
19{
20namespace Model
21{
22
29 {
30 public:
31 AWS_DATABASEMIGRATIONSERVICE_API CreateReplicationConfigRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateReplicationConfig"; }
38
39 AWS_DATABASEMIGRATIONSERVICE_API Aws::String SerializePayload() const override;
40
41 AWS_DATABASEMIGRATIONSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
42
43
45
55 inline const Aws::String& GetReplicationConfigIdentifier() const { return m_replicationConfigIdentifier; }
56 inline bool ReplicationConfigIdentifierHasBeenSet() const { return m_replicationConfigIdentifierHasBeenSet; }
57 template<typename ReplicationConfigIdentifierT = Aws::String>
58 void SetReplicationConfigIdentifier(ReplicationConfigIdentifierT&& value) { m_replicationConfigIdentifierHasBeenSet = true; m_replicationConfigIdentifier = std::forward<ReplicationConfigIdentifierT>(value); }
59 template<typename ReplicationConfigIdentifierT = Aws::String>
60 CreateReplicationConfigRequest& WithReplicationConfigIdentifier(ReplicationConfigIdentifierT&& value) { SetReplicationConfigIdentifier(std::forward<ReplicationConfigIdentifierT>(value)); return *this;}
62
64
68 inline const Aws::String& GetSourceEndpointArn() const { return m_sourceEndpointArn; }
69 inline bool SourceEndpointArnHasBeenSet() const { return m_sourceEndpointArnHasBeenSet; }
70 template<typename SourceEndpointArnT = Aws::String>
71 void SetSourceEndpointArn(SourceEndpointArnT&& value) { m_sourceEndpointArnHasBeenSet = true; m_sourceEndpointArn = std::forward<SourceEndpointArnT>(value); }
72 template<typename SourceEndpointArnT = Aws::String>
73 CreateReplicationConfigRequest& WithSourceEndpointArn(SourceEndpointArnT&& value) { SetSourceEndpointArn(std::forward<SourceEndpointArnT>(value)); return *this;}
75
77
81 inline const Aws::String& GetTargetEndpointArn() const { return m_targetEndpointArn; }
82 inline bool TargetEndpointArnHasBeenSet() const { return m_targetEndpointArnHasBeenSet; }
83 template<typename TargetEndpointArnT = Aws::String>
84 void SetTargetEndpointArn(TargetEndpointArnT&& value) { m_targetEndpointArnHasBeenSet = true; m_targetEndpointArn = std::forward<TargetEndpointArnT>(value); }
85 template<typename TargetEndpointArnT = Aws::String>
86 CreateReplicationConfigRequest& WithTargetEndpointArn(TargetEndpointArnT&& value) { SetTargetEndpointArn(std::forward<TargetEndpointArnT>(value)); return *this;}
88
90
93 inline const ComputeConfig& GetComputeConfig() const { return m_computeConfig; }
94 inline bool ComputeConfigHasBeenSet() const { return m_computeConfigHasBeenSet; }
95 template<typename ComputeConfigT = ComputeConfig>
96 void SetComputeConfig(ComputeConfigT&& value) { m_computeConfigHasBeenSet = true; m_computeConfig = std::forward<ComputeConfigT>(value); }
97 template<typename ComputeConfigT = ComputeConfig>
98 CreateReplicationConfigRequest& WithComputeConfig(ComputeConfigT&& value) { SetComputeConfig(std::forward<ComputeConfigT>(value)); return *this;}
100
102
108 inline MigrationTypeValue GetReplicationType() const { return m_replicationType; }
109 inline bool ReplicationTypeHasBeenSet() const { return m_replicationTypeHasBeenSet; }
110 inline void SetReplicationType(MigrationTypeValue value) { m_replicationTypeHasBeenSet = true; m_replicationType = value; }
113
115
121 inline const Aws::String& GetTableMappings() const { return m_tableMappings; }
122 inline bool TableMappingsHasBeenSet() const { return m_tableMappingsHasBeenSet; }
123 template<typename TableMappingsT = Aws::String>
124 void SetTableMappings(TableMappingsT&& value) { m_tableMappingsHasBeenSet = true; m_tableMappings = std::forward<TableMappingsT>(value); }
125 template<typename TableMappingsT = Aws::String>
126 CreateReplicationConfigRequest& WithTableMappings(TableMappingsT&& value) { SetTableMappings(std::forward<TableMappingsT>(value)); return *this;}
128
130
136 inline const Aws::String& GetReplicationSettings() const { return m_replicationSettings; }
137 inline bool ReplicationSettingsHasBeenSet() const { return m_replicationSettingsHasBeenSet; }
138 template<typename ReplicationSettingsT = Aws::String>
139 void SetReplicationSettings(ReplicationSettingsT&& value) { m_replicationSettingsHasBeenSet = true; m_replicationSettings = std::forward<ReplicationSettingsT>(value); }
140 template<typename ReplicationSettingsT = Aws::String>
141 CreateReplicationConfigRequest& WithReplicationSettings(ReplicationSettingsT&& value) { SetReplicationSettings(std::forward<ReplicationSettingsT>(value)); return *this;}
143
145
151 inline const Aws::String& GetSupplementalSettings() const { return m_supplementalSettings; }
152 inline bool SupplementalSettingsHasBeenSet() const { return m_supplementalSettingsHasBeenSet; }
153 template<typename SupplementalSettingsT = Aws::String>
154 void SetSupplementalSettings(SupplementalSettingsT&& value) { m_supplementalSettingsHasBeenSet = true; m_supplementalSettings = std::forward<SupplementalSettingsT>(value); }
155 template<typename SupplementalSettingsT = Aws::String>
156 CreateReplicationConfigRequest& WithSupplementalSettings(SupplementalSettingsT&& value) { SetSupplementalSettings(std::forward<SupplementalSettingsT>(value)); return *this;}
158
160
167 inline const Aws::String& GetResourceIdentifier() const { return m_resourceIdentifier; }
168 inline bool ResourceIdentifierHasBeenSet() const { return m_resourceIdentifierHasBeenSet; }
169 template<typename ResourceIdentifierT = Aws::String>
170 void SetResourceIdentifier(ResourceIdentifierT&& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier = std::forward<ResourceIdentifierT>(value); }
171 template<typename ResourceIdentifierT = Aws::String>
172 CreateReplicationConfigRequest& WithResourceIdentifier(ResourceIdentifierT&& value) { SetResourceIdentifier(std::forward<ResourceIdentifierT>(value)); return *this;}
174
176
182 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
183 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
184 template<typename TagsT = Aws::Vector<Tag>>
185 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
186 template<typename TagsT = Aws::Vector<Tag>>
187 CreateReplicationConfigRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
188 template<typename TagsT = Tag>
189 CreateReplicationConfigRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
191 private:
192
193 Aws::String m_replicationConfigIdentifier;
194 bool m_replicationConfigIdentifierHasBeenSet = false;
195
196 Aws::String m_sourceEndpointArn;
197 bool m_sourceEndpointArnHasBeenSet = false;
198
199 Aws::String m_targetEndpointArn;
200 bool m_targetEndpointArnHasBeenSet = false;
201
202 ComputeConfig m_computeConfig;
203 bool m_computeConfigHasBeenSet = false;
204
206 bool m_replicationTypeHasBeenSet = false;
207
208 Aws::String m_tableMappings;
209 bool m_tableMappingsHasBeenSet = false;
210
211 Aws::String m_replicationSettings;
212 bool m_replicationSettingsHasBeenSet = false;
213
214 Aws::String m_supplementalSettings;
215 bool m_supplementalSettingsHasBeenSet = false;
216
217 Aws::String m_resourceIdentifier;
218 bool m_resourceIdentifierHasBeenSet = false;
219
220 Aws::Vector<Tag> m_tags;
221 bool m_tagsHasBeenSet = false;
222 };
223
224} // namespace Model
225} // namespace DatabaseMigrationService
226} // 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