AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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
18#include <utility>
19
20namespace Aws {
21namespace mgn {
22namespace Model {
23
27 public:
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "UpdateReplicationConfiguration"; }
35
36 AWS_MGN_API Aws::String SerializePayload() const override;
37
39
42 inline const Aws::String& GetSourceServerID() const { return m_sourceServerID; }
43 inline bool SourceServerIDHasBeenSet() const { return m_sourceServerIDHasBeenSet; }
44 template <typename SourceServerIDT = Aws::String>
45 void SetSourceServerID(SourceServerIDT&& value) {
46 m_sourceServerIDHasBeenSet = true;
47 m_sourceServerID = std::forward<SourceServerIDT>(value);
48 }
49 template <typename SourceServerIDT = Aws::String>
51 SetSourceServerID(std::forward<SourceServerIDT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetName() const { return m_name; }
61 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 template <typename NameT = Aws::String>
63 void SetName(NameT&& value) {
64 m_nameHasBeenSet = true;
65 m_name = std::forward<NameT>(value);
66 }
67 template <typename NameT = Aws::String>
69 SetName(std::forward<NameT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetStagingAreaSubnetId() const { return m_stagingAreaSubnetId; }
79 inline bool StagingAreaSubnetIdHasBeenSet() const { return m_stagingAreaSubnetIdHasBeenSet; }
80 template <typename StagingAreaSubnetIdT = Aws::String>
81 void SetStagingAreaSubnetId(StagingAreaSubnetIdT&& value) {
82 m_stagingAreaSubnetIdHasBeenSet = true;
83 m_stagingAreaSubnetId = std::forward<StagingAreaSubnetIdT>(value);
84 }
85 template <typename StagingAreaSubnetIdT = Aws::String>
87 SetStagingAreaSubnetId(std::forward<StagingAreaSubnetIdT>(value));
88 return *this;
89 }
91
93
97 inline bool GetAssociateDefaultSecurityGroup() const { return m_associateDefaultSecurityGroup; }
98 inline bool AssociateDefaultSecurityGroupHasBeenSet() const { return m_associateDefaultSecurityGroupHasBeenSet; }
99 inline void SetAssociateDefaultSecurityGroup(bool value) {
100 m_associateDefaultSecurityGroupHasBeenSet = true;
101 m_associateDefaultSecurityGroup = value;
102 }
105 return *this;
106 }
108
110
114 inline const Aws::Vector<Aws::String>& GetReplicationServersSecurityGroupsIDs() const { return m_replicationServersSecurityGroupsIDs; }
115 inline bool ReplicationServersSecurityGroupsIDsHasBeenSet() const { return m_replicationServersSecurityGroupsIDsHasBeenSet; }
116 template <typename ReplicationServersSecurityGroupsIDsT = Aws::Vector<Aws::String>>
117 void SetReplicationServersSecurityGroupsIDs(ReplicationServersSecurityGroupsIDsT&& value) {
118 m_replicationServersSecurityGroupsIDsHasBeenSet = true;
119 m_replicationServersSecurityGroupsIDs = std::forward<ReplicationServersSecurityGroupsIDsT>(value);
120 }
121 template <typename ReplicationServersSecurityGroupsIDsT = Aws::Vector<Aws::String>>
123 SetReplicationServersSecurityGroupsIDs(std::forward<ReplicationServersSecurityGroupsIDsT>(value));
124 return *this;
125 }
126 template <typename ReplicationServersSecurityGroupsIDsT = Aws::String>
128 m_replicationServersSecurityGroupsIDsHasBeenSet = true;
129 m_replicationServersSecurityGroupsIDs.emplace_back(std::forward<ReplicationServersSecurityGroupsIDsT>(value));
130 return *this;
131 }
133
135
139 inline const Aws::String& GetReplicationServerInstanceType() const { return m_replicationServerInstanceType; }
140 inline bool ReplicationServerInstanceTypeHasBeenSet() const { return m_replicationServerInstanceTypeHasBeenSet; }
141 template <typename ReplicationServerInstanceTypeT = Aws::String>
142 void SetReplicationServerInstanceType(ReplicationServerInstanceTypeT&& value) {
143 m_replicationServerInstanceTypeHasBeenSet = true;
144 m_replicationServerInstanceType = std::forward<ReplicationServerInstanceTypeT>(value);
145 }
146 template <typename ReplicationServerInstanceTypeT = Aws::String>
148 SetReplicationServerInstanceType(std::forward<ReplicationServerInstanceTypeT>(value));
149 return *this;
150 }
152
154
158 inline bool GetUseDedicatedReplicationServer() const { return m_useDedicatedReplicationServer; }
159 inline bool UseDedicatedReplicationServerHasBeenSet() const { return m_useDedicatedReplicationServerHasBeenSet; }
160 inline void SetUseDedicatedReplicationServer(bool value) {
161 m_useDedicatedReplicationServerHasBeenSet = true;
162 m_useDedicatedReplicationServer = value;
163 }
166 return *this;
167 }
169
171
176 return m_defaultLargeStagingDiskType;
177 }
178 inline bool DefaultLargeStagingDiskTypeHasBeenSet() const { return m_defaultLargeStagingDiskTypeHasBeenSet; }
180 m_defaultLargeStagingDiskTypeHasBeenSet = true;
181 m_defaultLargeStagingDiskType = value;
182 }
185 return *this;
186 }
188
190
193 inline const Aws::Vector<ReplicationConfigurationReplicatedDisk>& GetReplicatedDisks() const { return m_replicatedDisks; }
194 inline bool ReplicatedDisksHasBeenSet() const { return m_replicatedDisksHasBeenSet; }
195 template <typename ReplicatedDisksT = Aws::Vector<ReplicationConfigurationReplicatedDisk>>
196 void SetReplicatedDisks(ReplicatedDisksT&& value) {
197 m_replicatedDisksHasBeenSet = true;
198 m_replicatedDisks = std::forward<ReplicatedDisksT>(value);
199 }
200 template <typename ReplicatedDisksT = Aws::Vector<ReplicationConfigurationReplicatedDisk>>
202 SetReplicatedDisks(std::forward<ReplicatedDisksT>(value));
203 return *this;
204 }
205 template <typename ReplicatedDisksT = ReplicationConfigurationReplicatedDisk>
207 m_replicatedDisksHasBeenSet = true;
208 m_replicatedDisks.emplace_back(std::forward<ReplicatedDisksT>(value));
209 return *this;
210 }
212
214
217 inline ReplicationConfigurationEbsEncryption GetEbsEncryption() const { return m_ebsEncryption; }
218 inline bool EbsEncryptionHasBeenSet() const { return m_ebsEncryptionHasBeenSet; }
220 m_ebsEncryptionHasBeenSet = true;
221 m_ebsEncryption = value;
222 }
224 SetEbsEncryption(value);
225 return *this;
226 }
228
230
233 inline const Aws::String& GetEbsEncryptionKeyArn() const { return m_ebsEncryptionKeyArn; }
234 inline bool EbsEncryptionKeyArnHasBeenSet() const { return m_ebsEncryptionKeyArnHasBeenSet; }
235 template <typename EbsEncryptionKeyArnT = Aws::String>
236 void SetEbsEncryptionKeyArn(EbsEncryptionKeyArnT&& value) {
237 m_ebsEncryptionKeyArnHasBeenSet = true;
238 m_ebsEncryptionKeyArn = std::forward<EbsEncryptionKeyArnT>(value);
239 }
240 template <typename EbsEncryptionKeyArnT = Aws::String>
242 SetEbsEncryptionKeyArn(std::forward<EbsEncryptionKeyArnT>(value));
243 return *this;
244 }
246
248
251 inline long long GetBandwidthThrottling() const { return m_bandwidthThrottling; }
252 inline bool BandwidthThrottlingHasBeenSet() const { return m_bandwidthThrottlingHasBeenSet; }
253 inline void SetBandwidthThrottling(long long value) {
254 m_bandwidthThrottlingHasBeenSet = true;
255 m_bandwidthThrottling = value;
256 }
259 return *this;
260 }
262
264
267 inline ReplicationConfigurationDataPlaneRouting GetDataPlaneRouting() const { return m_dataPlaneRouting; }
268 inline bool DataPlaneRoutingHasBeenSet() const { return m_dataPlaneRoutingHasBeenSet; }
270 m_dataPlaneRoutingHasBeenSet = true;
271 m_dataPlaneRouting = value;
272 }
274 SetDataPlaneRouting(value);
275 return *this;
276 }
278
280
283 inline bool GetCreatePublicIP() const { return m_createPublicIP; }
284 inline bool CreatePublicIPHasBeenSet() const { return m_createPublicIPHasBeenSet; }
285 inline void SetCreatePublicIP(bool value) {
286 m_createPublicIPHasBeenSet = true;
287 m_createPublicIP = value;
288 }
290 SetCreatePublicIP(value);
291 return *this;
292 }
294
296
299 inline const Aws::Map<Aws::String, Aws::String>& GetStagingAreaTags() const { return m_stagingAreaTags; }
300 inline bool StagingAreaTagsHasBeenSet() const { return m_stagingAreaTagsHasBeenSet; }
301 template <typename StagingAreaTagsT = Aws::Map<Aws::String, Aws::String>>
302 void SetStagingAreaTags(StagingAreaTagsT&& value) {
303 m_stagingAreaTagsHasBeenSet = true;
304 m_stagingAreaTags = std::forward<StagingAreaTagsT>(value);
305 }
306 template <typename StagingAreaTagsT = Aws::Map<Aws::String, Aws::String>>
308 SetStagingAreaTags(std::forward<StagingAreaTagsT>(value));
309 return *this;
310 }
311 template <typename StagingAreaTagsKeyT = Aws::String, typename StagingAreaTagsValueT = Aws::String>
312 UpdateReplicationConfigurationRequest& AddStagingAreaTags(StagingAreaTagsKeyT&& key, StagingAreaTagsValueT&& value) {
313 m_stagingAreaTagsHasBeenSet = true;
314 m_stagingAreaTags.emplace(std::forward<StagingAreaTagsKeyT>(key), std::forward<StagingAreaTagsValueT>(value));
315 return *this;
316 }
318
320
323 inline bool GetUseFipsEndpoint() const { return m_useFipsEndpoint; }
324 inline bool UseFipsEndpointHasBeenSet() const { return m_useFipsEndpointHasBeenSet; }
325 inline void SetUseFipsEndpoint(bool value) {
326 m_useFipsEndpointHasBeenSet = true;
327 m_useFipsEndpoint = value;
328 }
330 SetUseFipsEndpoint(value);
331 return *this;
332 }
334
336
339 inline const Aws::String& GetAccountID() const { return m_accountID; }
340 inline bool AccountIDHasBeenSet() const { return m_accountIDHasBeenSet; }
341 template <typename AccountIDT = Aws::String>
342 void SetAccountID(AccountIDT&& value) {
343 m_accountIDHasBeenSet = true;
344 m_accountID = std::forward<AccountIDT>(value);
345 }
346 template <typename AccountIDT = Aws::String>
348 SetAccountID(std::forward<AccountIDT>(value));
349 return *this;
350 }
352
354
357 inline InternetProtocol GetInternetProtocol() const { return m_internetProtocol; }
358 inline bool InternetProtocolHasBeenSet() const { return m_internetProtocolHasBeenSet; }
360 m_internetProtocolHasBeenSet = true;
361 m_internetProtocol = value;
362 }
364 SetInternetProtocol(value);
365 return *this;
366 }
368 private:
369 Aws::String m_sourceServerID;
370
371 Aws::String m_name;
372
373 Aws::String m_stagingAreaSubnetId;
374
375 bool m_associateDefaultSecurityGroup{false};
376
377 Aws::Vector<Aws::String> m_replicationServersSecurityGroupsIDs;
378
379 Aws::String m_replicationServerInstanceType;
380
381 bool m_useDedicatedReplicationServer{false};
382
383 ReplicationConfigurationDefaultLargeStagingDiskType m_defaultLargeStagingDiskType{
385
387
389
390 Aws::String m_ebsEncryptionKeyArn;
391
392 long long m_bandwidthThrottling{0};
393
395
396 bool m_createPublicIP{false};
397
398 Aws::Map<Aws::String, Aws::String> m_stagingAreaTags;
399
400 bool m_useFipsEndpoint{false};
401
402 Aws::String m_accountID;
403
405 bool m_sourceServerIDHasBeenSet = false;
406 bool m_nameHasBeenSet = false;
407 bool m_stagingAreaSubnetIdHasBeenSet = false;
408 bool m_associateDefaultSecurityGroupHasBeenSet = false;
409 bool m_replicationServersSecurityGroupsIDsHasBeenSet = false;
410 bool m_replicationServerInstanceTypeHasBeenSet = false;
411 bool m_useDedicatedReplicationServerHasBeenSet = false;
412 bool m_defaultLargeStagingDiskTypeHasBeenSet = false;
413 bool m_replicatedDisksHasBeenSet = false;
414 bool m_ebsEncryptionHasBeenSet = false;
415 bool m_ebsEncryptionKeyArnHasBeenSet = false;
416 bool m_bandwidthThrottlingHasBeenSet = false;
417 bool m_dataPlaneRoutingHasBeenSet = false;
418 bool m_createPublicIPHasBeenSet = false;
419 bool m_stagingAreaTagsHasBeenSet = false;
420 bool m_useFipsEndpointHasBeenSet = false;
421 bool m_accountIDHasBeenSet = false;
422 bool m_internetProtocolHasBeenSet = false;
423};
424
425} // namespace Model
426} // namespace mgn
427} // namespace Aws
AWS_MGN_API Aws::String SerializePayload() const override
UpdateReplicationConfigurationRequest & WithBandwidthThrottling(long long 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 & 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