AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
ComputeConfig.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/DatabaseMigrationService_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace DatabaseMigrationService {
21namespace Model {
22
30 public:
31 AWS_DATABASEMIGRATIONSERVICE_API ComputeConfig() = default;
32 AWS_DATABASEMIGRATIONSERVICE_API ComputeConfig(Aws::Utils::Json::JsonView jsonValue);
33 AWS_DATABASEMIGRATIONSERVICE_API ComputeConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
44 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
45 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
46 template <typename AvailabilityZoneT = Aws::String>
47 void SetAvailabilityZone(AvailabilityZoneT&& value) {
48 m_availabilityZoneHasBeenSet = true;
49 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
50 }
51 template <typename AvailabilityZoneT = Aws::String>
52 ComputeConfig& WithAvailabilityZone(AvailabilityZoneT&& value) {
53 SetAvailabilityZone(std::forward<AvailabilityZoneT>(value));
54 return *this;
55 }
57
59
66 inline const Aws::String& GetDnsNameServers() const { return m_dnsNameServers; }
67 inline bool DnsNameServersHasBeenSet() const { return m_dnsNameServersHasBeenSet; }
68 template <typename DnsNameServersT = Aws::String>
69 void SetDnsNameServers(DnsNameServersT&& value) {
70 m_dnsNameServersHasBeenSet = true;
71 m_dnsNameServers = std::forward<DnsNameServersT>(value);
72 }
73 template <typename DnsNameServersT = Aws::String>
74 ComputeConfig& WithDnsNameServers(DnsNameServersT&& value) {
75 SetDnsNameServers(std::forward<DnsNameServersT>(value));
76 return *this;
77 }
79
81
89 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
90 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
91 template <typename KmsKeyIdT = Aws::String>
92 void SetKmsKeyId(KmsKeyIdT&& value) {
93 m_kmsKeyIdHasBeenSet = true;
94 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
95 }
96 template <typename KmsKeyIdT = Aws::String>
97 ComputeConfig& WithKmsKeyId(KmsKeyIdT&& value) {
98 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
99 return *this;
100 }
102
104
112 inline int GetMaxCapacityUnits() const { return m_maxCapacityUnits; }
113 inline bool MaxCapacityUnitsHasBeenSet() const { return m_maxCapacityUnitsHasBeenSet; }
114 inline void SetMaxCapacityUnits(int value) {
115 m_maxCapacityUnitsHasBeenSet = true;
116 m_maxCapacityUnits = value;
117 }
119 SetMaxCapacityUnits(value);
120 return *this;
121 }
123
125
135 inline int GetMinCapacityUnits() const { return m_minCapacityUnits; }
136 inline bool MinCapacityUnitsHasBeenSet() const { return m_minCapacityUnitsHasBeenSet; }
137 inline void SetMinCapacityUnits(int value) {
138 m_minCapacityUnitsHasBeenSet = true;
139 m_minCapacityUnits = value;
140 }
142 SetMinCapacityUnits(value);
143 return *this;
144 }
146
148
153 inline bool GetMultiAZ() const { return m_multiAZ; }
154 inline bool MultiAZHasBeenSet() const { return m_multiAZHasBeenSet; }
155 inline void SetMultiAZ(bool value) {
156 m_multiAZHasBeenSet = true;
157 m_multiAZ = value;
158 }
159 inline ComputeConfig& WithMultiAZ(bool value) {
160 SetMultiAZ(value);
161 return *this;
162 }
164
166
176 inline const Aws::String& GetPreferredMaintenanceWindow() const { return m_preferredMaintenanceWindow; }
177 inline bool PreferredMaintenanceWindowHasBeenSet() const { return m_preferredMaintenanceWindowHasBeenSet; }
178 template <typename PreferredMaintenanceWindowT = Aws::String>
179 void SetPreferredMaintenanceWindow(PreferredMaintenanceWindowT&& value) {
180 m_preferredMaintenanceWindowHasBeenSet = true;
181 m_preferredMaintenanceWindow = std::forward<PreferredMaintenanceWindowT>(value);
182 }
183 template <typename PreferredMaintenanceWindowT = Aws::String>
184 ComputeConfig& WithPreferredMaintenanceWindow(PreferredMaintenanceWindowT&& value) {
185 SetPreferredMaintenanceWindow(std::forward<PreferredMaintenanceWindowT>(value));
186 return *this;
187 }
189
191
195 inline const Aws::String& GetReplicationSubnetGroupId() const { return m_replicationSubnetGroupId; }
196 inline bool ReplicationSubnetGroupIdHasBeenSet() const { return m_replicationSubnetGroupIdHasBeenSet; }
197 template <typename ReplicationSubnetGroupIdT = Aws::String>
198 void SetReplicationSubnetGroupId(ReplicationSubnetGroupIdT&& value) {
199 m_replicationSubnetGroupIdHasBeenSet = true;
200 m_replicationSubnetGroupId = std::forward<ReplicationSubnetGroupIdT>(value);
201 }
202 template <typename ReplicationSubnetGroupIdT = Aws::String>
203 ComputeConfig& WithReplicationSubnetGroupId(ReplicationSubnetGroupIdT&& value) {
204 SetReplicationSubnetGroupId(std::forward<ReplicationSubnetGroupIdT>(value));
205 return *this;
206 }
208
210
215 inline const Aws::Vector<Aws::String>& GetVpcSecurityGroupIds() const { return m_vpcSecurityGroupIds; }
216 inline bool VpcSecurityGroupIdsHasBeenSet() const { return m_vpcSecurityGroupIdsHasBeenSet; }
217 template <typename VpcSecurityGroupIdsT = Aws::Vector<Aws::String>>
218 void SetVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) {
219 m_vpcSecurityGroupIdsHasBeenSet = true;
220 m_vpcSecurityGroupIds = std::forward<VpcSecurityGroupIdsT>(value);
221 }
222 template <typename VpcSecurityGroupIdsT = Aws::Vector<Aws::String>>
223 ComputeConfig& WithVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) {
224 SetVpcSecurityGroupIds(std::forward<VpcSecurityGroupIdsT>(value));
225 return *this;
226 }
227 template <typename VpcSecurityGroupIdsT = Aws::String>
228 ComputeConfig& AddVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) {
229 m_vpcSecurityGroupIdsHasBeenSet = true;
230 m_vpcSecurityGroupIds.emplace_back(std::forward<VpcSecurityGroupIdsT>(value));
231 return *this;
232 }
234 private:
235 Aws::String m_availabilityZone;
236
237 Aws::String m_dnsNameServers;
238
239 Aws::String m_kmsKeyId;
240
241 int m_maxCapacityUnits{0};
242
243 int m_minCapacityUnits{0};
244
245 bool m_multiAZ{false};
246
247 Aws::String m_preferredMaintenanceWindow;
248
249 Aws::String m_replicationSubnetGroupId;
250
251 Aws::Vector<Aws::String> m_vpcSecurityGroupIds;
252 bool m_availabilityZoneHasBeenSet = false;
253 bool m_dnsNameServersHasBeenSet = false;
254 bool m_kmsKeyIdHasBeenSet = false;
255 bool m_maxCapacityUnitsHasBeenSet = false;
256 bool m_minCapacityUnitsHasBeenSet = false;
257 bool m_multiAZHasBeenSet = false;
258 bool m_preferredMaintenanceWindowHasBeenSet = false;
259 bool m_replicationSubnetGroupIdHasBeenSet = false;
260 bool m_vpcSecurityGroupIdsHasBeenSet = false;
261};
262
263} // namespace Model
264} // namespace DatabaseMigrationService
265} // namespace Aws
const Aws::String & GetPreferredMaintenanceWindow() const
ComputeConfig & WithDnsNameServers(DnsNameServersT &&value)
ComputeConfig & AddVpcSecurityGroupIds(VpcSecurityGroupIdsT &&value)
void SetReplicationSubnetGroupId(ReplicationSubnetGroupIdT &&value)
AWS_DATABASEMIGRATIONSERVICE_API ComputeConfig()=default
ComputeConfig & WithReplicationSubnetGroupId(ReplicationSubnetGroupIdT &&value)
ComputeConfig & WithAvailabilityZone(AvailabilityZoneT &&value)
ComputeConfig & WithPreferredMaintenanceWindow(PreferredMaintenanceWindowT &&value)
void SetVpcSecurityGroupIds(VpcSecurityGroupIdsT &&value)
ComputeConfig & WithVpcSecurityGroupIds(VpcSecurityGroupIdsT &&value)
AWS_DATABASEMIGRATIONSERVICE_API ComputeConfig(Aws::Utils::Json::JsonView jsonValue)
void SetAvailabilityZone(AvailabilityZoneT &&value)
void SetPreferredMaintenanceWindow(PreferredMaintenanceWindowT &&value)
const Aws::Vector< Aws::String > & GetVpcSecurityGroupIds() const
ComputeConfig & WithKmsKeyId(KmsKeyIdT &&value)
const Aws::String & GetReplicationSubnetGroupId() const
AWS_DATABASEMIGRATIONSERVICE_API ComputeConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
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