AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
DisconnectSourceServerResult.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/drs/Drs_EXPORTS.h>
11#include <aws/drs/model/DataReplicationInfo.h>
12#include <aws/drs/model/LastLaunchResult.h>
13#include <aws/drs/model/LifeCycle.h>
14#include <aws/drs/model/ReplicationDirection.h>
15#include <aws/drs/model/SourceCloudProperties.h>
16#include <aws/drs/model/SourceProperties.h>
17#include <aws/drs/model/StagingArea.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 drs {
31namespace Model {
33 public:
34 AWS_DRS_API DisconnectSourceServerResult() = 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& GetArn() const { return m_arn; }
60 template <typename ArnT = Aws::String>
61 void SetArn(ArnT&& value) {
62 m_arnHasBeenSet = true;
63 m_arn = std::forward<ArnT>(value);
64 }
65 template <typename ArnT = Aws::String>
67 SetArn(std::forward<ArnT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
77 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
78 void SetTags(TagsT&& value) {
79 m_tagsHasBeenSet = true;
80 m_tags = std::forward<TagsT>(value);
81 }
82 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
84 SetTags(std::forward<TagsT>(value));
85 return *this;
86 }
87 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
88 DisconnectSourceServerResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
89 m_tagsHasBeenSet = true;
90 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::String& GetRecoveryInstanceId() const { return m_recoveryInstanceId; }
100 template <typename RecoveryInstanceIdT = Aws::String>
101 void SetRecoveryInstanceId(RecoveryInstanceIdT&& value) {
102 m_recoveryInstanceIdHasBeenSet = true;
103 m_recoveryInstanceId = std::forward<RecoveryInstanceIdT>(value);
104 }
105 template <typename RecoveryInstanceIdT = Aws::String>
107 SetRecoveryInstanceId(std::forward<RecoveryInstanceIdT>(value));
108 return *this;
109 }
111
113
116 inline LastLaunchResult GetLastLaunchResult() const { return m_lastLaunchResult; }
118 m_lastLaunchResultHasBeenSet = true;
119 m_lastLaunchResult = value;
120 }
122 SetLastLaunchResult(value);
123 return *this;
124 }
126
128
131 inline const DataReplicationInfo& GetDataReplicationInfo() const { return m_dataReplicationInfo; }
132 template <typename DataReplicationInfoT = DataReplicationInfo>
133 void SetDataReplicationInfo(DataReplicationInfoT&& value) {
134 m_dataReplicationInfoHasBeenSet = true;
135 m_dataReplicationInfo = std::forward<DataReplicationInfoT>(value);
136 }
137 template <typename DataReplicationInfoT = DataReplicationInfo>
139 SetDataReplicationInfo(std::forward<DataReplicationInfoT>(value));
140 return *this;
141 }
143
145
148 inline const LifeCycle& GetLifeCycle() const { return m_lifeCycle; }
149 template <typename LifeCycleT = LifeCycle>
150 void SetLifeCycle(LifeCycleT&& value) {
151 m_lifeCycleHasBeenSet = true;
152 m_lifeCycle = std::forward<LifeCycleT>(value);
153 }
154 template <typename LifeCycleT = LifeCycle>
156 SetLifeCycle(std::forward<LifeCycleT>(value));
157 return *this;
158 }
160
162
165 inline const SourceProperties& GetSourceProperties() const { return m_sourceProperties; }
166 template <typename SourcePropertiesT = SourceProperties>
167 void SetSourceProperties(SourcePropertiesT&& value) {
168 m_sourcePropertiesHasBeenSet = true;
169 m_sourceProperties = std::forward<SourcePropertiesT>(value);
170 }
171 template <typename SourcePropertiesT = SourceProperties>
173 SetSourceProperties(std::forward<SourcePropertiesT>(value));
174 return *this;
175 }
177
179
182 inline const StagingArea& GetStagingArea() const { return m_stagingArea; }
183 template <typename StagingAreaT = StagingArea>
184 void SetStagingArea(StagingAreaT&& value) {
185 m_stagingAreaHasBeenSet = true;
186 m_stagingArea = std::forward<StagingAreaT>(value);
187 }
188 template <typename StagingAreaT = StagingArea>
190 SetStagingArea(std::forward<StagingAreaT>(value));
191 return *this;
192 }
194
196
199 inline const SourceCloudProperties& GetSourceCloudProperties() const { return m_sourceCloudProperties; }
200 template <typename SourceCloudPropertiesT = SourceCloudProperties>
201 void SetSourceCloudProperties(SourceCloudPropertiesT&& value) {
202 m_sourceCloudPropertiesHasBeenSet = true;
203 m_sourceCloudProperties = std::forward<SourceCloudPropertiesT>(value);
204 }
205 template <typename SourceCloudPropertiesT = SourceCloudProperties>
207 SetSourceCloudProperties(std::forward<SourceCloudPropertiesT>(value));
208 return *this;
209 }
211
213
216 inline ReplicationDirection GetReplicationDirection() const { return m_replicationDirection; }
218 m_replicationDirectionHasBeenSet = true;
219 m_replicationDirection = value;
220 }
223 return *this;
224 }
226
228
233 inline const Aws::String& GetReversedDirectionSourceServerArn() const { return m_reversedDirectionSourceServerArn; }
234 template <typename ReversedDirectionSourceServerArnT = Aws::String>
235 void SetReversedDirectionSourceServerArn(ReversedDirectionSourceServerArnT&& value) {
236 m_reversedDirectionSourceServerArnHasBeenSet = true;
237 m_reversedDirectionSourceServerArn = std::forward<ReversedDirectionSourceServerArnT>(value);
238 }
239 template <typename ReversedDirectionSourceServerArnT = Aws::String>
240 DisconnectSourceServerResult& WithReversedDirectionSourceServerArn(ReversedDirectionSourceServerArnT&& value) {
241 SetReversedDirectionSourceServerArn(std::forward<ReversedDirectionSourceServerArnT>(value));
242 return *this;
243 }
245
247
251 inline const Aws::String& GetSourceNetworkID() const { return m_sourceNetworkID; }
252 template <typename SourceNetworkIDT = Aws::String>
253 void SetSourceNetworkID(SourceNetworkIDT&& value) {
254 m_sourceNetworkIDHasBeenSet = true;
255 m_sourceNetworkID = std::forward<SourceNetworkIDT>(value);
256 }
257 template <typename SourceNetworkIDT = Aws::String>
259 SetSourceNetworkID(std::forward<SourceNetworkIDT>(value));
260 return *this;
261 }
263
265
268 inline const Aws::String& GetAgentVersion() const { return m_agentVersion; }
269 template <typename AgentVersionT = Aws::String>
270 void SetAgentVersion(AgentVersionT&& value) {
271 m_agentVersionHasBeenSet = true;
272 m_agentVersion = std::forward<AgentVersionT>(value);
273 }
274 template <typename AgentVersionT = Aws::String>
276 SetAgentVersion(std::forward<AgentVersionT>(value));
277 return *this;
278 }
280
282
283 inline const Aws::String& GetRequestId() const { return m_requestId; }
284 template <typename RequestIdT = Aws::String>
285 void SetRequestId(RequestIdT&& value) {
286 m_requestIdHasBeenSet = true;
287 m_requestId = std::forward<RequestIdT>(value);
288 }
289 template <typename RequestIdT = Aws::String>
291 SetRequestId(std::forward<RequestIdT>(value));
292 return *this;
293 }
295 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
296
297 private:
298 Aws::String m_sourceServerID;
299
300 Aws::String m_arn;
301
303
304 Aws::String m_recoveryInstanceId;
305
307
308 DataReplicationInfo m_dataReplicationInfo;
309
310 LifeCycle m_lifeCycle;
311
312 SourceProperties m_sourceProperties;
313
314 StagingArea m_stagingArea;
315
316 SourceCloudProperties m_sourceCloudProperties;
317
319
320 Aws::String m_reversedDirectionSourceServerArn;
321
322 Aws::String m_sourceNetworkID;
323
324 Aws::String m_agentVersion;
325
326 Aws::String m_requestId;
327 Aws::Http::HttpResponseCode m_HttpResponseCode;
328 bool m_sourceServerIDHasBeenSet = false;
329 bool m_arnHasBeenSet = false;
330 bool m_tagsHasBeenSet = false;
331 bool m_recoveryInstanceIdHasBeenSet = false;
332 bool m_lastLaunchResultHasBeenSet = false;
333 bool m_dataReplicationInfoHasBeenSet = false;
334 bool m_lifeCycleHasBeenSet = false;
335 bool m_sourcePropertiesHasBeenSet = false;
336 bool m_stagingAreaHasBeenSet = false;
337 bool m_sourceCloudPropertiesHasBeenSet = false;
338 bool m_replicationDirectionHasBeenSet = false;
339 bool m_reversedDirectionSourceServerArnHasBeenSet = false;
340 bool m_sourceNetworkIDHasBeenSet = false;
341 bool m_agentVersionHasBeenSet = false;
342 bool m_requestIdHasBeenSet = false;
343};
344
345} // namespace Model
346} // namespace drs
347} // namespace Aws
DisconnectSourceServerResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
DisconnectSourceServerResult & WithStagingArea(StagingAreaT &&value)
AWS_DRS_API DisconnectSourceServerResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_DRS_API DisconnectSourceServerResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DisconnectSourceServerResult & WithDataReplicationInfo(DataReplicationInfoT &&value)
DisconnectSourceServerResult & WithArn(ArnT &&value)
void SetSourceCloudProperties(SourceCloudPropertiesT &&value)
DisconnectSourceServerResult & WithSourceCloudProperties(SourceCloudPropertiesT &&value)
DisconnectSourceServerResult & WithLifeCycle(LifeCycleT &&value)
DisconnectSourceServerResult & WithTags(TagsT &&value)
const SourceCloudProperties & GetSourceCloudProperties() const
DisconnectSourceServerResult & WithSourceNetworkID(SourceNetworkIDT &&value)
void SetReversedDirectionSourceServerArn(ReversedDirectionSourceServerArnT &&value)
DisconnectSourceServerResult & WithSourceServerID(SourceServerIDT &&value)
DisconnectSourceServerResult & WithReversedDirectionSourceServerArn(ReversedDirectionSourceServerArnT &&value)
DisconnectSourceServerResult & WithAgentVersion(AgentVersionT &&value)
DisconnectSourceServerResult & WithSourceProperties(SourcePropertiesT &&value)
const DataReplicationInfo & GetDataReplicationInfo() const
DisconnectSourceServerResult & WithLastLaunchResult(LastLaunchResult value)
DisconnectSourceServerResult & WithReplicationDirection(ReplicationDirection value)
AWS_DRS_API DisconnectSourceServerResult()=default
DisconnectSourceServerResult & WithRecoveryInstanceId(RecoveryInstanceIdT &&value)
DisconnectSourceServerResult & WithRequestId(RequestIdT &&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
Aws::Utils::Json::JsonValue JsonValue