AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
DisconnectSourceServerResult.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/drs/Drs_EXPORTS.h>
10#include <aws/drs/model/DataReplicationInfo.h>
11#include <aws/drs/model/LastLaunchResult.h>
12#include <aws/drs/model/LifeCycle.h>
13#include <aws/drs/model/ReplicationDirection.h>
14#include <aws/drs/model/SourceCloudProperties.h>
15#include <aws/drs/model/SourceProperties.h>
16#include <aws/drs/model/StagingArea.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 drs {
30namespace Model {
32 public:
33 AWS_DRS_API DisconnectSourceServerResult() = default;
36
38
41 inline const Aws::String& GetAgentVersion() const { return m_agentVersion; }
42 template <typename AgentVersionT = Aws::String>
43 void SetAgentVersion(AgentVersionT&& value) {
44 m_agentVersionHasBeenSet = true;
45 m_agentVersion = std::forward<AgentVersionT>(value);
46 }
47 template <typename AgentVersionT = Aws::String>
49 SetAgentVersion(std::forward<AgentVersionT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetArn() const { return m_arn; }
59 template <typename ArnT = Aws::String>
60 void SetArn(ArnT&& value) {
61 m_arnHasBeenSet = true;
62 m_arn = std::forward<ArnT>(value);
63 }
64 template <typename ArnT = Aws::String>
66 SetArn(std::forward<ArnT>(value));
67 return *this;
68 }
70
72
75 inline const DataReplicationInfo& GetDataReplicationInfo() const { return m_dataReplicationInfo; }
76 template <typename DataReplicationInfoT = DataReplicationInfo>
77 void SetDataReplicationInfo(DataReplicationInfoT&& value) {
78 m_dataReplicationInfoHasBeenSet = true;
79 m_dataReplicationInfo = std::forward<DataReplicationInfoT>(value);
80 }
81 template <typename DataReplicationInfoT = DataReplicationInfo>
83 SetDataReplicationInfo(std::forward<DataReplicationInfoT>(value));
84 return *this;
85 }
87
89
92 inline LastLaunchResult GetLastLaunchResult() const { return m_lastLaunchResult; }
94 m_lastLaunchResultHasBeenSet = true;
95 m_lastLaunchResult = value;
96 }
99 return *this;
100 }
102
104
107 inline const LifeCycle& GetLifeCycle() const { return m_lifeCycle; }
108 template <typename LifeCycleT = LifeCycle>
109 void SetLifeCycle(LifeCycleT&& value) {
110 m_lifeCycleHasBeenSet = true;
111 m_lifeCycle = std::forward<LifeCycleT>(value);
112 }
113 template <typename LifeCycleT = LifeCycle>
115 SetLifeCycle(std::forward<LifeCycleT>(value));
116 return *this;
117 }
119
121
124 inline const Aws::String& GetRecoveryInstanceId() const { return m_recoveryInstanceId; }
125 template <typename RecoveryInstanceIdT = Aws::String>
126 void SetRecoveryInstanceId(RecoveryInstanceIdT&& value) {
127 m_recoveryInstanceIdHasBeenSet = true;
128 m_recoveryInstanceId = std::forward<RecoveryInstanceIdT>(value);
129 }
130 template <typename RecoveryInstanceIdT = Aws::String>
132 SetRecoveryInstanceId(std::forward<RecoveryInstanceIdT>(value));
133 return *this;
134 }
136
138
141 inline ReplicationDirection GetReplicationDirection() const { return m_replicationDirection; }
143 m_replicationDirectionHasBeenSet = true;
144 m_replicationDirection = value;
145 }
148 return *this;
149 }
151
153
158 inline const Aws::String& GetReversedDirectionSourceServerArn() const { return m_reversedDirectionSourceServerArn; }
159 template <typename ReversedDirectionSourceServerArnT = Aws::String>
160 void SetReversedDirectionSourceServerArn(ReversedDirectionSourceServerArnT&& value) {
161 m_reversedDirectionSourceServerArnHasBeenSet = true;
162 m_reversedDirectionSourceServerArn = std::forward<ReversedDirectionSourceServerArnT>(value);
163 }
164 template <typename ReversedDirectionSourceServerArnT = Aws::String>
165 DisconnectSourceServerResult& WithReversedDirectionSourceServerArn(ReversedDirectionSourceServerArnT&& value) {
166 SetReversedDirectionSourceServerArn(std::forward<ReversedDirectionSourceServerArnT>(value));
167 return *this;
168 }
170
172
175 inline const SourceCloudProperties& GetSourceCloudProperties() const { return m_sourceCloudProperties; }
176 template <typename SourceCloudPropertiesT = SourceCloudProperties>
177 void SetSourceCloudProperties(SourceCloudPropertiesT&& value) {
178 m_sourceCloudPropertiesHasBeenSet = true;
179 m_sourceCloudProperties = std::forward<SourceCloudPropertiesT>(value);
180 }
181 template <typename SourceCloudPropertiesT = SourceCloudProperties>
183 SetSourceCloudProperties(std::forward<SourceCloudPropertiesT>(value));
184 return *this;
185 }
187
189
193 inline const Aws::String& GetSourceNetworkID() const { return m_sourceNetworkID; }
194 template <typename SourceNetworkIDT = Aws::String>
195 void SetSourceNetworkID(SourceNetworkIDT&& value) {
196 m_sourceNetworkIDHasBeenSet = true;
197 m_sourceNetworkID = std::forward<SourceNetworkIDT>(value);
198 }
199 template <typename SourceNetworkIDT = Aws::String>
201 SetSourceNetworkID(std::forward<SourceNetworkIDT>(value));
202 return *this;
203 }
205
207
210 inline const SourceProperties& GetSourceProperties() const { return m_sourceProperties; }
211 template <typename SourcePropertiesT = SourceProperties>
212 void SetSourceProperties(SourcePropertiesT&& value) {
213 m_sourcePropertiesHasBeenSet = true;
214 m_sourceProperties = std::forward<SourcePropertiesT>(value);
215 }
216 template <typename SourcePropertiesT = SourceProperties>
218 SetSourceProperties(std::forward<SourcePropertiesT>(value));
219 return *this;
220 }
222
224
227 inline const Aws::String& GetSourceServerID() const { return m_sourceServerID; }
228 template <typename SourceServerIDT = Aws::String>
229 void SetSourceServerID(SourceServerIDT&& value) {
230 m_sourceServerIDHasBeenSet = true;
231 m_sourceServerID = std::forward<SourceServerIDT>(value);
232 }
233 template <typename SourceServerIDT = Aws::String>
235 SetSourceServerID(std::forward<SourceServerIDT>(value));
236 return *this;
237 }
239
241
244 inline const StagingArea& GetStagingArea() const { return m_stagingArea; }
245 template <typename StagingAreaT = StagingArea>
246 void SetStagingArea(StagingAreaT&& value) {
247 m_stagingAreaHasBeenSet = true;
248 m_stagingArea = std::forward<StagingAreaT>(value);
249 }
250 template <typename StagingAreaT = StagingArea>
252 SetStagingArea(std::forward<StagingAreaT>(value));
253 return *this;
254 }
256
258
261 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
262 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
263 void SetTags(TagsT&& value) {
264 m_tagsHasBeenSet = true;
265 m_tags = std::forward<TagsT>(value);
266 }
267 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
269 SetTags(std::forward<TagsT>(value));
270 return *this;
271 }
272 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
273 DisconnectSourceServerResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
274 m_tagsHasBeenSet = true;
275 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
276 return *this;
277 }
279
281
282 inline const Aws::String& GetRequestId() const { return m_requestId; }
283 template <typename RequestIdT = Aws::String>
284 void SetRequestId(RequestIdT&& value) {
285 m_requestIdHasBeenSet = true;
286 m_requestId = std::forward<RequestIdT>(value);
287 }
288 template <typename RequestIdT = Aws::String>
290 SetRequestId(std::forward<RequestIdT>(value));
291 return *this;
292 }
294 private:
295 Aws::String m_agentVersion;
296
297 Aws::String m_arn;
298
299 DataReplicationInfo m_dataReplicationInfo;
300
302
303 LifeCycle m_lifeCycle;
304
305 Aws::String m_recoveryInstanceId;
306
308
309 Aws::String m_reversedDirectionSourceServerArn;
310
311 SourceCloudProperties m_sourceCloudProperties;
312
313 Aws::String m_sourceNetworkID;
314
315 SourceProperties m_sourceProperties;
316
317 Aws::String m_sourceServerID;
318
319 StagingArea m_stagingArea;
320
322
323 Aws::String m_requestId;
324 bool m_agentVersionHasBeenSet = false;
325 bool m_arnHasBeenSet = false;
326 bool m_dataReplicationInfoHasBeenSet = false;
327 bool m_lastLaunchResultHasBeenSet = false;
328 bool m_lifeCycleHasBeenSet = false;
329 bool m_recoveryInstanceIdHasBeenSet = false;
330 bool m_replicationDirectionHasBeenSet = false;
331 bool m_reversedDirectionSourceServerArnHasBeenSet = false;
332 bool m_sourceCloudPropertiesHasBeenSet = false;
333 bool m_sourceNetworkIDHasBeenSet = false;
334 bool m_sourcePropertiesHasBeenSet = false;
335 bool m_sourceServerIDHasBeenSet = false;
336 bool m_stagingAreaHasBeenSet = false;
337 bool m_tagsHasBeenSet = false;
338 bool m_requestIdHasBeenSet = false;
339};
340
341} // namespace Model
342} // namespace drs
343} // namespace Aws
DisconnectSourceServerResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
DisconnectSourceServerResult & WithStagingArea(StagingAreaT &&value)
void SetDataReplicationInfo(DataReplicationInfoT &&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