AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DisconnectSourceServerResult.h
1
6#pragma once
7#include <aws/drs/Drs_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/drs/model/DataReplicationInfo.h>
10#include <aws/drs/model/LastLaunchResult.h>
11#include <aws/drs/model/LifeCycle.h>
12#include <aws/drs/model/ReplicationDirection.h>
13#include <aws/drs/model/SourceCloudProperties.h>
14#include <aws/drs/model/SourceProperties.h>
15#include <aws/drs/model/StagingArea.h>
16#include <aws/core/utils/memory/stl/AWSMap.h>
17#include <utility>
18
19namespace Aws
20{
21template<typename RESULT_TYPE>
22class AmazonWebServiceResult;
23
24namespace Utils
25{
26namespace Json
27{
28 class JsonValue;
29} // namespace Json
30} // namespace Utils
31namespace drs
32{
33namespace Model
34{
36 {
37 public:
38 AWS_DRS_API DisconnectSourceServerResult() = default;
41
42
44
47 inline const Aws::String& GetAgentVersion() const { return m_agentVersion; }
48 template<typename AgentVersionT = Aws::String>
49 void SetAgentVersion(AgentVersionT&& value) { m_agentVersionHasBeenSet = true; m_agentVersion = std::forward<AgentVersionT>(value); }
50 template<typename AgentVersionT = Aws::String>
51 DisconnectSourceServerResult& WithAgentVersion(AgentVersionT&& value) { SetAgentVersion(std::forward<AgentVersionT>(value)); return *this;}
53
55
58 inline const Aws::String& GetArn() const { return m_arn; }
59 template<typename ArnT = Aws::String>
60 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
61 template<typename ArnT = Aws::String>
62 DisconnectSourceServerResult& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
64
66
69 inline const DataReplicationInfo& GetDataReplicationInfo() const { return m_dataReplicationInfo; }
70 template<typename DataReplicationInfoT = DataReplicationInfo>
71 void SetDataReplicationInfo(DataReplicationInfoT&& value) { m_dataReplicationInfoHasBeenSet = true; m_dataReplicationInfo = std::forward<DataReplicationInfoT>(value); }
72 template<typename DataReplicationInfoT = DataReplicationInfo>
73 DisconnectSourceServerResult& WithDataReplicationInfo(DataReplicationInfoT&& value) { SetDataReplicationInfo(std::forward<DataReplicationInfoT>(value)); return *this;}
75
77
80 inline LastLaunchResult GetLastLaunchResult() const { return m_lastLaunchResult; }
81 inline void SetLastLaunchResult(LastLaunchResult value) { m_lastLaunchResultHasBeenSet = true; m_lastLaunchResult = value; }
84
86
89 inline const LifeCycle& GetLifeCycle() const { return m_lifeCycle; }
90 template<typename LifeCycleT = LifeCycle>
91 void SetLifeCycle(LifeCycleT&& value) { m_lifeCycleHasBeenSet = true; m_lifeCycle = std::forward<LifeCycleT>(value); }
92 template<typename LifeCycleT = LifeCycle>
93 DisconnectSourceServerResult& WithLifeCycle(LifeCycleT&& value) { SetLifeCycle(std::forward<LifeCycleT>(value)); return *this;}
95
97
100 inline const Aws::String& GetRecoveryInstanceId() const { return m_recoveryInstanceId; }
101 template<typename RecoveryInstanceIdT = Aws::String>
102 void SetRecoveryInstanceId(RecoveryInstanceIdT&& value) { m_recoveryInstanceIdHasBeenSet = true; m_recoveryInstanceId = std::forward<RecoveryInstanceIdT>(value); }
103 template<typename RecoveryInstanceIdT = Aws::String>
104 DisconnectSourceServerResult& WithRecoveryInstanceId(RecoveryInstanceIdT&& value) { SetRecoveryInstanceId(std::forward<RecoveryInstanceIdT>(value)); return *this;}
106
108
111 inline ReplicationDirection GetReplicationDirection() const { return m_replicationDirection; }
112 inline void SetReplicationDirection(ReplicationDirection value) { m_replicationDirectionHasBeenSet = true; m_replicationDirection = value; }
115
117
122 inline const Aws::String& GetReversedDirectionSourceServerArn() const { return m_reversedDirectionSourceServerArn; }
123 template<typename ReversedDirectionSourceServerArnT = Aws::String>
124 void SetReversedDirectionSourceServerArn(ReversedDirectionSourceServerArnT&& value) { m_reversedDirectionSourceServerArnHasBeenSet = true; m_reversedDirectionSourceServerArn = std::forward<ReversedDirectionSourceServerArnT>(value); }
125 template<typename ReversedDirectionSourceServerArnT = Aws::String>
126 DisconnectSourceServerResult& WithReversedDirectionSourceServerArn(ReversedDirectionSourceServerArnT&& value) { SetReversedDirectionSourceServerArn(std::forward<ReversedDirectionSourceServerArnT>(value)); return *this;}
128
130
133 inline const SourceCloudProperties& GetSourceCloudProperties() const { return m_sourceCloudProperties; }
134 template<typename SourceCloudPropertiesT = SourceCloudProperties>
135 void SetSourceCloudProperties(SourceCloudPropertiesT&& value) { m_sourceCloudPropertiesHasBeenSet = true; m_sourceCloudProperties = std::forward<SourceCloudPropertiesT>(value); }
136 template<typename SourceCloudPropertiesT = SourceCloudProperties>
137 DisconnectSourceServerResult& WithSourceCloudProperties(SourceCloudPropertiesT&& value) { SetSourceCloudProperties(std::forward<SourceCloudPropertiesT>(value)); return *this;}
139
141
145 inline const Aws::String& GetSourceNetworkID() const { return m_sourceNetworkID; }
146 template<typename SourceNetworkIDT = Aws::String>
147 void SetSourceNetworkID(SourceNetworkIDT&& value) { m_sourceNetworkIDHasBeenSet = true; m_sourceNetworkID = std::forward<SourceNetworkIDT>(value); }
148 template<typename SourceNetworkIDT = Aws::String>
149 DisconnectSourceServerResult& WithSourceNetworkID(SourceNetworkIDT&& value) { SetSourceNetworkID(std::forward<SourceNetworkIDT>(value)); return *this;}
151
153
156 inline const SourceProperties& GetSourceProperties() const { return m_sourceProperties; }
157 template<typename SourcePropertiesT = SourceProperties>
158 void SetSourceProperties(SourcePropertiesT&& value) { m_sourcePropertiesHasBeenSet = true; m_sourceProperties = std::forward<SourcePropertiesT>(value); }
159 template<typename SourcePropertiesT = SourceProperties>
160 DisconnectSourceServerResult& WithSourceProperties(SourcePropertiesT&& value) { SetSourceProperties(std::forward<SourcePropertiesT>(value)); return *this;}
162
164
167 inline const Aws::String& GetSourceServerID() const { return m_sourceServerID; }
168 template<typename SourceServerIDT = Aws::String>
169 void SetSourceServerID(SourceServerIDT&& value) { m_sourceServerIDHasBeenSet = true; m_sourceServerID = std::forward<SourceServerIDT>(value); }
170 template<typename SourceServerIDT = Aws::String>
171 DisconnectSourceServerResult& WithSourceServerID(SourceServerIDT&& value) { SetSourceServerID(std::forward<SourceServerIDT>(value)); return *this;}
173
175
178 inline const StagingArea& GetStagingArea() const { return m_stagingArea; }
179 template<typename StagingAreaT = StagingArea>
180 void SetStagingArea(StagingAreaT&& value) { m_stagingAreaHasBeenSet = true; m_stagingArea = std::forward<StagingAreaT>(value); }
181 template<typename StagingAreaT = StagingArea>
182 DisconnectSourceServerResult& WithStagingArea(StagingAreaT&& value) { SetStagingArea(std::forward<StagingAreaT>(value)); return *this;}
184
186
189 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
190 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
191 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
192 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
193 DisconnectSourceServerResult& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
194 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
195 DisconnectSourceServerResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
196 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
197 }
199
201
202 inline const Aws::String& GetRequestId() const { return m_requestId; }
203 template<typename RequestIdT = Aws::String>
204 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
205 template<typename RequestIdT = Aws::String>
206 DisconnectSourceServerResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
208 private:
209
210 Aws::String m_agentVersion;
211 bool m_agentVersionHasBeenSet = false;
212
213 Aws::String m_arn;
214 bool m_arnHasBeenSet = false;
215
216 DataReplicationInfo m_dataReplicationInfo;
217 bool m_dataReplicationInfoHasBeenSet = false;
218
220 bool m_lastLaunchResultHasBeenSet = false;
221
222 LifeCycle m_lifeCycle;
223 bool m_lifeCycleHasBeenSet = false;
224
225 Aws::String m_recoveryInstanceId;
226 bool m_recoveryInstanceIdHasBeenSet = false;
227
229 bool m_replicationDirectionHasBeenSet = false;
230
231 Aws::String m_reversedDirectionSourceServerArn;
232 bool m_reversedDirectionSourceServerArnHasBeenSet = false;
233
234 SourceCloudProperties m_sourceCloudProperties;
235 bool m_sourceCloudPropertiesHasBeenSet = false;
236
237 Aws::String m_sourceNetworkID;
238 bool m_sourceNetworkIDHasBeenSet = false;
239
240 SourceProperties m_sourceProperties;
241 bool m_sourcePropertiesHasBeenSet = false;
242
243 Aws::String m_sourceServerID;
244 bool m_sourceServerIDHasBeenSet = false;
245
246 StagingArea m_stagingArea;
247 bool m_stagingAreaHasBeenSet = false;
248
250 bool m_tagsHasBeenSet = false;
251
252 Aws::String m_requestId;
253 bool m_requestIdHasBeenSet = false;
254 };
255
256} // namespace Model
257} // namespace drs
258} // 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