AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateReplicationInstanceRequest.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/dms/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace DatabaseMigrationService
17{
18namespace Model
19{
20
27 {
28 public:
29 AWS_DATABASEMIGRATIONSERVICE_API CreateReplicationInstanceRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateReplicationInstance"; }
36
37 AWS_DATABASEMIGRATIONSERVICE_API Aws::String SerializePayload() const override;
38
39 AWS_DATABASEMIGRATIONSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40
41
43
50 inline const Aws::String& GetReplicationInstanceIdentifier() const{ return m_replicationInstanceIdentifier; }
51 inline bool ReplicationInstanceIdentifierHasBeenSet() const { return m_replicationInstanceIdentifierHasBeenSet; }
52 inline void SetReplicationInstanceIdentifier(const Aws::String& value) { m_replicationInstanceIdentifierHasBeenSet = true; m_replicationInstanceIdentifier = value; }
53 inline void SetReplicationInstanceIdentifier(Aws::String&& value) { m_replicationInstanceIdentifierHasBeenSet = true; m_replicationInstanceIdentifier = std::move(value); }
54 inline void SetReplicationInstanceIdentifier(const char* value) { m_replicationInstanceIdentifierHasBeenSet = true; m_replicationInstanceIdentifier.assign(value); }
59
61
65 inline int GetAllocatedStorage() const{ return m_allocatedStorage; }
66 inline bool AllocatedStorageHasBeenSet() const { return m_allocatedStorageHasBeenSet; }
67 inline void SetAllocatedStorage(int value) { m_allocatedStorageHasBeenSet = true; m_allocatedStorage = value; }
70
72
83 inline const Aws::String& GetReplicationInstanceClass() const{ return m_replicationInstanceClass; }
84 inline bool ReplicationInstanceClassHasBeenSet() const { return m_replicationInstanceClassHasBeenSet; }
85 inline void SetReplicationInstanceClass(const Aws::String& value) { m_replicationInstanceClassHasBeenSet = true; m_replicationInstanceClass = value; }
86 inline void SetReplicationInstanceClass(Aws::String&& value) { m_replicationInstanceClassHasBeenSet = true; m_replicationInstanceClass = std::move(value); }
87 inline void SetReplicationInstanceClass(const char* value) { m_replicationInstanceClassHasBeenSet = true; m_replicationInstanceClass.assign(value); }
92
94
99 inline const Aws::Vector<Aws::String>& GetVpcSecurityGroupIds() const{ return m_vpcSecurityGroupIds; }
100 inline bool VpcSecurityGroupIdsHasBeenSet() const { return m_vpcSecurityGroupIdsHasBeenSet; }
101 inline void SetVpcSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds = value; }
102 inline void SetVpcSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds = std::move(value); }
105 inline CreateReplicationInstanceRequest& AddVpcSecurityGroupIds(const Aws::String& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(value); return *this; }
106 inline CreateReplicationInstanceRequest& AddVpcSecurityGroupIds(Aws::String&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(std::move(value)); return *this; }
107 inline CreateReplicationInstanceRequest& AddVpcSecurityGroupIds(const char* value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(value); return *this; }
109
111
116 inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
117 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
118 inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
119 inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
120 inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
123 inline CreateReplicationInstanceRequest& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
125
127
130 inline const Aws::String& GetReplicationSubnetGroupIdentifier() const{ return m_replicationSubnetGroupIdentifier; }
131 inline bool ReplicationSubnetGroupIdentifierHasBeenSet() const { return m_replicationSubnetGroupIdentifierHasBeenSet; }
132 inline void SetReplicationSubnetGroupIdentifier(const Aws::String& value) { m_replicationSubnetGroupIdentifierHasBeenSet = true; m_replicationSubnetGroupIdentifier = value; }
133 inline void SetReplicationSubnetGroupIdentifier(Aws::String&& value) { m_replicationSubnetGroupIdentifierHasBeenSet = true; m_replicationSubnetGroupIdentifier = std::move(value); }
134 inline void SetReplicationSubnetGroupIdentifier(const char* value) { m_replicationSubnetGroupIdentifierHasBeenSet = true; m_replicationSubnetGroupIdentifier.assign(value); }
139
141
149 inline const Aws::String& GetPreferredMaintenanceWindow() const{ return m_preferredMaintenanceWindow; }
150 inline bool PreferredMaintenanceWindowHasBeenSet() const { return m_preferredMaintenanceWindowHasBeenSet; }
151 inline void SetPreferredMaintenanceWindow(const Aws::String& value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow = value; }
152 inline void SetPreferredMaintenanceWindow(Aws::String&& value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow = std::move(value); }
153 inline void SetPreferredMaintenanceWindow(const char* value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow.assign(value); }
158
160
165 inline bool GetMultiAZ() const{ return m_multiAZ; }
166 inline bool MultiAZHasBeenSet() const { return m_multiAZHasBeenSet; }
167 inline void SetMultiAZ(bool value) { m_multiAZHasBeenSet = true; m_multiAZ = value; }
168 inline CreateReplicationInstanceRequest& WithMultiAZ(bool value) { SetMultiAZ(value); return *this;}
170
172
177 inline const Aws::String& GetEngineVersion() const{ return m_engineVersion; }
178 inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
179 inline void SetEngineVersion(const Aws::String& value) { m_engineVersionHasBeenSet = true; m_engineVersion = value; }
180 inline void SetEngineVersion(Aws::String&& value) { m_engineVersionHasBeenSet = true; m_engineVersion = std::move(value); }
181 inline void SetEngineVersion(const char* value) { m_engineVersionHasBeenSet = true; m_engineVersion.assign(value); }
183 inline CreateReplicationInstanceRequest& WithEngineVersion(Aws::String&& value) { SetEngineVersion(std::move(value)); return *this;}
184 inline CreateReplicationInstanceRequest& WithEngineVersion(const char* value) { SetEngineVersion(value); return *this;}
186
188
193 inline bool GetAutoMinorVersionUpgrade() const{ return m_autoMinorVersionUpgrade; }
194 inline bool AutoMinorVersionUpgradeHasBeenSet() const { return m_autoMinorVersionUpgradeHasBeenSet; }
195 inline void SetAutoMinorVersionUpgrade(bool value) { m_autoMinorVersionUpgradeHasBeenSet = true; m_autoMinorVersionUpgrade = value; }
198
200
203 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
204 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
205 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
206 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
207 inline CreateReplicationInstanceRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
208 inline CreateReplicationInstanceRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
209 inline CreateReplicationInstanceRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
210 inline CreateReplicationInstanceRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
212
214
222 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
223 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
224 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
225 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
226 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
227 inline CreateReplicationInstanceRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
228 inline CreateReplicationInstanceRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
229 inline CreateReplicationInstanceRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
231
233
239 inline bool GetPubliclyAccessible() const{ return m_publiclyAccessible; }
240 inline bool PubliclyAccessibleHasBeenSet() const { return m_publiclyAccessibleHasBeenSet; }
241 inline void SetPubliclyAccessible(bool value) { m_publiclyAccessibleHasBeenSet = true; m_publiclyAccessible = value; }
244
246
253 inline const Aws::String& GetDnsNameServers() const{ return m_dnsNameServers; }
254 inline bool DnsNameServersHasBeenSet() const { return m_dnsNameServersHasBeenSet; }
255 inline void SetDnsNameServers(const Aws::String& value) { m_dnsNameServersHasBeenSet = true; m_dnsNameServers = value; }
256 inline void SetDnsNameServers(Aws::String&& value) { m_dnsNameServersHasBeenSet = true; m_dnsNameServers = std::move(value); }
257 inline void SetDnsNameServers(const char* value) { m_dnsNameServersHasBeenSet = true; m_dnsNameServers.assign(value); }
259 inline CreateReplicationInstanceRequest& WithDnsNameServers(Aws::String&& value) { SetDnsNameServers(std::move(value)); return *this;}
260 inline CreateReplicationInstanceRequest& WithDnsNameServers(const char* value) { SetDnsNameServers(value); return *this;}
262
264
276 inline const Aws::String& GetResourceIdentifier() const{ return m_resourceIdentifier; }
277 inline bool ResourceIdentifierHasBeenSet() const { return m_resourceIdentifierHasBeenSet; }
278 inline void SetResourceIdentifier(const Aws::String& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier = value; }
279 inline void SetResourceIdentifier(Aws::String&& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier = std::move(value); }
280 inline void SetResourceIdentifier(const char* value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.assign(value); }
283 inline CreateReplicationInstanceRequest& WithResourceIdentifier(const char* value) { SetResourceIdentifier(value); return *this;}
285
287
292 inline const Aws::String& GetNetworkType() const{ return m_networkType; }
293 inline bool NetworkTypeHasBeenSet() const { return m_networkTypeHasBeenSet; }
294 inline void SetNetworkType(const Aws::String& value) { m_networkTypeHasBeenSet = true; m_networkType = value; }
295 inline void SetNetworkType(Aws::String&& value) { m_networkTypeHasBeenSet = true; m_networkType = std::move(value); }
296 inline void SetNetworkType(const char* value) { m_networkTypeHasBeenSet = true; m_networkType.assign(value); }
297 inline CreateReplicationInstanceRequest& WithNetworkType(const Aws::String& value) { SetNetworkType(value); return *this;}
298 inline CreateReplicationInstanceRequest& WithNetworkType(Aws::String&& value) { SetNetworkType(std::move(value)); return *this;}
299 inline CreateReplicationInstanceRequest& WithNetworkType(const char* value) { SetNetworkType(value); return *this;}
301 private:
302
303 Aws::String m_replicationInstanceIdentifier;
304 bool m_replicationInstanceIdentifierHasBeenSet = false;
305
306 int m_allocatedStorage;
307 bool m_allocatedStorageHasBeenSet = false;
308
309 Aws::String m_replicationInstanceClass;
310 bool m_replicationInstanceClassHasBeenSet = false;
311
312 Aws::Vector<Aws::String> m_vpcSecurityGroupIds;
313 bool m_vpcSecurityGroupIdsHasBeenSet = false;
314
315 Aws::String m_availabilityZone;
316 bool m_availabilityZoneHasBeenSet = false;
317
318 Aws::String m_replicationSubnetGroupIdentifier;
319 bool m_replicationSubnetGroupIdentifierHasBeenSet = false;
320
321 Aws::String m_preferredMaintenanceWindow;
322 bool m_preferredMaintenanceWindowHasBeenSet = false;
323
324 bool m_multiAZ;
325 bool m_multiAZHasBeenSet = false;
326
327 Aws::String m_engineVersion;
328 bool m_engineVersionHasBeenSet = false;
329
330 bool m_autoMinorVersionUpgrade;
331 bool m_autoMinorVersionUpgradeHasBeenSet = false;
332
333 Aws::Vector<Tag> m_tags;
334 bool m_tagsHasBeenSet = false;
335
336 Aws::String m_kmsKeyId;
337 bool m_kmsKeyIdHasBeenSet = false;
338
339 bool m_publiclyAccessible;
340 bool m_publiclyAccessibleHasBeenSet = false;
341
342 Aws::String m_dnsNameServers;
343 bool m_dnsNameServersHasBeenSet = false;
344
345 Aws::String m_resourceIdentifier;
346 bool m_resourceIdentifierHasBeenSet = false;
347
348 Aws::String m_networkType;
349 bool m_networkTypeHasBeenSet = false;
350 };
351
352} // namespace Model
353} // namespace DatabaseMigrationService
354} // namespace Aws
AWS_DATABASEMIGRATIONSERVICE_API Aws::String SerializePayload() const override
CreateReplicationInstanceRequest & WithPreferredMaintenanceWindow(const char *value)
AWS_DATABASEMIGRATIONSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateReplicationInstanceRequest & WithReplicationInstanceIdentifier(const char *value)
CreateReplicationInstanceRequest & WithEngineVersion(const Aws::String &value)
CreateReplicationInstanceRequest & WithReplicationSubnetGroupIdentifier(const Aws::String &value)
CreateReplicationInstanceRequest & WithPreferredMaintenanceWindow(Aws::String &&value)
CreateReplicationInstanceRequest & WithPreferredMaintenanceWindow(const Aws::String &value)
CreateReplicationInstanceRequest & WithNetworkType(const Aws::String &value)
CreateReplicationInstanceRequest & WithReplicationSubnetGroupIdentifier(Aws::String &&value)
CreateReplicationInstanceRequest & AddVpcSecurityGroupIds(Aws::String &&value)
CreateReplicationInstanceRequest & WithDnsNameServers(const Aws::String &value)
CreateReplicationInstanceRequest & WithResourceIdentifier(const Aws::String &value)
CreateReplicationInstanceRequest & WithTags(const Aws::Vector< Tag > &value)
CreateReplicationInstanceRequest & WithVpcSecurityGroupIds(Aws::Vector< Aws::String > &&value)
CreateReplicationInstanceRequest & WithAvailabilityZone(Aws::String &&value)
CreateReplicationInstanceRequest & WithVpcSecurityGroupIds(const Aws::Vector< Aws::String > &value)
CreateReplicationInstanceRequest & WithReplicationInstanceClass(const char *value)
CreateReplicationInstanceRequest & WithTags(Aws::Vector< Tag > &&value)
CreateReplicationInstanceRequest & WithReplicationInstanceIdentifier(Aws::String &&value)
CreateReplicationInstanceRequest & WithReplicationInstanceIdentifier(const Aws::String &value)
CreateReplicationInstanceRequest & WithResourceIdentifier(Aws::String &&value)
CreateReplicationInstanceRequest & WithReplicationSubnetGroupIdentifier(const char *value)
CreateReplicationInstanceRequest & WithKmsKeyId(const Aws::String &value)
CreateReplicationInstanceRequest & WithReplicationInstanceClass(const Aws::String &value)
CreateReplicationInstanceRequest & WithAvailabilityZone(const Aws::String &value)
CreateReplicationInstanceRequest & AddVpcSecurityGroupIds(const Aws::String &value)
CreateReplicationInstanceRequest & WithReplicationInstanceClass(Aws::String &&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