AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
GetReplicationConfigurationResult.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
18#include <utility>
19
20namespace Aws {
21template <typename RESULT_TYPE>
22class AmazonWebServiceResult;
23
24namespace Utils {
25namespace Json {
26class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace mgn {
30namespace Model {
32 public:
33 AWS_MGN_API GetReplicationConfigurationResult() = default;
36
38
41 inline const Aws::String& GetSourceServerID() const { return m_sourceServerID; }
42 template <typename SourceServerIDT = Aws::String>
43 void SetSourceServerID(SourceServerIDT&& value) {
44 m_sourceServerIDHasBeenSet = true;
45 m_sourceServerID = std::forward<SourceServerIDT>(value);
46 }
47 template <typename SourceServerIDT = Aws::String>
49 SetSourceServerID(std::forward<SourceServerIDT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetName() const { return m_name; }
59 template <typename NameT = Aws::String>
60 void SetName(NameT&& value) {
61 m_nameHasBeenSet = true;
62 m_name = std::forward<NameT>(value);
63 }
64 template <typename NameT = Aws::String>
66 SetName(std::forward<NameT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetStagingAreaSubnetId() const { return m_stagingAreaSubnetId; }
76 template <typename StagingAreaSubnetIdT = Aws::String>
77 void SetStagingAreaSubnetId(StagingAreaSubnetIdT&& value) {
78 m_stagingAreaSubnetIdHasBeenSet = true;
79 m_stagingAreaSubnetId = std::forward<StagingAreaSubnetIdT>(value);
80 }
81 template <typename StagingAreaSubnetIdT = Aws::String>
83 SetStagingAreaSubnetId(std::forward<StagingAreaSubnetIdT>(value));
84 return *this;
85 }
87
89
93 inline bool GetAssociateDefaultSecurityGroup() const { return m_associateDefaultSecurityGroup; }
94 inline void SetAssociateDefaultSecurityGroup(bool value) {
95 m_associateDefaultSecurityGroupHasBeenSet = true;
96 m_associateDefaultSecurityGroup = value;
97 }
100 return *this;
101 }
103
105
108 inline const Aws::Vector<Aws::String>& GetReplicationServersSecurityGroupsIDs() const { return m_replicationServersSecurityGroupsIDs; }
109 template <typename ReplicationServersSecurityGroupsIDsT = Aws::Vector<Aws::String>>
110 void SetReplicationServersSecurityGroupsIDs(ReplicationServersSecurityGroupsIDsT&& value) {
111 m_replicationServersSecurityGroupsIDsHasBeenSet = true;
112 m_replicationServersSecurityGroupsIDs = std::forward<ReplicationServersSecurityGroupsIDsT>(value);
113 }
114 template <typename ReplicationServersSecurityGroupsIDsT = Aws::Vector<Aws::String>>
115 GetReplicationConfigurationResult& WithReplicationServersSecurityGroupsIDs(ReplicationServersSecurityGroupsIDsT&& value) {
116 SetReplicationServersSecurityGroupsIDs(std::forward<ReplicationServersSecurityGroupsIDsT>(value));
117 return *this;
118 }
119 template <typename ReplicationServersSecurityGroupsIDsT = Aws::String>
120 GetReplicationConfigurationResult& AddReplicationServersSecurityGroupsIDs(ReplicationServersSecurityGroupsIDsT&& value) {
121 m_replicationServersSecurityGroupsIDsHasBeenSet = true;
122 m_replicationServersSecurityGroupsIDs.emplace_back(std::forward<ReplicationServersSecurityGroupsIDsT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::String& GetReplicationServerInstanceType() const { return m_replicationServerInstanceType; }
132 template <typename ReplicationServerInstanceTypeT = Aws::String>
133 void SetReplicationServerInstanceType(ReplicationServerInstanceTypeT&& value) {
134 m_replicationServerInstanceTypeHasBeenSet = true;
135 m_replicationServerInstanceType = std::forward<ReplicationServerInstanceTypeT>(value);
136 }
137 template <typename ReplicationServerInstanceTypeT = Aws::String>
139 SetReplicationServerInstanceType(std::forward<ReplicationServerInstanceTypeT>(value));
140 return *this;
141 }
143
145
148 inline bool GetUseDedicatedReplicationServer() const { return m_useDedicatedReplicationServer; }
149 inline void SetUseDedicatedReplicationServer(bool value) {
150 m_useDedicatedReplicationServerHasBeenSet = true;
151 m_useDedicatedReplicationServer = value;
152 }
155 return *this;
156 }
158
160
164 return m_defaultLargeStagingDiskType;
165 }
167 m_defaultLargeStagingDiskTypeHasBeenSet = true;
168 m_defaultLargeStagingDiskType = value;
169 }
172 return *this;
173 }
175
177
180 inline const Aws::Vector<ReplicationConfigurationReplicatedDisk>& GetReplicatedDisks() const { return m_replicatedDisks; }
181 template <typename ReplicatedDisksT = Aws::Vector<ReplicationConfigurationReplicatedDisk>>
182 void SetReplicatedDisks(ReplicatedDisksT&& value) {
183 m_replicatedDisksHasBeenSet = true;
184 m_replicatedDisks = std::forward<ReplicatedDisksT>(value);
185 }
186 template <typename ReplicatedDisksT = Aws::Vector<ReplicationConfigurationReplicatedDisk>>
188 SetReplicatedDisks(std::forward<ReplicatedDisksT>(value));
189 return *this;
190 }
191 template <typename ReplicatedDisksT = ReplicationConfigurationReplicatedDisk>
193 m_replicatedDisksHasBeenSet = true;
194 m_replicatedDisks.emplace_back(std::forward<ReplicatedDisksT>(value));
195 return *this;
196 }
198
200
203 inline ReplicationConfigurationEbsEncryption GetEbsEncryption() const { return m_ebsEncryption; }
205 m_ebsEncryptionHasBeenSet = true;
206 m_ebsEncryption = value;
207 }
209 SetEbsEncryption(value);
210 return *this;
211 }
213
215
218 inline const Aws::String& GetEbsEncryptionKeyArn() const { return m_ebsEncryptionKeyArn; }
219 template <typename EbsEncryptionKeyArnT = Aws::String>
220 void SetEbsEncryptionKeyArn(EbsEncryptionKeyArnT&& value) {
221 m_ebsEncryptionKeyArnHasBeenSet = true;
222 m_ebsEncryptionKeyArn = std::forward<EbsEncryptionKeyArnT>(value);
223 }
224 template <typename EbsEncryptionKeyArnT = Aws::String>
226 SetEbsEncryptionKeyArn(std::forward<EbsEncryptionKeyArnT>(value));
227 return *this;
228 }
230
232
235 inline long long GetBandwidthThrottling() const { return m_bandwidthThrottling; }
236 inline void SetBandwidthThrottling(long long value) {
237 m_bandwidthThrottlingHasBeenSet = true;
238 m_bandwidthThrottling = value;
239 }
242 return *this;
243 }
245
247
250 inline ReplicationConfigurationDataPlaneRouting GetDataPlaneRouting() const { return m_dataPlaneRouting; }
252 m_dataPlaneRoutingHasBeenSet = true;
253 m_dataPlaneRouting = value;
254 }
256 SetDataPlaneRouting(value);
257 return *this;
258 }
260
262
265 inline bool GetCreatePublicIP() const { return m_createPublicIP; }
266 inline void SetCreatePublicIP(bool value) {
267 m_createPublicIPHasBeenSet = true;
268 m_createPublicIP = value;
269 }
271 SetCreatePublicIP(value);
272 return *this;
273 }
275
277
280 inline const Aws::Map<Aws::String, Aws::String>& GetStagingAreaTags() const { return m_stagingAreaTags; }
281 template <typename StagingAreaTagsT = Aws::Map<Aws::String, Aws::String>>
282 void SetStagingAreaTags(StagingAreaTagsT&& value) {
283 m_stagingAreaTagsHasBeenSet = true;
284 m_stagingAreaTags = std::forward<StagingAreaTagsT>(value);
285 }
286 template <typename StagingAreaTagsT = Aws::Map<Aws::String, Aws::String>>
288 SetStagingAreaTags(std::forward<StagingAreaTagsT>(value));
289 return *this;
290 }
291 template <typename StagingAreaTagsKeyT = Aws::String, typename StagingAreaTagsValueT = Aws::String>
292 GetReplicationConfigurationResult& AddStagingAreaTags(StagingAreaTagsKeyT&& key, StagingAreaTagsValueT&& value) {
293 m_stagingAreaTagsHasBeenSet = true;
294 m_stagingAreaTags.emplace(std::forward<StagingAreaTagsKeyT>(key), std::forward<StagingAreaTagsValueT>(value));
295 return *this;
296 }
298
300
303 inline bool GetUseFipsEndpoint() const { return m_useFipsEndpoint; }
304 inline void SetUseFipsEndpoint(bool value) {
305 m_useFipsEndpointHasBeenSet = true;
306 m_useFipsEndpoint = value;
307 }
309 SetUseFipsEndpoint(value);
310 return *this;
311 }
313
315
318 inline InternetProtocol GetInternetProtocol() const { return m_internetProtocol; }
320 m_internetProtocolHasBeenSet = true;
321 m_internetProtocol = value;
322 }
324 SetInternetProtocol(value);
325 return *this;
326 }
328
330
333 inline bool GetStoreSnapshotOnLocalZone() const { return m_storeSnapshotOnLocalZone; }
334 inline void SetStoreSnapshotOnLocalZone(bool value) {
335 m_storeSnapshotOnLocalZoneHasBeenSet = true;
336 m_storeSnapshotOnLocalZone = value;
337 }
340 return *this;
341 }
343
345
346 inline const Aws::String& GetRequestId() const { return m_requestId; }
347 template <typename RequestIdT = Aws::String>
348 void SetRequestId(RequestIdT&& value) {
349 m_requestIdHasBeenSet = true;
350 m_requestId = std::forward<RequestIdT>(value);
351 }
352 template <typename RequestIdT = Aws::String>
354 SetRequestId(std::forward<RequestIdT>(value));
355 return *this;
356 }
358 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
359
360 private:
361 Aws::String m_sourceServerID;
362
363 Aws::String m_name;
364
365 Aws::String m_stagingAreaSubnetId;
366
367 bool m_associateDefaultSecurityGroup{false};
368
369 Aws::Vector<Aws::String> m_replicationServersSecurityGroupsIDs;
370
371 Aws::String m_replicationServerInstanceType;
372
373 bool m_useDedicatedReplicationServer{false};
374
375 ReplicationConfigurationDefaultLargeStagingDiskType m_defaultLargeStagingDiskType{
377
379
381
382 Aws::String m_ebsEncryptionKeyArn;
383
384 long long m_bandwidthThrottling{0};
385
387
388 bool m_createPublicIP{false};
389
390 Aws::Map<Aws::String, Aws::String> m_stagingAreaTags;
391
392 bool m_useFipsEndpoint{false};
393
395
396 bool m_storeSnapshotOnLocalZone{false};
397
398 Aws::String m_requestId;
399 Aws::Http::HttpResponseCode m_HttpResponseCode;
400 bool m_sourceServerIDHasBeenSet = false;
401 bool m_nameHasBeenSet = false;
402 bool m_stagingAreaSubnetIdHasBeenSet = false;
403 bool m_associateDefaultSecurityGroupHasBeenSet = false;
404 bool m_replicationServersSecurityGroupsIDsHasBeenSet = false;
405 bool m_replicationServerInstanceTypeHasBeenSet = false;
406 bool m_useDedicatedReplicationServerHasBeenSet = false;
407 bool m_defaultLargeStagingDiskTypeHasBeenSet = false;
408 bool m_replicatedDisksHasBeenSet = false;
409 bool m_ebsEncryptionHasBeenSet = false;
410 bool m_ebsEncryptionKeyArnHasBeenSet = false;
411 bool m_bandwidthThrottlingHasBeenSet = false;
412 bool m_dataPlaneRoutingHasBeenSet = false;
413 bool m_createPublicIPHasBeenSet = false;
414 bool m_stagingAreaTagsHasBeenSet = false;
415 bool m_useFipsEndpointHasBeenSet = false;
416 bool m_internetProtocolHasBeenSet = false;
417 bool m_storeSnapshotOnLocalZoneHasBeenSet = false;
418 bool m_requestIdHasBeenSet = false;
419};
420
421} // namespace Model
422} // namespace mgn
423} // namespace Aws
GetReplicationConfigurationResult & WithStagingAreaSubnetId(StagingAreaSubnetIdT &&value)
const Aws::Vector< Aws::String > & GetReplicationServersSecurityGroupsIDs() const
GetReplicationConfigurationResult & WithName(NameT &&value)
ReplicationConfigurationEbsEncryption GetEbsEncryption() const
GetReplicationConfigurationResult & WithBandwidthThrottling(long long value)
GetReplicationConfigurationResult & WithCreatePublicIP(bool value)
ReplicationConfigurationDefaultLargeStagingDiskType GetDefaultLargeStagingDiskType() const
GetReplicationConfigurationResult & AddReplicationServersSecurityGroupsIDs(ReplicationServersSecurityGroupsIDsT &&value)
GetReplicationConfigurationResult & WithRequestId(RequestIdT &&value)
GetReplicationConfigurationResult & WithReplicationServersSecurityGroupsIDs(ReplicationServersSecurityGroupsIDsT &&value)
GetReplicationConfigurationResult & WithAssociateDefaultSecurityGroup(bool value)
AWS_MGN_API GetReplicationConfigurationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetReplicationConfigurationResult & AddStagingAreaTags(StagingAreaTagsKeyT &&key, StagingAreaTagsValueT &&value)
GetReplicationConfigurationResult & WithDataPlaneRouting(ReplicationConfigurationDataPlaneRouting value)
GetReplicationConfigurationResult & WithInternetProtocol(InternetProtocol value)
void SetEbsEncryption(ReplicationConfigurationEbsEncryption value)
ReplicationConfigurationDataPlaneRouting GetDataPlaneRouting() const
AWS_MGN_API GetReplicationConfigurationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetReplicationConfigurationResult & AddReplicatedDisks(ReplicatedDisksT &&value)
GetReplicationConfigurationResult & WithUseFipsEndpoint(bool value)
void SetDataPlaneRouting(ReplicationConfigurationDataPlaneRouting value)
GetReplicationConfigurationResult & WithEbsEncryptionKeyArn(EbsEncryptionKeyArnT &&value)
GetReplicationConfigurationResult & WithSourceServerID(SourceServerIDT &&value)
void SetDefaultLargeStagingDiskType(ReplicationConfigurationDefaultLargeStagingDiskType value)
GetReplicationConfigurationResult & WithStoreSnapshotOnLocalZone(bool value)
GetReplicationConfigurationResult & WithReplicationServerInstanceType(ReplicationServerInstanceTypeT &&value)
void SetReplicationServersSecurityGroupsIDs(ReplicationServersSecurityGroupsIDsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetStagingAreaTags() const
GetReplicationConfigurationResult & WithUseDedicatedReplicationServer(bool value)
void SetReplicationServerInstanceType(ReplicationServerInstanceTypeT &&value)
GetReplicationConfigurationResult & WithStagingAreaTags(StagingAreaTagsT &&value)
GetReplicationConfigurationResult & WithReplicatedDisks(ReplicatedDisksT &&value)
GetReplicationConfigurationResult & WithEbsEncryption(ReplicationConfigurationEbsEncryption value)
const Aws::Vector< ReplicationConfigurationReplicatedDisk > & GetReplicatedDisks() const
GetReplicationConfigurationResult & WithDefaultLargeStagingDiskType(ReplicationConfigurationDefaultLargeStagingDiskType 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
Aws::Utils::Json::JsonValue JsonValue