AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
SourceServer.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 {
21namespace Utils {
22namespace Json {
23class JsonValue;
24class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace drs {
28namespace Model {
29
31 public:
32 AWS_DRS_API SourceServer() = default;
36
38
41 inline const Aws::String& GetAgentVersion() const { return m_agentVersion; }
42 inline bool AgentVersionHasBeenSet() const { return m_agentVersionHasBeenSet; }
43 template <typename AgentVersionT = Aws::String>
44 void SetAgentVersion(AgentVersionT&& value) {
45 m_agentVersionHasBeenSet = true;
46 m_agentVersion = std::forward<AgentVersionT>(value);
47 }
48 template <typename AgentVersionT = Aws::String>
49 SourceServer& WithAgentVersion(AgentVersionT&& value) {
50 SetAgentVersion(std::forward<AgentVersionT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetArn() const { return m_arn; }
60 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
61 template <typename ArnT = Aws::String>
62 void SetArn(ArnT&& value) {
63 m_arnHasBeenSet = true;
64 m_arn = std::forward<ArnT>(value);
65 }
66 template <typename ArnT = Aws::String>
67 SourceServer& WithArn(ArnT&& value) {
68 SetArn(std::forward<ArnT>(value));
69 return *this;
70 }
72
74
77 inline const DataReplicationInfo& GetDataReplicationInfo() const { return m_dataReplicationInfo; }
78 inline bool DataReplicationInfoHasBeenSet() const { return m_dataReplicationInfoHasBeenSet; }
79 template <typename DataReplicationInfoT = DataReplicationInfo>
80 void SetDataReplicationInfo(DataReplicationInfoT&& value) {
81 m_dataReplicationInfoHasBeenSet = true;
82 m_dataReplicationInfo = std::forward<DataReplicationInfoT>(value);
83 }
84 template <typename DataReplicationInfoT = DataReplicationInfo>
85 SourceServer& WithDataReplicationInfo(DataReplicationInfoT&& value) {
86 SetDataReplicationInfo(std::forward<DataReplicationInfoT>(value));
87 return *this;
88 }
90
92
95 inline LastLaunchResult GetLastLaunchResult() const { return m_lastLaunchResult; }
96 inline bool LastLaunchResultHasBeenSet() const { return m_lastLaunchResultHasBeenSet; }
98 m_lastLaunchResultHasBeenSet = true;
99 m_lastLaunchResult = value;
100 }
102 SetLastLaunchResult(value);
103 return *this;
104 }
106
108
111 inline const LifeCycle& GetLifeCycle() const { return m_lifeCycle; }
112 inline bool LifeCycleHasBeenSet() const { return m_lifeCycleHasBeenSet; }
113 template <typename LifeCycleT = LifeCycle>
114 void SetLifeCycle(LifeCycleT&& value) {
115 m_lifeCycleHasBeenSet = true;
116 m_lifeCycle = std::forward<LifeCycleT>(value);
117 }
118 template <typename LifeCycleT = LifeCycle>
119 SourceServer& WithLifeCycle(LifeCycleT&& value) {
120 SetLifeCycle(std::forward<LifeCycleT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::String& GetRecoveryInstanceId() const { return m_recoveryInstanceId; }
130 inline bool RecoveryInstanceIdHasBeenSet() const { return m_recoveryInstanceIdHasBeenSet; }
131 template <typename RecoveryInstanceIdT = Aws::String>
132 void SetRecoveryInstanceId(RecoveryInstanceIdT&& value) {
133 m_recoveryInstanceIdHasBeenSet = true;
134 m_recoveryInstanceId = std::forward<RecoveryInstanceIdT>(value);
135 }
136 template <typename RecoveryInstanceIdT = Aws::String>
137 SourceServer& WithRecoveryInstanceId(RecoveryInstanceIdT&& value) {
138 SetRecoveryInstanceId(std::forward<RecoveryInstanceIdT>(value));
139 return *this;
140 }
142
144
147 inline ReplicationDirection GetReplicationDirection() const { return m_replicationDirection; }
148 inline bool ReplicationDirectionHasBeenSet() const { return m_replicationDirectionHasBeenSet; }
150 m_replicationDirectionHasBeenSet = true;
151 m_replicationDirection = value;
152 }
155 return *this;
156 }
158
160
165 inline const Aws::String& GetReversedDirectionSourceServerArn() const { return m_reversedDirectionSourceServerArn; }
166 inline bool ReversedDirectionSourceServerArnHasBeenSet() const { return m_reversedDirectionSourceServerArnHasBeenSet; }
167 template <typename ReversedDirectionSourceServerArnT = Aws::String>
168 void SetReversedDirectionSourceServerArn(ReversedDirectionSourceServerArnT&& value) {
169 m_reversedDirectionSourceServerArnHasBeenSet = true;
170 m_reversedDirectionSourceServerArn = std::forward<ReversedDirectionSourceServerArnT>(value);
171 }
172 template <typename ReversedDirectionSourceServerArnT = Aws::String>
173 SourceServer& WithReversedDirectionSourceServerArn(ReversedDirectionSourceServerArnT&& value) {
174 SetReversedDirectionSourceServerArn(std::forward<ReversedDirectionSourceServerArnT>(value));
175 return *this;
176 }
178
180
183 inline const SourceCloudProperties& GetSourceCloudProperties() const { return m_sourceCloudProperties; }
184 inline bool SourceCloudPropertiesHasBeenSet() const { return m_sourceCloudPropertiesHasBeenSet; }
185 template <typename SourceCloudPropertiesT = SourceCloudProperties>
186 void SetSourceCloudProperties(SourceCloudPropertiesT&& value) {
187 m_sourceCloudPropertiesHasBeenSet = true;
188 m_sourceCloudProperties = std::forward<SourceCloudPropertiesT>(value);
189 }
190 template <typename SourceCloudPropertiesT = SourceCloudProperties>
191 SourceServer& WithSourceCloudProperties(SourceCloudPropertiesT&& value) {
192 SetSourceCloudProperties(std::forward<SourceCloudPropertiesT>(value));
193 return *this;
194 }
196
198
202 inline const Aws::String& GetSourceNetworkID() const { return m_sourceNetworkID; }
203 inline bool SourceNetworkIDHasBeenSet() const { return m_sourceNetworkIDHasBeenSet; }
204 template <typename SourceNetworkIDT = Aws::String>
205 void SetSourceNetworkID(SourceNetworkIDT&& value) {
206 m_sourceNetworkIDHasBeenSet = true;
207 m_sourceNetworkID = std::forward<SourceNetworkIDT>(value);
208 }
209 template <typename SourceNetworkIDT = Aws::String>
210 SourceServer& WithSourceNetworkID(SourceNetworkIDT&& value) {
211 SetSourceNetworkID(std::forward<SourceNetworkIDT>(value));
212 return *this;
213 }
215
217
220 inline const SourceProperties& GetSourceProperties() const { return m_sourceProperties; }
221 inline bool SourcePropertiesHasBeenSet() const { return m_sourcePropertiesHasBeenSet; }
222 template <typename SourcePropertiesT = SourceProperties>
223 void SetSourceProperties(SourcePropertiesT&& value) {
224 m_sourcePropertiesHasBeenSet = true;
225 m_sourceProperties = std::forward<SourcePropertiesT>(value);
226 }
227 template <typename SourcePropertiesT = SourceProperties>
228 SourceServer& WithSourceProperties(SourcePropertiesT&& value) {
229 SetSourceProperties(std::forward<SourcePropertiesT>(value));
230 return *this;
231 }
233
235
238 inline const Aws::String& GetSourceServerID() const { return m_sourceServerID; }
239 inline bool SourceServerIDHasBeenSet() const { return m_sourceServerIDHasBeenSet; }
240 template <typename SourceServerIDT = Aws::String>
241 void SetSourceServerID(SourceServerIDT&& value) {
242 m_sourceServerIDHasBeenSet = true;
243 m_sourceServerID = std::forward<SourceServerIDT>(value);
244 }
245 template <typename SourceServerIDT = Aws::String>
246 SourceServer& WithSourceServerID(SourceServerIDT&& value) {
247 SetSourceServerID(std::forward<SourceServerIDT>(value));
248 return *this;
249 }
251
253
256 inline const StagingArea& GetStagingArea() const { return m_stagingArea; }
257 inline bool StagingAreaHasBeenSet() const { return m_stagingAreaHasBeenSet; }
258 template <typename StagingAreaT = StagingArea>
259 void SetStagingArea(StagingAreaT&& value) {
260 m_stagingAreaHasBeenSet = true;
261 m_stagingArea = std::forward<StagingAreaT>(value);
262 }
263 template <typename StagingAreaT = StagingArea>
264 SourceServer& WithStagingArea(StagingAreaT&& value) {
265 SetStagingArea(std::forward<StagingAreaT>(value));
266 return *this;
267 }
269
271
274 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
275 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
276 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
277 void SetTags(TagsT&& value) {
278 m_tagsHasBeenSet = true;
279 m_tags = std::forward<TagsT>(value);
280 }
281 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
282 SourceServer& WithTags(TagsT&& value) {
283 SetTags(std::forward<TagsT>(value));
284 return *this;
285 }
286 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
287 SourceServer& AddTags(TagsKeyT&& key, TagsValueT&& value) {
288 m_tagsHasBeenSet = true;
289 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
290 return *this;
291 }
293
295
296 inline const Aws::String& GetRequestId() const { return m_requestId; }
297 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
298 template <typename RequestIdT = Aws::String>
299 void SetRequestId(RequestIdT&& value) {
300 m_requestIdHasBeenSet = true;
301 m_requestId = std::forward<RequestIdT>(value);
302 }
303 template <typename RequestIdT = Aws::String>
304 SourceServer& WithRequestId(RequestIdT&& value) {
305 SetRequestId(std::forward<RequestIdT>(value));
306 return *this;
307 }
309 private:
310 Aws::String m_agentVersion;
311
312 Aws::String m_arn;
313
314 DataReplicationInfo m_dataReplicationInfo;
315
317
318 LifeCycle m_lifeCycle;
319
320 Aws::String m_recoveryInstanceId;
321
323
324 Aws::String m_reversedDirectionSourceServerArn;
325
326 SourceCloudProperties m_sourceCloudProperties;
327
328 Aws::String m_sourceNetworkID;
329
330 SourceProperties m_sourceProperties;
331
332 Aws::String m_sourceServerID;
333
334 StagingArea m_stagingArea;
335
337
338 Aws::String m_requestId;
339 bool m_agentVersionHasBeenSet = false;
340 bool m_arnHasBeenSet = false;
341 bool m_dataReplicationInfoHasBeenSet = false;
342 bool m_lastLaunchResultHasBeenSet = false;
343 bool m_lifeCycleHasBeenSet = false;
344 bool m_recoveryInstanceIdHasBeenSet = false;
345 bool m_replicationDirectionHasBeenSet = false;
346 bool m_reversedDirectionSourceServerArnHasBeenSet = false;
347 bool m_sourceCloudPropertiesHasBeenSet = false;
348 bool m_sourceNetworkIDHasBeenSet = false;
349 bool m_sourcePropertiesHasBeenSet = false;
350 bool m_sourceServerIDHasBeenSet = false;
351 bool m_stagingAreaHasBeenSet = false;
352 bool m_tagsHasBeenSet = false;
353 bool m_requestIdHasBeenSet = false;
354};
355
356} // namespace Model
357} // namespace drs
358} // namespace Aws
ReplicationDirection GetReplicationDirection() const
void SetDataReplicationInfo(DataReplicationInfoT &&value)
const Aws::String & GetSourceServerID() const
SourceServer & WithStagingArea(StagingAreaT &&value)
bool ReplicationDirectionHasBeenSet() const
void SetArn(ArnT &&value)
AWS_DRS_API Aws::Utils::Json::JsonValue Jsonize() const
bool SourcePropertiesHasBeenSet() const
SourceServer & WithSourceNetworkID(SourceNetworkIDT &&value)
bool LastLaunchResultHasBeenSet() const
SourceServer & WithRecoveryInstanceId(RecoveryInstanceIdT &&value)
SourceServer & AddTags(TagsKeyT &&key, TagsValueT &&value)
SourceServer & WithTags(TagsT &&value)
SourceServer & WithArn(ArnT &&value)
SourceServer & WithReplicationDirection(ReplicationDirection value)
bool ReversedDirectionSourceServerArnHasBeenSet() const
const Aws::String & GetRecoveryInstanceId() const
SourceServer & WithRequestId(RequestIdT &&value)
const Aws::String & GetSourceNetworkID() const
void SetRequestId(RequestIdT &&value)
SourceServer & WithSourceCloudProperties(SourceCloudPropertiesT &&value)
SourceServer & WithLastLaunchResult(LastLaunchResult value)
const SourceCloudProperties & GetSourceCloudProperties() const
SourceServer & WithLifeCycle(LifeCycleT &&value)
void SetSourceCloudProperties(SourceCloudPropertiesT &&value)
const Aws::String & GetAgentVersion() const
void SetReplicationDirection(ReplicationDirection value)
const StagingArea & GetStagingArea() const
bool SourceCloudPropertiesHasBeenSet() const
SourceServer & WithDataReplicationInfo(DataReplicationInfoT &&value)
const LifeCycle & GetLifeCycle() const
SourceServer & WithSourceProperties(SourcePropertiesT &&value)
const Aws::String & GetReversedDirectionSourceServerArn() const
SourceServer & WithAgentVersion(AgentVersionT &&value)
void SetAgentVersion(AgentVersionT &&value)
void SetRecoveryInstanceId(RecoveryInstanceIdT &&value)
void SetSourceServerID(SourceServerIDT &&value)
void SetSourceNetworkID(SourceNetworkIDT &&value)
void SetTags(TagsT &&value)
const DataReplicationInfo & GetDataReplicationInfo() const
bool RecoveryInstanceIdHasBeenSet() const
SourceServer & WithSourceServerID(SourceServerIDT &&value)
bool DataReplicationInfoHasBeenSet() const
AWS_DRS_API SourceServer & operator=(Aws::Utils::Json::JsonView jsonValue)
const SourceProperties & GetSourceProperties() const
void SetStagingArea(StagingAreaT &&value)
void SetSourceProperties(SourcePropertiesT &&value)
LastLaunchResult GetLastLaunchResult() const
void SetLifeCycle(LifeCycleT &&value)
AWS_DRS_API SourceServer(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetArn() const
SourceServer & WithReversedDirectionSourceServerArn(ReversedDirectionSourceServerArnT &&value)
AWS_DRS_API SourceServer()=default
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetReversedDirectionSourceServerArn(ReversedDirectionSourceServerArnT &&value)
void SetLastLaunchResult(LastLaunchResult value)
const Aws::String & GetRequestId() const
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