AWS SDK for C++

AWS SDK for C++ Version 1.11.851

Loading...
Searching...
No Matches
UpdateReplicationConfigurationResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/mgn/Mgn_EXPORTS.h>
12#include <aws/mgn/model/InternetProtocol.h>
13#include <aws/mgn/model/ReplicationConfigurationDataPlaneRouting.h>
14#include <aws/mgn/model/ReplicationConfigurationDefaultLargeStagingDiskType.h>
15#include <aws/mgn/model/ReplicationConfigurationEbsEncryption.h>
16#include <aws/mgn/model/ReplicationConfigurationReplicatedDisk.h>
17#include <aws/mgn/model/StorageConfiguration.h>
18
19#include <utility>
20
21namespace Aws {
22template <typename RESULT_TYPE>
23class AmazonWebServiceResult;
24
25namespace Utils {
26namespace Json {
27class JsonValue;
28} // namespace Json
29} // namespace Utils
30namespace mgn {
31namespace Model {
33 public:
34 AWS_MGN_API UpdateReplicationConfigurationResult() = default;
37
39
42 inline const Aws::String& GetSourceServerID() const { return m_sourceServerID; }
43 template <typename SourceServerIDT = Aws::String>
44 void SetSourceServerID(SourceServerIDT&& value) {
45 m_sourceServerIDHasBeenSet = true;
46 m_sourceServerID = std::forward<SourceServerIDT>(value);
47 }
48 template <typename SourceServerIDT = Aws::String>
50 SetSourceServerID(std::forward<SourceServerIDT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetName() const { return m_name; }
60 template <typename NameT = Aws::String>
61 void SetName(NameT&& value) {
62 m_nameHasBeenSet = true;
63 m_name = std::forward<NameT>(value);
64 }
65 template <typename NameT = Aws::String>
67 SetName(std::forward<NameT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetStagingAreaSubnetId() const { return m_stagingAreaSubnetId; }
77 template <typename StagingAreaSubnetIdT = Aws::String>
78 void SetStagingAreaSubnetId(StagingAreaSubnetIdT&& value) {
79 m_stagingAreaSubnetIdHasBeenSet = true;
80 m_stagingAreaSubnetId = std::forward<StagingAreaSubnetIdT>(value);
81 }
82 template <typename StagingAreaSubnetIdT = Aws::String>
84 SetStagingAreaSubnetId(std::forward<StagingAreaSubnetIdT>(value));
85 return *this;
86 }
88
90
94 inline bool GetAssociateDefaultSecurityGroup() const { return m_associateDefaultSecurityGroup; }
95 inline void SetAssociateDefaultSecurityGroup(bool value) {
96 m_associateDefaultSecurityGroupHasBeenSet = true;
97 m_associateDefaultSecurityGroup = value;
98 }
101 return *this;
102 }
104
106
109 inline const Aws::Vector<Aws::String>& GetReplicationServersSecurityGroupsIDs() const { return m_replicationServersSecurityGroupsIDs; }
110 template <typename ReplicationServersSecurityGroupsIDsT = Aws::Vector<Aws::String>>
111 void SetReplicationServersSecurityGroupsIDs(ReplicationServersSecurityGroupsIDsT&& value) {
112 m_replicationServersSecurityGroupsIDsHasBeenSet = true;
113 m_replicationServersSecurityGroupsIDs = std::forward<ReplicationServersSecurityGroupsIDsT>(value);
114 }
115 template <typename ReplicationServersSecurityGroupsIDsT = Aws::Vector<Aws::String>>
117 SetReplicationServersSecurityGroupsIDs(std::forward<ReplicationServersSecurityGroupsIDsT>(value));
118 return *this;
119 }
120 template <typename ReplicationServersSecurityGroupsIDsT = Aws::String>
122 m_replicationServersSecurityGroupsIDsHasBeenSet = true;
123 m_replicationServersSecurityGroupsIDs.emplace_back(std::forward<ReplicationServersSecurityGroupsIDsT>(value));
124 return *this;
125 }
127
129
132 inline const Aws::String& GetReplicationServerInstanceType() const { return m_replicationServerInstanceType; }
133 template <typename ReplicationServerInstanceTypeT = Aws::String>
134 void SetReplicationServerInstanceType(ReplicationServerInstanceTypeT&& value) {
135 m_replicationServerInstanceTypeHasBeenSet = true;
136 m_replicationServerInstanceType = std::forward<ReplicationServerInstanceTypeT>(value);
137 }
138 template <typename ReplicationServerInstanceTypeT = Aws::String>
140 SetReplicationServerInstanceType(std::forward<ReplicationServerInstanceTypeT>(value));
141 return *this;
142 }
144
146
149 inline bool GetUseDedicatedReplicationServer() const { return m_useDedicatedReplicationServer; }
150 inline void SetUseDedicatedReplicationServer(bool value) {
151 m_useDedicatedReplicationServerHasBeenSet = true;
152 m_useDedicatedReplicationServer = value;
153 }
156 return *this;
157 }
159
161
165 return m_defaultLargeStagingDiskType;
166 }
168 m_defaultLargeStagingDiskTypeHasBeenSet = true;
169 m_defaultLargeStagingDiskType = value;
170 }
173 return *this;
174 }
176
178
181 inline const Aws::Vector<ReplicationConfigurationReplicatedDisk>& GetReplicatedDisks() const { return m_replicatedDisks; }
182 template <typename ReplicatedDisksT = Aws::Vector<ReplicationConfigurationReplicatedDisk>>
183 void SetReplicatedDisks(ReplicatedDisksT&& value) {
184 m_replicatedDisksHasBeenSet = true;
185 m_replicatedDisks = std::forward<ReplicatedDisksT>(value);
186 }
187 template <typename ReplicatedDisksT = Aws::Vector<ReplicationConfigurationReplicatedDisk>>
189 SetReplicatedDisks(std::forward<ReplicatedDisksT>(value));
190 return *this;
191 }
192 template <typename ReplicatedDisksT = ReplicationConfigurationReplicatedDisk>
194 m_replicatedDisksHasBeenSet = true;
195 m_replicatedDisks.emplace_back(std::forward<ReplicatedDisksT>(value));
196 return *this;
197 }
199
201
204 inline ReplicationConfigurationEbsEncryption GetEbsEncryption() const { return m_ebsEncryption; }
206 m_ebsEncryptionHasBeenSet = true;
207 m_ebsEncryption = value;
208 }
210 SetEbsEncryption(value);
211 return *this;
212 }
214
216
219 inline const Aws::String& GetEbsEncryptionKeyArn() const { return m_ebsEncryptionKeyArn; }
220 template <typename EbsEncryptionKeyArnT = Aws::String>
221 void SetEbsEncryptionKeyArn(EbsEncryptionKeyArnT&& value) {
222 m_ebsEncryptionKeyArnHasBeenSet = true;
223 m_ebsEncryptionKeyArn = std::forward<EbsEncryptionKeyArnT>(value);
224 }
225 template <typename EbsEncryptionKeyArnT = Aws::String>
227 SetEbsEncryptionKeyArn(std::forward<EbsEncryptionKeyArnT>(value));
228 return *this;
229 }
231
233
236 inline long long GetBandwidthThrottling() const { return m_bandwidthThrottling; }
237 inline void SetBandwidthThrottling(long long value) {
238 m_bandwidthThrottlingHasBeenSet = true;
239 m_bandwidthThrottling = value;
240 }
243 return *this;
244 }
246
248
251 inline ReplicationConfigurationDataPlaneRouting GetDataPlaneRouting() const { return m_dataPlaneRouting; }
253 m_dataPlaneRoutingHasBeenSet = true;
254 m_dataPlaneRouting = value;
255 }
257 SetDataPlaneRouting(value);
258 return *this;
259 }
261
263
266 inline bool GetCreatePublicIP() const { return m_createPublicIP; }
267 inline void SetCreatePublicIP(bool value) {
268 m_createPublicIPHasBeenSet = true;
269 m_createPublicIP = value;
270 }
272 SetCreatePublicIP(value);
273 return *this;
274 }
276
278
281 inline const Aws::Map<Aws::String, Aws::String>& GetStagingAreaTags() const { return m_stagingAreaTags; }
282 template <typename StagingAreaTagsT = Aws::Map<Aws::String, Aws::String>>
283 void SetStagingAreaTags(StagingAreaTagsT&& value) {
284 m_stagingAreaTagsHasBeenSet = true;
285 m_stagingAreaTags = std::forward<StagingAreaTagsT>(value);
286 }
287 template <typename StagingAreaTagsT = Aws::Map<Aws::String, Aws::String>>
289 SetStagingAreaTags(std::forward<StagingAreaTagsT>(value));
290 return *this;
291 }
292 template <typename StagingAreaTagsKeyT = Aws::String, typename StagingAreaTagsValueT = Aws::String>
293 UpdateReplicationConfigurationResult& AddStagingAreaTags(StagingAreaTagsKeyT&& key, StagingAreaTagsValueT&& value) {
294 m_stagingAreaTagsHasBeenSet = true;
295 m_stagingAreaTags.emplace(std::forward<StagingAreaTagsKeyT>(key), std::forward<StagingAreaTagsValueT>(value));
296 return *this;
297 }
299
301
304 inline bool GetUseFipsEndpoint() const { return m_useFipsEndpoint; }
305 inline void SetUseFipsEndpoint(bool value) {
306 m_useFipsEndpointHasBeenSet = true;
307 m_useFipsEndpoint = value;
308 }
310 SetUseFipsEndpoint(value);
311 return *this;
312 }
314
316
319 inline InternetProtocol GetInternetProtocol() const { return m_internetProtocol; }
321 m_internetProtocolHasBeenSet = true;
322 m_internetProtocol = value;
323 }
325 SetInternetProtocol(value);
326 return *this;
327 }
329
331
334 inline bool GetStoreSnapshotOnLocalZone() const { return m_storeSnapshotOnLocalZone; }
335 inline void SetStoreSnapshotOnLocalZone(bool value) {
336 m_storeSnapshotOnLocalZoneHasBeenSet = true;
337 m_storeSnapshotOnLocalZone = value;
338 }
341 return *this;
342 }
344
346
349 inline const StorageConfiguration& GetStorageConfiguration() const { return m_storageConfiguration; }
350 template <typename StorageConfigurationT = StorageConfiguration>
351 void SetStorageConfiguration(StorageConfigurationT&& value) {
352 m_storageConfigurationHasBeenSet = true;
353 m_storageConfiguration = std::forward<StorageConfigurationT>(value);
354 }
355 template <typename StorageConfigurationT = StorageConfiguration>
357 SetStorageConfiguration(std::forward<StorageConfigurationT>(value));
358 return *this;
359 }
361
363
364 inline const Aws::String& GetRequestId() const { return m_requestId; }
365 template <typename RequestIdT = Aws::String>
366 void SetRequestId(RequestIdT&& value) {
367 m_requestIdHasBeenSet = true;
368 m_requestId = std::forward<RequestIdT>(value);
369 }
370 template <typename RequestIdT = Aws::String>
372 SetRequestId(std::forward<RequestIdT>(value));
373 return *this;
374 }
376 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
377
378 private:
379 Aws::String m_sourceServerID;
380
381 Aws::String m_name;
382
383 Aws::String m_stagingAreaSubnetId;
384
385 bool m_associateDefaultSecurityGroup{false};
386
387 Aws::Vector<Aws::String> m_replicationServersSecurityGroupsIDs;
388
389 Aws::String m_replicationServerInstanceType;
390
391 bool m_useDedicatedReplicationServer{false};
392
393 ReplicationConfigurationDefaultLargeStagingDiskType m_defaultLargeStagingDiskType{
395
397
399
400 Aws::String m_ebsEncryptionKeyArn;
401
402 long long m_bandwidthThrottling{0};
403
405
406 bool m_createPublicIP{false};
407
408 Aws::Map<Aws::String, Aws::String> m_stagingAreaTags;
409
410 bool m_useFipsEndpoint{false};
411
413
414 bool m_storeSnapshotOnLocalZone{false};
415
416 StorageConfiguration m_storageConfiguration;
417
418 Aws::String m_requestId;
419 Aws::Http::HttpResponseCode m_HttpResponseCode;
420 bool m_sourceServerIDHasBeenSet = false;
421 bool m_nameHasBeenSet = false;
422 bool m_stagingAreaSubnetIdHasBeenSet = false;
423 bool m_associateDefaultSecurityGroupHasBeenSet = false;
424 bool m_replicationServersSecurityGroupsIDsHasBeenSet = false;
425 bool m_replicationServerInstanceTypeHasBeenSet = false;
426 bool m_useDedicatedReplicationServerHasBeenSet = false;
427 bool m_defaultLargeStagingDiskTypeHasBeenSet = false;
428 bool m_replicatedDisksHasBeenSet = false;
429 bool m_ebsEncryptionHasBeenSet = false;
430 bool m_ebsEncryptionKeyArnHasBeenSet = false;
431 bool m_bandwidthThrottlingHasBeenSet = false;
432 bool m_dataPlaneRoutingHasBeenSet = false;
433 bool m_createPublicIPHasBeenSet = false;
434 bool m_stagingAreaTagsHasBeenSet = false;
435 bool m_useFipsEndpointHasBeenSet = false;
436 bool m_internetProtocolHasBeenSet = false;
437 bool m_storeSnapshotOnLocalZoneHasBeenSet = false;
438 bool m_storageConfigurationHasBeenSet = false;
439 bool m_requestIdHasBeenSet = false;
440};
441
442} // namespace Model
443} // namespace mgn
444} // namespace Aws
UpdateReplicationConfigurationResult & WithStorageConfiguration(StorageConfigurationT &&value)
UpdateReplicationConfigurationResult & WithAssociateDefaultSecurityGroup(bool value)
UpdateReplicationConfigurationResult & WithSourceServerID(SourceServerIDT &&value)
UpdateReplicationConfigurationResult & WithDataPlaneRouting(ReplicationConfigurationDataPlaneRouting value)
void SetReplicationServersSecurityGroupsIDs(ReplicationServersSecurityGroupsIDsT &&value)
UpdateReplicationConfigurationResult & WithReplicatedDisks(ReplicatedDisksT &&value)
ReplicationConfigurationDefaultLargeStagingDiskType GetDefaultLargeStagingDiskType() const
const Aws::Map< Aws::String, Aws::String > & GetStagingAreaTags() const
AWS_MGN_API UpdateReplicationConfigurationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateReplicationConfigurationResult & WithReplicationServerInstanceType(ReplicationServerInstanceTypeT &&value)
UpdateReplicationConfigurationResult & WithStagingAreaTags(StagingAreaTagsT &&value)
const Aws::Vector< ReplicationConfigurationReplicatedDisk > & GetReplicatedDisks() const
void SetDataPlaneRouting(ReplicationConfigurationDataPlaneRouting value)
UpdateReplicationConfigurationResult & WithStagingAreaSubnetId(StagingAreaSubnetIdT &&value)
UpdateReplicationConfigurationResult & WithInternetProtocol(InternetProtocol value)
UpdateReplicationConfigurationResult & WithEbsEncryption(ReplicationConfigurationEbsEncryption value)
UpdateReplicationConfigurationResult & WithBandwidthThrottling(long long value)
UpdateReplicationConfigurationResult & AddReplicationServersSecurityGroupsIDs(ReplicationServersSecurityGroupsIDsT &&value)
UpdateReplicationConfigurationResult & WithName(NameT &&value)
AWS_MGN_API UpdateReplicationConfigurationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateReplicationConfigurationResult & WithCreatePublicIP(bool value)
UpdateReplicationConfigurationResult & AddReplicatedDisks(ReplicatedDisksT &&value)
UpdateReplicationConfigurationResult & WithUseFipsEndpoint(bool value)
ReplicationConfigurationDataPlaneRouting GetDataPlaneRouting() const
void SetEbsEncryption(ReplicationConfigurationEbsEncryption value)
UpdateReplicationConfigurationResult & WithUseDedicatedReplicationServer(bool value)
UpdateReplicationConfigurationResult & WithDefaultLargeStagingDiskType(ReplicationConfigurationDefaultLargeStagingDiskType value)
void SetReplicationServerInstanceType(ReplicationServerInstanceTypeT &&value)
UpdateReplicationConfigurationResult & WithReplicationServersSecurityGroupsIDs(ReplicationServersSecurityGroupsIDsT &&value)
UpdateReplicationConfigurationResult & WithRequestId(RequestIdT &&value)
UpdateReplicationConfigurationResult & WithEbsEncryptionKeyArn(EbsEncryptionKeyArnT &&value)
void SetDefaultLargeStagingDiskType(ReplicationConfigurationDefaultLargeStagingDiskType value)
UpdateReplicationConfigurationResult & AddStagingAreaTags(StagingAreaTagsKeyT &&key, StagingAreaTagsValueT &&value)
UpdateReplicationConfigurationResult & WithStoreSnapshotOnLocalZone(bool value)
const Aws::Vector< Aws::String > & GetReplicationServersSecurityGroupsIDs() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue