AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateReplicationInstanceRequest.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/KerberosAuthenticationSettings.h>
12#include <aws/dms/model/Tag.h>
13
14#include <utility>
15
16namespace Aws {
17namespace DatabaseMigrationService {
18namespace Model {
19
26 public:
27 AWS_DATABASEMIGRATIONSERVICE_API CreateReplicationInstanceRequest() = default;
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 "CreateReplicationInstance"; }
34
35 AWS_DATABASEMIGRATIONSERVICE_API Aws::String SerializePayload() const override;
36
37 AWS_DATABASEMIGRATIONSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
40
47 inline const Aws::String& GetReplicationInstanceIdentifier() const { return m_replicationInstanceIdentifier; }
48 inline bool ReplicationInstanceIdentifierHasBeenSet() const { return m_replicationInstanceIdentifierHasBeenSet; }
49 template <typename ReplicationInstanceIdentifierT = Aws::String>
50 void SetReplicationInstanceIdentifier(ReplicationInstanceIdentifierT&& value) {
51 m_replicationInstanceIdentifierHasBeenSet = true;
52 m_replicationInstanceIdentifier = std::forward<ReplicationInstanceIdentifierT>(value);
53 }
54 template <typename ReplicationInstanceIdentifierT = Aws::String>
56 SetReplicationInstanceIdentifier(std::forward<ReplicationInstanceIdentifierT>(value));
57 return *this;
58 }
60
62
66 inline int GetAllocatedStorage() const { return m_allocatedStorage; }
67 inline bool AllocatedStorageHasBeenSet() const { return m_allocatedStorageHasBeenSet; }
68 inline void SetAllocatedStorage(int value) {
69 m_allocatedStorageHasBeenSet = true;
70 m_allocatedStorage = value;
71 }
74 return *this;
75 }
77
79
90 inline const Aws::String& GetReplicationInstanceClass() const { return m_replicationInstanceClass; }
91 inline bool ReplicationInstanceClassHasBeenSet() const { return m_replicationInstanceClassHasBeenSet; }
92 template <typename ReplicationInstanceClassT = Aws::String>
93 void SetReplicationInstanceClass(ReplicationInstanceClassT&& value) {
94 m_replicationInstanceClassHasBeenSet = true;
95 m_replicationInstanceClass = std::forward<ReplicationInstanceClassT>(value);
96 }
97 template <typename ReplicationInstanceClassT = Aws::String>
99 SetReplicationInstanceClass(std::forward<ReplicationInstanceClassT>(value));
100 return *this;
101 }
103
105
110 inline const Aws::Vector<Aws::String>& GetVpcSecurityGroupIds() const { return m_vpcSecurityGroupIds; }
111 inline bool VpcSecurityGroupIdsHasBeenSet() const { return m_vpcSecurityGroupIdsHasBeenSet; }
112 template <typename VpcSecurityGroupIdsT = Aws::Vector<Aws::String>>
113 void SetVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) {
114 m_vpcSecurityGroupIdsHasBeenSet = true;
115 m_vpcSecurityGroupIds = std::forward<VpcSecurityGroupIdsT>(value);
116 }
117 template <typename VpcSecurityGroupIdsT = Aws::Vector<Aws::String>>
119 SetVpcSecurityGroupIds(std::forward<VpcSecurityGroupIdsT>(value));
120 return *this;
121 }
122 template <typename VpcSecurityGroupIdsT = Aws::String>
124 m_vpcSecurityGroupIdsHasBeenSet = true;
125 m_vpcSecurityGroupIds.emplace_back(std::forward<VpcSecurityGroupIdsT>(value));
126 return *this;
127 }
129
131
136 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
137 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
138 template <typename AvailabilityZoneT = Aws::String>
139 void SetAvailabilityZone(AvailabilityZoneT&& value) {
140 m_availabilityZoneHasBeenSet = true;
141 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
142 }
143 template <typename AvailabilityZoneT = Aws::String>
145 SetAvailabilityZone(std::forward<AvailabilityZoneT>(value));
146 return *this;
147 }
149
151
154 inline const Aws::String& GetReplicationSubnetGroupIdentifier() const { return m_replicationSubnetGroupIdentifier; }
155 inline bool ReplicationSubnetGroupIdentifierHasBeenSet() const { return m_replicationSubnetGroupIdentifierHasBeenSet; }
156 template <typename ReplicationSubnetGroupIdentifierT = Aws::String>
157 void SetReplicationSubnetGroupIdentifier(ReplicationSubnetGroupIdentifierT&& value) {
158 m_replicationSubnetGroupIdentifierHasBeenSet = true;
159 m_replicationSubnetGroupIdentifier = std::forward<ReplicationSubnetGroupIdentifierT>(value);
160 }
161 template <typename ReplicationSubnetGroupIdentifierT = Aws::String>
162 CreateReplicationInstanceRequest& WithReplicationSubnetGroupIdentifier(ReplicationSubnetGroupIdentifierT&& value) {
163 SetReplicationSubnetGroupIdentifier(std::forward<ReplicationSubnetGroupIdentifierT>(value));
164 return *this;
165 }
167
169
177 inline const Aws::String& GetPreferredMaintenanceWindow() const { return m_preferredMaintenanceWindow; }
178 inline bool PreferredMaintenanceWindowHasBeenSet() const { return m_preferredMaintenanceWindowHasBeenSet; }
179 template <typename PreferredMaintenanceWindowT = Aws::String>
180 void SetPreferredMaintenanceWindow(PreferredMaintenanceWindowT&& value) {
181 m_preferredMaintenanceWindowHasBeenSet = true;
182 m_preferredMaintenanceWindow = std::forward<PreferredMaintenanceWindowT>(value);
183 }
184 template <typename PreferredMaintenanceWindowT = Aws::String>
186 SetPreferredMaintenanceWindow(std::forward<PreferredMaintenanceWindowT>(value));
187 return *this;
188 }
190
192
197 inline bool GetMultiAZ() const { return m_multiAZ; }
198 inline bool MultiAZHasBeenSet() const { return m_multiAZHasBeenSet; }
199 inline void SetMultiAZ(bool value) {
200 m_multiAZHasBeenSet = true;
201 m_multiAZ = value;
202 }
204 SetMultiAZ(value);
205 return *this;
206 }
208
210
215 inline const Aws::String& GetEngineVersion() const { return m_engineVersion; }
216 inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
217 template <typename EngineVersionT = Aws::String>
218 void SetEngineVersion(EngineVersionT&& value) {
219 m_engineVersionHasBeenSet = true;
220 m_engineVersion = std::forward<EngineVersionT>(value);
221 }
222 template <typename EngineVersionT = Aws::String>
224 SetEngineVersion(std::forward<EngineVersionT>(value));
225 return *this;
226 }
228
230
235 inline bool GetAutoMinorVersionUpgrade() const { return m_autoMinorVersionUpgrade; }
236 inline bool AutoMinorVersionUpgradeHasBeenSet() const { return m_autoMinorVersionUpgradeHasBeenSet; }
237 inline void SetAutoMinorVersionUpgrade(bool value) {
238 m_autoMinorVersionUpgradeHasBeenSet = true;
239 m_autoMinorVersionUpgrade = value;
240 }
243 return *this;
244 }
246
248
251 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
252 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
253 template <typename TagsT = Aws::Vector<Tag>>
254 void SetTags(TagsT&& value) {
255 m_tagsHasBeenSet = true;
256 m_tags = std::forward<TagsT>(value);
257 }
258 template <typename TagsT = Aws::Vector<Tag>>
260 SetTags(std::forward<TagsT>(value));
261 return *this;
262 }
263 template <typename TagsT = Tag>
265 m_tagsHasBeenSet = true;
266 m_tags.emplace_back(std::forward<TagsT>(value));
267 return *this;
268 }
270
272
280 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
281 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
282 template <typename KmsKeyIdT = Aws::String>
283 void SetKmsKeyId(KmsKeyIdT&& value) {
284 m_kmsKeyIdHasBeenSet = true;
285 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
286 }
287 template <typename KmsKeyIdT = Aws::String>
289 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
290 return *this;
291 }
293
295
301 inline bool GetPubliclyAccessible() const { return m_publiclyAccessible; }
302 inline bool PubliclyAccessibleHasBeenSet() const { return m_publiclyAccessibleHasBeenSet; }
303 inline void SetPubliclyAccessible(bool value) {
304 m_publiclyAccessibleHasBeenSet = true;
305 m_publiclyAccessible = value;
306 }
309 return *this;
310 }
312
314
321 inline const Aws::String& GetDnsNameServers() const { return m_dnsNameServers; }
322 inline bool DnsNameServersHasBeenSet() const { return m_dnsNameServersHasBeenSet; }
323 template <typename DnsNameServersT = Aws::String>
324 void SetDnsNameServers(DnsNameServersT&& value) {
325 m_dnsNameServersHasBeenSet = true;
326 m_dnsNameServers = std::forward<DnsNameServersT>(value);
327 }
328 template <typename DnsNameServersT = Aws::String>
330 SetDnsNameServers(std::forward<DnsNameServersT>(value));
331 return *this;
332 }
334
336
348 inline const Aws::String& GetResourceIdentifier() const { return m_resourceIdentifier; }
349 inline bool ResourceIdentifierHasBeenSet() const { return m_resourceIdentifierHasBeenSet; }
350 template <typename ResourceIdentifierT = Aws::String>
351 void SetResourceIdentifier(ResourceIdentifierT&& value) {
352 m_resourceIdentifierHasBeenSet = true;
353 m_resourceIdentifier = std::forward<ResourceIdentifierT>(value);
354 }
355 template <typename ResourceIdentifierT = Aws::String>
357 SetResourceIdentifier(std::forward<ResourceIdentifierT>(value));
358 return *this;
359 }
361
363
368 inline const Aws::String& GetNetworkType() const { return m_networkType; }
369 inline bool NetworkTypeHasBeenSet() const { return m_networkTypeHasBeenSet; }
370 template <typename NetworkTypeT = Aws::String>
371 void SetNetworkType(NetworkTypeT&& value) {
372 m_networkTypeHasBeenSet = true;
373 m_networkType = std::forward<NetworkTypeT>(value);
374 }
375 template <typename NetworkTypeT = Aws::String>
377 SetNetworkType(std::forward<NetworkTypeT>(value));
378 return *this;
379 }
381
383
387 inline const KerberosAuthenticationSettings& GetKerberosAuthenticationSettings() const { return m_kerberosAuthenticationSettings; }
388 inline bool KerberosAuthenticationSettingsHasBeenSet() const { return m_kerberosAuthenticationSettingsHasBeenSet; }
389 template <typename KerberosAuthenticationSettingsT = KerberosAuthenticationSettings>
390 void SetKerberosAuthenticationSettings(KerberosAuthenticationSettingsT&& value) {
391 m_kerberosAuthenticationSettingsHasBeenSet = true;
392 m_kerberosAuthenticationSettings = std::forward<KerberosAuthenticationSettingsT>(value);
393 }
394 template <typename KerberosAuthenticationSettingsT = KerberosAuthenticationSettings>
396 SetKerberosAuthenticationSettings(std::forward<KerberosAuthenticationSettingsT>(value));
397 return *this;
398 }
400 private:
401 Aws::String m_replicationInstanceIdentifier;
402
403 int m_allocatedStorage{0};
404
405 Aws::String m_replicationInstanceClass;
406
407 Aws::Vector<Aws::String> m_vpcSecurityGroupIds;
408
409 Aws::String m_availabilityZone;
410
411 Aws::String m_replicationSubnetGroupIdentifier;
412
413 Aws::String m_preferredMaintenanceWindow;
414
415 bool m_multiAZ{false};
416
417 Aws::String m_engineVersion;
418
419 bool m_autoMinorVersionUpgrade{false};
420
421 Aws::Vector<Tag> m_tags;
422
423 Aws::String m_kmsKeyId;
424
425 bool m_publiclyAccessible{false};
426
427 Aws::String m_dnsNameServers;
428
429 Aws::String m_resourceIdentifier;
430
431 Aws::String m_networkType;
432
433 KerberosAuthenticationSettings m_kerberosAuthenticationSettings;
434 bool m_replicationInstanceIdentifierHasBeenSet = false;
435 bool m_allocatedStorageHasBeenSet = false;
436 bool m_replicationInstanceClassHasBeenSet = false;
437 bool m_vpcSecurityGroupIdsHasBeenSet = false;
438 bool m_availabilityZoneHasBeenSet = false;
439 bool m_replicationSubnetGroupIdentifierHasBeenSet = false;
440 bool m_preferredMaintenanceWindowHasBeenSet = false;
441 bool m_multiAZHasBeenSet = false;
442 bool m_engineVersionHasBeenSet = false;
443 bool m_autoMinorVersionUpgradeHasBeenSet = false;
444 bool m_tagsHasBeenSet = false;
445 bool m_kmsKeyIdHasBeenSet = false;
446 bool m_publiclyAccessibleHasBeenSet = false;
447 bool m_dnsNameServersHasBeenSet = false;
448 bool m_resourceIdentifierHasBeenSet = false;
449 bool m_networkTypeHasBeenSet = false;
450 bool m_kerberosAuthenticationSettingsHasBeenSet = false;
451};
452
453} // namespace Model
454} // namespace DatabaseMigrationService
455} // namespace Aws
AWS_DATABASEMIGRATIONSERVICE_API Aws::String SerializePayload() const override
AWS_DATABASEMIGRATIONSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateReplicationInstanceRequest & WithReplicationSubnetGroupIdentifier(ReplicationSubnetGroupIdentifierT &&value)
CreateReplicationInstanceRequest & WithEngineVersion(EngineVersionT &&value)
CreateReplicationInstanceRequest & WithReplicationInstanceIdentifier(ReplicationInstanceIdentifierT &&value)
CreateReplicationInstanceRequest & AddVpcSecurityGroupIds(VpcSecurityGroupIdsT &&value)
CreateReplicationInstanceRequest & WithVpcSecurityGroupIds(VpcSecurityGroupIdsT &&value)
CreateReplicationInstanceRequest & WithPreferredMaintenanceWindow(PreferredMaintenanceWindowT &&value)
CreateReplicationInstanceRequest & WithAvailabilityZone(AvailabilityZoneT &&value)
CreateReplicationInstanceRequest & WithReplicationInstanceClass(ReplicationInstanceClassT &&value)
CreateReplicationInstanceRequest & WithResourceIdentifier(ResourceIdentifierT &&value)
CreateReplicationInstanceRequest & WithDnsNameServers(DnsNameServersT &&value)
AWS_DATABASEMIGRATIONSERVICE_API CreateReplicationInstanceRequest()=default
CreateReplicationInstanceRequest & WithKerberosAuthenticationSettings(KerberosAuthenticationSettingsT &&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