AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ComputeConfig.h
1
6#pragma once
7#include <aws/dms/DatabaseMigrationService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DatabaseMigrationService
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_DATABASEMIGRATIONSERVICE_API ComputeConfig();
37 AWS_DATABASEMIGRATIONSERVICE_API ComputeConfig(Aws::Utils::Json::JsonView jsonValue);
38 AWS_DATABASEMIGRATIONSERVICE_API ComputeConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
50 inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
51 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
52 inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
53 inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
54 inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
55 inline ComputeConfig& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
56 inline ComputeConfig& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
57 inline ComputeConfig& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
59
61
68 inline const Aws::String& GetDnsNameServers() const{ return m_dnsNameServers; }
69 inline bool DnsNameServersHasBeenSet() const { return m_dnsNameServersHasBeenSet; }
70 inline void SetDnsNameServers(const Aws::String& value) { m_dnsNameServersHasBeenSet = true; m_dnsNameServers = value; }
71 inline void SetDnsNameServers(Aws::String&& value) { m_dnsNameServersHasBeenSet = true; m_dnsNameServers = std::move(value); }
72 inline void SetDnsNameServers(const char* value) { m_dnsNameServersHasBeenSet = true; m_dnsNameServers.assign(value); }
73 inline ComputeConfig& WithDnsNameServers(const Aws::String& value) { SetDnsNameServers(value); return *this;}
74 inline ComputeConfig& WithDnsNameServers(Aws::String&& value) { SetDnsNameServers(std::move(value)); return *this;}
75 inline ComputeConfig& WithDnsNameServers(const char* value) { SetDnsNameServers(value); return *this;}
77
79
87 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
88 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
89 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
90 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
91 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
92 inline ComputeConfig& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
93 inline ComputeConfig& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
94 inline ComputeConfig& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
96
98
106 inline int GetMaxCapacityUnits() const{ return m_maxCapacityUnits; }
107 inline bool MaxCapacityUnitsHasBeenSet() const { return m_maxCapacityUnitsHasBeenSet; }
108 inline void SetMaxCapacityUnits(int value) { m_maxCapacityUnitsHasBeenSet = true; m_maxCapacityUnits = value; }
109 inline ComputeConfig& WithMaxCapacityUnits(int value) { SetMaxCapacityUnits(value); return *this;}
111
113
123 inline int GetMinCapacityUnits() const{ return m_minCapacityUnits; }
124 inline bool MinCapacityUnitsHasBeenSet() const { return m_minCapacityUnitsHasBeenSet; }
125 inline void SetMinCapacityUnits(int value) { m_minCapacityUnitsHasBeenSet = true; m_minCapacityUnits = value; }
126 inline ComputeConfig& WithMinCapacityUnits(int value) { SetMinCapacityUnits(value); return *this;}
128
130
135 inline bool GetMultiAZ() const{ return m_multiAZ; }
136 inline bool MultiAZHasBeenSet() const { return m_multiAZHasBeenSet; }
137 inline void SetMultiAZ(bool value) { m_multiAZHasBeenSet = true; m_multiAZ = value; }
138 inline ComputeConfig& WithMultiAZ(bool value) { SetMultiAZ(value); return *this;}
140
142
152 inline const Aws::String& GetPreferredMaintenanceWindow() const{ return m_preferredMaintenanceWindow; }
153 inline bool PreferredMaintenanceWindowHasBeenSet() const { return m_preferredMaintenanceWindowHasBeenSet; }
154 inline void SetPreferredMaintenanceWindow(const Aws::String& value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow = value; }
155 inline void SetPreferredMaintenanceWindow(Aws::String&& value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow = std::move(value); }
156 inline void SetPreferredMaintenanceWindow(const char* value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow.assign(value); }
159 inline ComputeConfig& WithPreferredMaintenanceWindow(const char* value) { SetPreferredMaintenanceWindow(value); return *this;}
161
163
167 inline const Aws::String& GetReplicationSubnetGroupId() const{ return m_replicationSubnetGroupId; }
168 inline bool ReplicationSubnetGroupIdHasBeenSet() const { return m_replicationSubnetGroupIdHasBeenSet; }
169 inline void SetReplicationSubnetGroupId(const Aws::String& value) { m_replicationSubnetGroupIdHasBeenSet = true; m_replicationSubnetGroupId = value; }
170 inline void SetReplicationSubnetGroupId(Aws::String&& value) { m_replicationSubnetGroupIdHasBeenSet = true; m_replicationSubnetGroupId = std::move(value); }
171 inline void SetReplicationSubnetGroupId(const char* value) { m_replicationSubnetGroupIdHasBeenSet = true; m_replicationSubnetGroupId.assign(value); }
173 inline ComputeConfig& WithReplicationSubnetGroupId(Aws::String&& value) { SetReplicationSubnetGroupId(std::move(value)); return *this;}
174 inline ComputeConfig& WithReplicationSubnetGroupId(const char* value) { SetReplicationSubnetGroupId(value); return *this;}
176
178
183 inline const Aws::Vector<Aws::String>& GetVpcSecurityGroupIds() const{ return m_vpcSecurityGroupIds; }
184 inline bool VpcSecurityGroupIdsHasBeenSet() const { return m_vpcSecurityGroupIdsHasBeenSet; }
185 inline void SetVpcSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds = value; }
186 inline void SetVpcSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds = std::move(value); }
189 inline ComputeConfig& AddVpcSecurityGroupIds(const Aws::String& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(value); return *this; }
190 inline ComputeConfig& AddVpcSecurityGroupIds(Aws::String&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(std::move(value)); return *this; }
191 inline ComputeConfig& AddVpcSecurityGroupIds(const char* value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(value); return *this; }
193 private:
194
195 Aws::String m_availabilityZone;
196 bool m_availabilityZoneHasBeenSet = false;
197
198 Aws::String m_dnsNameServers;
199 bool m_dnsNameServersHasBeenSet = false;
200
201 Aws::String m_kmsKeyId;
202 bool m_kmsKeyIdHasBeenSet = false;
203
204 int m_maxCapacityUnits;
205 bool m_maxCapacityUnitsHasBeenSet = false;
206
207 int m_minCapacityUnits;
208 bool m_minCapacityUnitsHasBeenSet = false;
209
210 bool m_multiAZ;
211 bool m_multiAZHasBeenSet = false;
212
213 Aws::String m_preferredMaintenanceWindow;
214 bool m_preferredMaintenanceWindowHasBeenSet = false;
215
216 Aws::String m_replicationSubnetGroupId;
217 bool m_replicationSubnetGroupIdHasBeenSet = false;
218
219 Aws::Vector<Aws::String> m_vpcSecurityGroupIds;
220 bool m_vpcSecurityGroupIdsHasBeenSet = false;
221 };
222
223} // namespace Model
224} // namespace DatabaseMigrationService
225} // namespace Aws
void SetPreferredMaintenanceWindow(const Aws::String &value)
ComputeConfig & WithReplicationSubnetGroupId(const Aws::String &value)
ComputeConfig & WithReplicationSubnetGroupId(Aws::String &&value)
const Aws::String & GetPreferredMaintenanceWindow() const
ComputeConfig & AddVpcSecurityGroupIds(const Aws::String &value)
ComputeConfig & WithPreferredMaintenanceWindow(const Aws::String &value)
AWS_DATABASEMIGRATIONSERVICE_API ComputeConfig()
ComputeConfig & WithVpcSecurityGroupIds(const Aws::Vector< Aws::String > &value)
ComputeConfig & AddVpcSecurityGroupIds(const char *value)
void SetVpcSecurityGroupIds(const Aws::Vector< Aws::String > &value)
ComputeConfig & WithReplicationSubnetGroupId(const char *value)
ComputeConfig & AddVpcSecurityGroupIds(Aws::String &&value)
ComputeConfig & WithPreferredMaintenanceWindow(Aws::String &&value)
ComputeConfig & WithDnsNameServers(const Aws::String &value)
ComputeConfig & WithAvailabilityZone(const char *value)
void SetAvailabilityZone(const Aws::String &value)
void SetVpcSecurityGroupIds(Aws::Vector< Aws::String > &&value)
ComputeConfig & WithDnsNameServers(Aws::String &&value)
ComputeConfig & WithAvailabilityZone(const Aws::String &value)
void SetReplicationSubnetGroupId(const Aws::String &value)
AWS_DATABASEMIGRATIONSERVICE_API ComputeConfig(Aws::Utils::Json::JsonView jsonValue)
ComputeConfig & WithPreferredMaintenanceWindow(const char *value)
ComputeConfig & WithKmsKeyId(Aws::String &&value)
const Aws::Vector< Aws::String > & GetVpcSecurityGroupIds() const
ComputeConfig & WithAvailabilityZone(Aws::String &&value)
ComputeConfig & WithDnsNameServers(const char *value)
ComputeConfig & WithKmsKeyId(const Aws::String &value)
const Aws::String & GetReplicationSubnetGroupId() const
void SetDnsNameServers(const Aws::String &value)
ComputeConfig & WithVpcSecurityGroupIds(Aws::Vector< Aws::String > &&value)
AWS_DATABASEMIGRATIONSERVICE_API ComputeConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
ComputeConfig & WithKmsKeyId(const char *value)
AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue