AWS SDK for C++

AWS SDK for C++ Version 1.11.844

Loading...
Searching...
No Matches
UpdateReplicationConfigurationRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/mgn/MgnRequest.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 {
22namespace mgn {
23namespace Model {
24
28 public:
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 "UpdateReplicationConfiguration"; }
36
37 AWS_MGN_API Aws::String SerializePayload() const override;
38
40
43 inline const Aws::String& GetSourceServerID() const { return m_sourceServerID; }
44 inline bool SourceServerIDHasBeenSet() const { return m_sourceServerIDHasBeenSet; }
45 template <typename SourceServerIDT = Aws::String>
46 void SetSourceServerID(SourceServerIDT&& value) {
47 m_sourceServerIDHasBeenSet = true;
48 m_sourceServerID = std::forward<SourceServerIDT>(value);
49 }
50 template <typename SourceServerIDT = Aws::String>
52 SetSourceServerID(std::forward<SourceServerIDT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetName() const { return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 template <typename NameT = Aws::String>
64 void SetName(NameT&& value) {
65 m_nameHasBeenSet = true;
66 m_name = std::forward<NameT>(value);
67 }
68 template <typename NameT = Aws::String>
70 SetName(std::forward<NameT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetStagingAreaSubnetId() const { return m_stagingAreaSubnetId; }
80 inline bool StagingAreaSubnetIdHasBeenSet() const { return m_stagingAreaSubnetIdHasBeenSet; }
81 template <typename StagingAreaSubnetIdT = Aws::String>
82 void SetStagingAreaSubnetId(StagingAreaSubnetIdT&& value) {
83 m_stagingAreaSubnetIdHasBeenSet = true;
84 m_stagingAreaSubnetId = std::forward<StagingAreaSubnetIdT>(value);
85 }
86 template <typename StagingAreaSubnetIdT = Aws::String>
88 SetStagingAreaSubnetId(std::forward<StagingAreaSubnetIdT>(value));
89 return *this;
90 }
92
94
98 inline bool GetAssociateDefaultSecurityGroup() const { return m_associateDefaultSecurityGroup; }
99 inline bool AssociateDefaultSecurityGroupHasBeenSet() const { return m_associateDefaultSecurityGroupHasBeenSet; }
100 inline void SetAssociateDefaultSecurityGroup(bool value) {
101 m_associateDefaultSecurityGroupHasBeenSet = true;
102 m_associateDefaultSecurityGroup = value;
103 }
106 return *this;
107 }
109
111
115 inline const Aws::Vector<Aws::String>& GetReplicationServersSecurityGroupsIDs() const { return m_replicationServersSecurityGroupsIDs; }
116 inline bool ReplicationServersSecurityGroupsIDsHasBeenSet() const { return m_replicationServersSecurityGroupsIDsHasBeenSet; }
117 template <typename ReplicationServersSecurityGroupsIDsT = Aws::Vector<Aws::String>>
118 void SetReplicationServersSecurityGroupsIDs(ReplicationServersSecurityGroupsIDsT&& value) {
119 m_replicationServersSecurityGroupsIDsHasBeenSet = true;
120 m_replicationServersSecurityGroupsIDs = std::forward<ReplicationServersSecurityGroupsIDsT>(value);
121 }
122 template <typename ReplicationServersSecurityGroupsIDsT = Aws::Vector<Aws::String>>
124 SetReplicationServersSecurityGroupsIDs(std::forward<ReplicationServersSecurityGroupsIDsT>(value));
125 return *this;
126 }
127 template <typename ReplicationServersSecurityGroupsIDsT = Aws::String>
129 m_replicationServersSecurityGroupsIDsHasBeenSet = true;
130 m_replicationServersSecurityGroupsIDs.emplace_back(std::forward<ReplicationServersSecurityGroupsIDsT>(value));
131 return *this;
132 }
134
136
140 inline const Aws::String& GetReplicationServerInstanceType() const { return m_replicationServerInstanceType; }
141 inline bool ReplicationServerInstanceTypeHasBeenSet() const { return m_replicationServerInstanceTypeHasBeenSet; }
142 template <typename ReplicationServerInstanceTypeT = Aws::String>
143 void SetReplicationServerInstanceType(ReplicationServerInstanceTypeT&& value) {
144 m_replicationServerInstanceTypeHasBeenSet = true;
145 m_replicationServerInstanceType = std::forward<ReplicationServerInstanceTypeT>(value);
146 }
147 template <typename ReplicationServerInstanceTypeT = Aws::String>
149 SetReplicationServerInstanceType(std::forward<ReplicationServerInstanceTypeT>(value));
150 return *this;
151 }
153
155
159 inline bool GetUseDedicatedReplicationServer() const { return m_useDedicatedReplicationServer; }
160 inline bool UseDedicatedReplicationServerHasBeenSet() const { return m_useDedicatedReplicationServerHasBeenSet; }
161 inline void SetUseDedicatedReplicationServer(bool value) {
162 m_useDedicatedReplicationServerHasBeenSet = true;
163 m_useDedicatedReplicationServer = value;
164 }
167 return *this;
168 }
170
172
177 return m_defaultLargeStagingDiskType;
178 }
179 inline bool DefaultLargeStagingDiskTypeHasBeenSet() const { return m_defaultLargeStagingDiskTypeHasBeenSet; }
181 m_defaultLargeStagingDiskTypeHasBeenSet = true;
182 m_defaultLargeStagingDiskType = value;
183 }
186 return *this;
187 }
189
191
194 inline const Aws::Vector<ReplicationConfigurationReplicatedDisk>& GetReplicatedDisks() const { return m_replicatedDisks; }
195 inline bool ReplicatedDisksHasBeenSet() const { return m_replicatedDisksHasBeenSet; }
196 template <typename ReplicatedDisksT = Aws::Vector<ReplicationConfigurationReplicatedDisk>>
197 void SetReplicatedDisks(ReplicatedDisksT&& value) {
198 m_replicatedDisksHasBeenSet = true;
199 m_replicatedDisks = std::forward<ReplicatedDisksT>(value);
200 }
201 template <typename ReplicatedDisksT = Aws::Vector<ReplicationConfigurationReplicatedDisk>>
203 SetReplicatedDisks(std::forward<ReplicatedDisksT>(value));
204 return *this;
205 }
206 template <typename ReplicatedDisksT = ReplicationConfigurationReplicatedDisk>
208 m_replicatedDisksHasBeenSet = true;
209 m_replicatedDisks.emplace_back(std::forward<ReplicatedDisksT>(value));
210 return *this;
211 }
213
215
218 inline ReplicationConfigurationEbsEncryption GetEbsEncryption() const { return m_ebsEncryption; }
219 inline bool EbsEncryptionHasBeenSet() const { return m_ebsEncryptionHasBeenSet; }
221 m_ebsEncryptionHasBeenSet = true;
222 m_ebsEncryption = value;
223 }
225 SetEbsEncryption(value);
226 return *this;
227 }
229
231
234 inline const Aws::String& GetEbsEncryptionKeyArn() const { return m_ebsEncryptionKeyArn; }
235 inline bool EbsEncryptionKeyArnHasBeenSet() const { return m_ebsEncryptionKeyArnHasBeenSet; }
236 template <typename EbsEncryptionKeyArnT = Aws::String>
237 void SetEbsEncryptionKeyArn(EbsEncryptionKeyArnT&& value) {
238 m_ebsEncryptionKeyArnHasBeenSet = true;
239 m_ebsEncryptionKeyArn = std::forward<EbsEncryptionKeyArnT>(value);
240 }
241 template <typename EbsEncryptionKeyArnT = Aws::String>
243 SetEbsEncryptionKeyArn(std::forward<EbsEncryptionKeyArnT>(value));
244 return *this;
245 }
247
249
252 inline long long GetBandwidthThrottling() const { return m_bandwidthThrottling; }
253 inline bool BandwidthThrottlingHasBeenSet() const { return m_bandwidthThrottlingHasBeenSet; }
254 inline void SetBandwidthThrottling(long long value) {
255 m_bandwidthThrottlingHasBeenSet = true;
256 m_bandwidthThrottling = value;
257 }
260 return *this;
261 }
263
265
268 inline ReplicationConfigurationDataPlaneRouting GetDataPlaneRouting() const { return m_dataPlaneRouting; }
269 inline bool DataPlaneRoutingHasBeenSet() const { return m_dataPlaneRoutingHasBeenSet; }
271 m_dataPlaneRoutingHasBeenSet = true;
272 m_dataPlaneRouting = value;
273 }
275 SetDataPlaneRouting(value);
276 return *this;
277 }
279
281
284 inline bool GetCreatePublicIP() const { return m_createPublicIP; }
285 inline bool CreatePublicIPHasBeenSet() const { return m_createPublicIPHasBeenSet; }
286 inline void SetCreatePublicIP(bool value) {
287 m_createPublicIPHasBeenSet = true;
288 m_createPublicIP = value;
289 }
291 SetCreatePublicIP(value);
292 return *this;
293 }
295
297
300 inline const Aws::Map<Aws::String, Aws::String>& GetStagingAreaTags() const { return m_stagingAreaTags; }
301 inline bool StagingAreaTagsHasBeenSet() const { return m_stagingAreaTagsHasBeenSet; }
302 template <typename StagingAreaTagsT = Aws::Map<Aws::String, Aws::String>>
303 void SetStagingAreaTags(StagingAreaTagsT&& value) {
304 m_stagingAreaTagsHasBeenSet = true;
305 m_stagingAreaTags = std::forward<StagingAreaTagsT>(value);
306 }
307 template <typename StagingAreaTagsT = Aws::Map<Aws::String, Aws::String>>
309 SetStagingAreaTags(std::forward<StagingAreaTagsT>(value));
310 return *this;
311 }
312 template <typename StagingAreaTagsKeyT = Aws::String, typename StagingAreaTagsValueT = Aws::String>
313 UpdateReplicationConfigurationRequest& AddStagingAreaTags(StagingAreaTagsKeyT&& key, StagingAreaTagsValueT&& value) {
314 m_stagingAreaTagsHasBeenSet = true;
315 m_stagingAreaTags.emplace(std::forward<StagingAreaTagsKeyT>(key), std::forward<StagingAreaTagsValueT>(value));
316 return *this;
317 }
319
321
324 inline bool GetUseFipsEndpoint() const { return m_useFipsEndpoint; }
325 inline bool UseFipsEndpointHasBeenSet() const { return m_useFipsEndpointHasBeenSet; }
326 inline void SetUseFipsEndpoint(bool value) {
327 m_useFipsEndpointHasBeenSet = true;
328 m_useFipsEndpoint = value;
329 }
331 SetUseFipsEndpoint(value);
332 return *this;
333 }
335
337
340 inline const Aws::String& GetAccountID() const { return m_accountID; }
341 inline bool AccountIDHasBeenSet() const { return m_accountIDHasBeenSet; }
342 template <typename AccountIDT = Aws::String>
343 void SetAccountID(AccountIDT&& value) {
344 m_accountIDHasBeenSet = true;
345 m_accountID = std::forward<AccountIDT>(value);
346 }
347 template <typename AccountIDT = Aws::String>
349 SetAccountID(std::forward<AccountIDT>(value));
350 return *this;
351 }
353
355
358 inline InternetProtocol GetInternetProtocol() const { return m_internetProtocol; }
359 inline bool InternetProtocolHasBeenSet() const { return m_internetProtocolHasBeenSet; }
361 m_internetProtocolHasBeenSet = true;
362 m_internetProtocol = value;
363 }
365 SetInternetProtocol(value);
366 return *this;
367 }
369
371
374 inline bool GetStoreSnapshotOnLocalZone() const { return m_storeSnapshotOnLocalZone; }
375 inline bool StoreSnapshotOnLocalZoneHasBeenSet() const { return m_storeSnapshotOnLocalZoneHasBeenSet; }
376 inline void SetStoreSnapshotOnLocalZone(bool value) {
377 m_storeSnapshotOnLocalZoneHasBeenSet = true;
378 m_storeSnapshotOnLocalZone = value;
379 }
382 return *this;
383 }
385
387
390 inline const StorageConfiguration& GetStorageConfiguration() const { return m_storageConfiguration; }
391 inline bool StorageConfigurationHasBeenSet() const { return m_storageConfigurationHasBeenSet; }
392 template <typename StorageConfigurationT = StorageConfiguration>
393 void SetStorageConfiguration(StorageConfigurationT&& value) {
394 m_storageConfigurationHasBeenSet = true;
395 m_storageConfiguration = std::forward<StorageConfigurationT>(value);
396 }
397 template <typename StorageConfigurationT = StorageConfiguration>
399 SetStorageConfiguration(std::forward<StorageConfigurationT>(value));
400 return *this;
401 }
403 private:
404 Aws::String m_sourceServerID;
405
406 Aws::String m_name;
407
408 Aws::String m_stagingAreaSubnetId;
409
410 bool m_associateDefaultSecurityGroup{false};
411
412 Aws::Vector<Aws::String> m_replicationServersSecurityGroupsIDs;
413
414 Aws::String m_replicationServerInstanceType;
415
416 bool m_useDedicatedReplicationServer{false};
417
418 ReplicationConfigurationDefaultLargeStagingDiskType m_defaultLargeStagingDiskType{
420
422
424
425 Aws::String m_ebsEncryptionKeyArn;
426
427 long long m_bandwidthThrottling{0};
428
430
431 bool m_createPublicIP{false};
432
433 Aws::Map<Aws::String, Aws::String> m_stagingAreaTags;
434
435 bool m_useFipsEndpoint{false};
436
437 Aws::String m_accountID;
438
440
441 bool m_storeSnapshotOnLocalZone{false};
442
443 StorageConfiguration m_storageConfiguration;
444 bool m_sourceServerIDHasBeenSet = false;
445 bool m_nameHasBeenSet = false;
446 bool m_stagingAreaSubnetIdHasBeenSet = false;
447 bool m_associateDefaultSecurityGroupHasBeenSet = false;
448 bool m_replicationServersSecurityGroupsIDsHasBeenSet = false;
449 bool m_replicationServerInstanceTypeHasBeenSet = false;
450 bool m_useDedicatedReplicationServerHasBeenSet = false;
451 bool m_defaultLargeStagingDiskTypeHasBeenSet = false;
452 bool m_replicatedDisksHasBeenSet = false;
453 bool m_ebsEncryptionHasBeenSet = false;
454 bool m_ebsEncryptionKeyArnHasBeenSet = false;
455 bool m_bandwidthThrottlingHasBeenSet = false;
456 bool m_dataPlaneRoutingHasBeenSet = false;
457 bool m_createPublicIPHasBeenSet = false;
458 bool m_stagingAreaTagsHasBeenSet = false;
459 bool m_useFipsEndpointHasBeenSet = false;
460 bool m_accountIDHasBeenSet = false;
461 bool m_internetProtocolHasBeenSet = false;
462 bool m_storeSnapshotOnLocalZoneHasBeenSet = false;
463 bool m_storageConfigurationHasBeenSet = false;
464};
465
466} // namespace Model
467} // namespace mgn
468} // namespace Aws
AWS_MGN_API Aws::String SerializePayload() const override
UpdateReplicationConfigurationRequest & WithBandwidthThrottling(long long value)
UpdateReplicationConfigurationRequest & WithStorageConfiguration(StorageConfigurationT &&value)
UpdateReplicationConfigurationRequest & WithDataPlaneRouting(ReplicationConfigurationDataPlaneRouting value)
UpdateReplicationConfigurationRequest & WithReplicationServersSecurityGroupsIDs(ReplicationServersSecurityGroupsIDsT &&value)
void SetDataPlaneRouting(ReplicationConfigurationDataPlaneRouting value)
UpdateReplicationConfigurationRequest & WithStagingAreaTags(StagingAreaTagsT &&value)
UpdateReplicationConfigurationRequest & AddReplicatedDisks(ReplicatedDisksT &&value)
UpdateReplicationConfigurationRequest & WithSourceServerID(SourceServerIDT &&value)
ReplicationConfigurationDataPlaneRouting GetDataPlaneRouting() const
UpdateReplicationConfigurationRequest & WithStoreSnapshotOnLocalZone(bool value)
UpdateReplicationConfigurationRequest & WithAccountID(AccountIDT &&value)
UpdateReplicationConfigurationRequest & WithDefaultLargeStagingDiskType(ReplicationConfigurationDefaultLargeStagingDiskType value)
ReplicationConfigurationDefaultLargeStagingDiskType GetDefaultLargeStagingDiskType() const
UpdateReplicationConfigurationRequest & WithReplicatedDisks(ReplicatedDisksT &&value)
void SetReplicationServerInstanceType(ReplicationServerInstanceTypeT &&value)
UpdateReplicationConfigurationRequest & WithUseDedicatedReplicationServer(bool value)
UpdateReplicationConfigurationRequest & WithReplicationServerInstanceType(ReplicationServerInstanceTypeT &&value)
UpdateReplicationConfigurationRequest & WithEbsEncryptionKeyArn(EbsEncryptionKeyArnT &&value)
void SetReplicationServersSecurityGroupsIDs(ReplicationServersSecurityGroupsIDsT &&value)
UpdateReplicationConfigurationRequest & AddStagingAreaTags(StagingAreaTagsKeyT &&key, StagingAreaTagsValueT &&value)
UpdateReplicationConfigurationRequest & WithName(NameT &&value)
UpdateReplicationConfigurationRequest & WithCreatePublicIP(bool value)
UpdateReplicationConfigurationRequest & WithEbsEncryption(ReplicationConfigurationEbsEncryption value)
const Aws::Map< Aws::String, Aws::String > & GetStagingAreaTags() const
UpdateReplicationConfigurationRequest & WithUseFipsEndpoint(bool value)
const Aws::Vector< ReplicationConfigurationReplicatedDisk > & GetReplicatedDisks() const
void SetDefaultLargeStagingDiskType(ReplicationConfigurationDefaultLargeStagingDiskType value)
UpdateReplicationConfigurationRequest & WithStagingAreaSubnetId(StagingAreaSubnetIdT &&value)
UpdateReplicationConfigurationRequest & WithAssociateDefaultSecurityGroup(bool value)
void SetEbsEncryption(ReplicationConfigurationEbsEncryption value)
UpdateReplicationConfigurationRequest & AddReplicationServersSecurityGroupsIDs(ReplicationServersSecurityGroupsIDsT &&value)
const Aws::Vector< Aws::String > & GetReplicationServersSecurityGroupsIDs() const
UpdateReplicationConfigurationRequest & WithInternetProtocol(InternetProtocol value)
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