AWS SDK for C++

AWS SDK for C++ Version 1.11.788

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& GetSourceServerID() const { return m_sourceServerID; }
42 inline bool SourceServerIDHasBeenSet() const { return m_sourceServerIDHasBeenSet; }
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>
49 SourceServer& WithSourceServerID(SourceServerIDT&& value) {
50 SetSourceServerID(std::forward<SourceServerIDT>(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 Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
78 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
79 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
80 void SetTags(TagsT&& value) {
81 m_tagsHasBeenSet = true;
82 m_tags = std::forward<TagsT>(value);
83 }
84 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
85 SourceServer& WithTags(TagsT&& value) {
86 SetTags(std::forward<TagsT>(value));
87 return *this;
88 }
89 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
90 SourceServer& AddTags(TagsKeyT&& key, TagsValueT&& value) {
91 m_tagsHasBeenSet = true;
92 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
93 return *this;
94 }
96
98
101 inline const Aws::String& GetRecoveryInstanceId() const { return m_recoveryInstanceId; }
102 inline bool RecoveryInstanceIdHasBeenSet() const { return m_recoveryInstanceIdHasBeenSet; }
103 template <typename RecoveryInstanceIdT = Aws::String>
104 void SetRecoveryInstanceId(RecoveryInstanceIdT&& value) {
105 m_recoveryInstanceIdHasBeenSet = true;
106 m_recoveryInstanceId = std::forward<RecoveryInstanceIdT>(value);
107 }
108 template <typename RecoveryInstanceIdT = Aws::String>
109 SourceServer& WithRecoveryInstanceId(RecoveryInstanceIdT&& value) {
110 SetRecoveryInstanceId(std::forward<RecoveryInstanceIdT>(value));
111 return *this;
112 }
114
116
119 inline LastLaunchResult GetLastLaunchResult() const { return m_lastLaunchResult; }
120 inline bool LastLaunchResultHasBeenSet() const { return m_lastLaunchResultHasBeenSet; }
122 m_lastLaunchResultHasBeenSet = true;
123 m_lastLaunchResult = value;
124 }
126 SetLastLaunchResult(value);
127 return *this;
128 }
130
132
135 inline const DataReplicationInfo& GetDataReplicationInfo() const { return m_dataReplicationInfo; }
136 inline bool DataReplicationInfoHasBeenSet() const { return m_dataReplicationInfoHasBeenSet; }
137 template <typename DataReplicationInfoT = DataReplicationInfo>
138 void SetDataReplicationInfo(DataReplicationInfoT&& value) {
139 m_dataReplicationInfoHasBeenSet = true;
140 m_dataReplicationInfo = std::forward<DataReplicationInfoT>(value);
141 }
142 template <typename DataReplicationInfoT = DataReplicationInfo>
143 SourceServer& WithDataReplicationInfo(DataReplicationInfoT&& value) {
144 SetDataReplicationInfo(std::forward<DataReplicationInfoT>(value));
145 return *this;
146 }
148
150
153 inline const LifeCycle& GetLifeCycle() const { return m_lifeCycle; }
154 inline bool LifeCycleHasBeenSet() const { return m_lifeCycleHasBeenSet; }
155 template <typename LifeCycleT = LifeCycle>
156 void SetLifeCycle(LifeCycleT&& value) {
157 m_lifeCycleHasBeenSet = true;
158 m_lifeCycle = std::forward<LifeCycleT>(value);
159 }
160 template <typename LifeCycleT = LifeCycle>
161 SourceServer& WithLifeCycle(LifeCycleT&& value) {
162 SetLifeCycle(std::forward<LifeCycleT>(value));
163 return *this;
164 }
166
168
171 inline const SourceProperties& GetSourceProperties() const { return m_sourceProperties; }
172 inline bool SourcePropertiesHasBeenSet() const { return m_sourcePropertiesHasBeenSet; }
173 template <typename SourcePropertiesT = SourceProperties>
174 void SetSourceProperties(SourcePropertiesT&& value) {
175 m_sourcePropertiesHasBeenSet = true;
176 m_sourceProperties = std::forward<SourcePropertiesT>(value);
177 }
178 template <typename SourcePropertiesT = SourceProperties>
179 SourceServer& WithSourceProperties(SourcePropertiesT&& value) {
180 SetSourceProperties(std::forward<SourcePropertiesT>(value));
181 return *this;
182 }
184
186
189 inline const StagingArea& GetStagingArea() const { return m_stagingArea; }
190 inline bool StagingAreaHasBeenSet() const { return m_stagingAreaHasBeenSet; }
191 template <typename StagingAreaT = StagingArea>
192 void SetStagingArea(StagingAreaT&& value) {
193 m_stagingAreaHasBeenSet = true;
194 m_stagingArea = std::forward<StagingAreaT>(value);
195 }
196 template <typename StagingAreaT = StagingArea>
197 SourceServer& WithStagingArea(StagingAreaT&& value) {
198 SetStagingArea(std::forward<StagingAreaT>(value));
199 return *this;
200 }
202
204
207 inline const SourceCloudProperties& GetSourceCloudProperties() const { return m_sourceCloudProperties; }
208 inline bool SourceCloudPropertiesHasBeenSet() const { return m_sourceCloudPropertiesHasBeenSet; }
209 template <typename SourceCloudPropertiesT = SourceCloudProperties>
210 void SetSourceCloudProperties(SourceCloudPropertiesT&& value) {
211 m_sourceCloudPropertiesHasBeenSet = true;
212 m_sourceCloudProperties = std::forward<SourceCloudPropertiesT>(value);
213 }
214 template <typename SourceCloudPropertiesT = SourceCloudProperties>
215 SourceServer& WithSourceCloudProperties(SourceCloudPropertiesT&& value) {
216 SetSourceCloudProperties(std::forward<SourceCloudPropertiesT>(value));
217 return *this;
218 }
220
222
225 inline ReplicationDirection GetReplicationDirection() const { return m_replicationDirection; }
226 inline bool ReplicationDirectionHasBeenSet() const { return m_replicationDirectionHasBeenSet; }
228 m_replicationDirectionHasBeenSet = true;
229 m_replicationDirection = value;
230 }
233 return *this;
234 }
236
238
243 inline const Aws::String& GetReversedDirectionSourceServerArn() const { return m_reversedDirectionSourceServerArn; }
244 inline bool ReversedDirectionSourceServerArnHasBeenSet() const { return m_reversedDirectionSourceServerArnHasBeenSet; }
245 template <typename ReversedDirectionSourceServerArnT = Aws::String>
246 void SetReversedDirectionSourceServerArn(ReversedDirectionSourceServerArnT&& value) {
247 m_reversedDirectionSourceServerArnHasBeenSet = true;
248 m_reversedDirectionSourceServerArn = std::forward<ReversedDirectionSourceServerArnT>(value);
249 }
250 template <typename ReversedDirectionSourceServerArnT = Aws::String>
251 SourceServer& WithReversedDirectionSourceServerArn(ReversedDirectionSourceServerArnT&& value) {
252 SetReversedDirectionSourceServerArn(std::forward<ReversedDirectionSourceServerArnT>(value));
253 return *this;
254 }
256
258
262 inline const Aws::String& GetSourceNetworkID() const { return m_sourceNetworkID; }
263 inline bool SourceNetworkIDHasBeenSet() const { return m_sourceNetworkIDHasBeenSet; }
264 template <typename SourceNetworkIDT = Aws::String>
265 void SetSourceNetworkID(SourceNetworkIDT&& value) {
266 m_sourceNetworkIDHasBeenSet = true;
267 m_sourceNetworkID = std::forward<SourceNetworkIDT>(value);
268 }
269 template <typename SourceNetworkIDT = Aws::String>
270 SourceServer& WithSourceNetworkID(SourceNetworkIDT&& value) {
271 SetSourceNetworkID(std::forward<SourceNetworkIDT>(value));
272 return *this;
273 }
275
277
280 inline const Aws::String& GetAgentVersion() const { return m_agentVersion; }
281 inline bool AgentVersionHasBeenSet() const { return m_agentVersionHasBeenSet; }
282 template <typename AgentVersionT = Aws::String>
283 void SetAgentVersion(AgentVersionT&& value) {
284 m_agentVersionHasBeenSet = true;
285 m_agentVersion = std::forward<AgentVersionT>(value);
286 }
287 template <typename AgentVersionT = Aws::String>
288 SourceServer& WithAgentVersion(AgentVersionT&& value) {
289 SetAgentVersion(std::forward<AgentVersionT>(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_sourceServerID;
311
312 Aws::String m_arn;
313
315
316 Aws::String m_recoveryInstanceId;
317
319
320 DataReplicationInfo m_dataReplicationInfo;
321
322 LifeCycle m_lifeCycle;
323
324 SourceProperties m_sourceProperties;
325
326 StagingArea m_stagingArea;
327
328 SourceCloudProperties m_sourceCloudProperties;
329
331
332 Aws::String m_reversedDirectionSourceServerArn;
333
334 Aws::String m_sourceNetworkID;
335
336 Aws::String m_agentVersion;
337
338 Aws::String m_requestId;
339 bool m_sourceServerIDHasBeenSet = false;
340 bool m_arnHasBeenSet = false;
341 bool m_tagsHasBeenSet = false;
342 bool m_recoveryInstanceIdHasBeenSet = false;
343 bool m_lastLaunchResultHasBeenSet = false;
344 bool m_dataReplicationInfoHasBeenSet = false;
345 bool m_lifeCycleHasBeenSet = false;
346 bool m_sourcePropertiesHasBeenSet = false;
347 bool m_stagingAreaHasBeenSet = false;
348 bool m_sourceCloudPropertiesHasBeenSet = false;
349 bool m_replicationDirectionHasBeenSet = false;
350 bool m_reversedDirectionSourceServerArnHasBeenSet = false;
351 bool m_sourceNetworkIDHasBeenSet = false;
352 bool m_agentVersionHasBeenSet = 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
bool SourceServerIDHasBeenSet() 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