AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SourceServer.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{
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26 class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace drs
30{
31namespace Model
32{
33
35 {
36 public:
37 AWS_DRS_API SourceServer();
41
42
44
47 inline const Aws::String& GetAgentVersion() const{ return m_agentVersion; }
48 inline bool AgentVersionHasBeenSet() const { return m_agentVersionHasBeenSet; }
49 inline void SetAgentVersion(const Aws::String& value) { m_agentVersionHasBeenSet = true; m_agentVersion = value; }
50 inline void SetAgentVersion(Aws::String&& value) { m_agentVersionHasBeenSet = true; m_agentVersion = std::move(value); }
51 inline void SetAgentVersion(const char* value) { m_agentVersionHasBeenSet = true; m_agentVersion.assign(value); }
52 inline SourceServer& WithAgentVersion(const Aws::String& value) { SetAgentVersion(value); return *this;}
53 inline SourceServer& WithAgentVersion(Aws::String&& value) { SetAgentVersion(std::move(value)); return *this;}
54 inline SourceServer& WithAgentVersion(const char* value) { SetAgentVersion(value); return *this;}
56
58
61 inline const Aws::String& GetArn() const{ return m_arn; }
62 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
63 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
64 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
65 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
66 inline SourceServer& WithArn(const Aws::String& value) { SetArn(value); return *this;}
67 inline SourceServer& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
68 inline SourceServer& WithArn(const char* value) { SetArn(value); return *this;}
70
72
75 inline const DataReplicationInfo& GetDataReplicationInfo() const{ return m_dataReplicationInfo; }
76 inline bool DataReplicationInfoHasBeenSet() const { return m_dataReplicationInfoHasBeenSet; }
77 inline void SetDataReplicationInfo(const DataReplicationInfo& value) { m_dataReplicationInfoHasBeenSet = true; m_dataReplicationInfo = value; }
78 inline void SetDataReplicationInfo(DataReplicationInfo&& value) { m_dataReplicationInfoHasBeenSet = true; m_dataReplicationInfo = std::move(value); }
80 inline SourceServer& WithDataReplicationInfo(DataReplicationInfo&& value) { SetDataReplicationInfo(std::move(value)); return *this;}
82
84
87 inline const LastLaunchResult& GetLastLaunchResult() const{ return m_lastLaunchResult; }
88 inline bool LastLaunchResultHasBeenSet() const { return m_lastLaunchResultHasBeenSet; }
89 inline void SetLastLaunchResult(const LastLaunchResult& value) { m_lastLaunchResultHasBeenSet = true; m_lastLaunchResult = value; }
90 inline void SetLastLaunchResult(LastLaunchResult&& value) { m_lastLaunchResultHasBeenSet = true; m_lastLaunchResult = std::move(value); }
91 inline SourceServer& WithLastLaunchResult(const LastLaunchResult& value) { SetLastLaunchResult(value); return *this;}
92 inline SourceServer& WithLastLaunchResult(LastLaunchResult&& value) { SetLastLaunchResult(std::move(value)); return *this;}
94
96
99 inline const LifeCycle& GetLifeCycle() const{ return m_lifeCycle; }
100 inline bool LifeCycleHasBeenSet() const { return m_lifeCycleHasBeenSet; }
101 inline void SetLifeCycle(const LifeCycle& value) { m_lifeCycleHasBeenSet = true; m_lifeCycle = value; }
102 inline void SetLifeCycle(LifeCycle&& value) { m_lifeCycleHasBeenSet = true; m_lifeCycle = std::move(value); }
103 inline SourceServer& WithLifeCycle(const LifeCycle& value) { SetLifeCycle(value); return *this;}
104 inline SourceServer& WithLifeCycle(LifeCycle&& value) { SetLifeCycle(std::move(value)); return *this;}
106
108
111 inline const Aws::String& GetRecoveryInstanceId() const{ return m_recoveryInstanceId; }
112 inline bool RecoveryInstanceIdHasBeenSet() const { return m_recoveryInstanceIdHasBeenSet; }
113 inline void SetRecoveryInstanceId(const Aws::String& value) { m_recoveryInstanceIdHasBeenSet = true; m_recoveryInstanceId = value; }
114 inline void SetRecoveryInstanceId(Aws::String&& value) { m_recoveryInstanceIdHasBeenSet = true; m_recoveryInstanceId = std::move(value); }
115 inline void SetRecoveryInstanceId(const char* value) { m_recoveryInstanceIdHasBeenSet = true; m_recoveryInstanceId.assign(value); }
116 inline SourceServer& WithRecoveryInstanceId(const Aws::String& value) { SetRecoveryInstanceId(value); return *this;}
117 inline SourceServer& WithRecoveryInstanceId(Aws::String&& value) { SetRecoveryInstanceId(std::move(value)); return *this;}
118 inline SourceServer& WithRecoveryInstanceId(const char* value) { SetRecoveryInstanceId(value); return *this;}
120
122
125 inline const ReplicationDirection& GetReplicationDirection() const{ return m_replicationDirection; }
126 inline bool ReplicationDirectionHasBeenSet() const { return m_replicationDirectionHasBeenSet; }
127 inline void SetReplicationDirection(const ReplicationDirection& value) { m_replicationDirectionHasBeenSet = true; m_replicationDirection = value; }
128 inline void SetReplicationDirection(ReplicationDirection&& value) { m_replicationDirectionHasBeenSet = true; m_replicationDirection = std::move(value); }
130 inline SourceServer& WithReplicationDirection(ReplicationDirection&& value) { SetReplicationDirection(std::move(value)); return *this;}
132
134
139 inline const Aws::String& GetReversedDirectionSourceServerArn() const{ return m_reversedDirectionSourceServerArn; }
140 inline bool ReversedDirectionSourceServerArnHasBeenSet() const { return m_reversedDirectionSourceServerArnHasBeenSet; }
141 inline void SetReversedDirectionSourceServerArn(const Aws::String& value) { m_reversedDirectionSourceServerArnHasBeenSet = true; m_reversedDirectionSourceServerArn = value; }
142 inline void SetReversedDirectionSourceServerArn(Aws::String&& value) { m_reversedDirectionSourceServerArnHasBeenSet = true; m_reversedDirectionSourceServerArn = std::move(value); }
143 inline void SetReversedDirectionSourceServerArn(const char* value) { m_reversedDirectionSourceServerArnHasBeenSet = true; m_reversedDirectionSourceServerArn.assign(value); }
148
150
153 inline const SourceCloudProperties& GetSourceCloudProperties() const{ return m_sourceCloudProperties; }
154 inline bool SourceCloudPropertiesHasBeenSet() const { return m_sourceCloudPropertiesHasBeenSet; }
155 inline void SetSourceCloudProperties(const SourceCloudProperties& value) { m_sourceCloudPropertiesHasBeenSet = true; m_sourceCloudProperties = value; }
156 inline void SetSourceCloudProperties(SourceCloudProperties&& value) { m_sourceCloudPropertiesHasBeenSet = true; m_sourceCloudProperties = std::move(value); }
160
162
166 inline const Aws::String& GetSourceNetworkID() const{ return m_sourceNetworkID; }
167 inline bool SourceNetworkIDHasBeenSet() const { return m_sourceNetworkIDHasBeenSet; }
168 inline void SetSourceNetworkID(const Aws::String& value) { m_sourceNetworkIDHasBeenSet = true; m_sourceNetworkID = value; }
169 inline void SetSourceNetworkID(Aws::String&& value) { m_sourceNetworkIDHasBeenSet = true; m_sourceNetworkID = std::move(value); }
170 inline void SetSourceNetworkID(const char* value) { m_sourceNetworkIDHasBeenSet = true; m_sourceNetworkID.assign(value); }
171 inline SourceServer& WithSourceNetworkID(const Aws::String& value) { SetSourceNetworkID(value); return *this;}
172 inline SourceServer& WithSourceNetworkID(Aws::String&& value) { SetSourceNetworkID(std::move(value)); return *this;}
173 inline SourceServer& WithSourceNetworkID(const char* value) { SetSourceNetworkID(value); return *this;}
175
177
180 inline const SourceProperties& GetSourceProperties() const{ return m_sourceProperties; }
181 inline bool SourcePropertiesHasBeenSet() const { return m_sourcePropertiesHasBeenSet; }
182 inline void SetSourceProperties(const SourceProperties& value) { m_sourcePropertiesHasBeenSet = true; m_sourceProperties = value; }
183 inline void SetSourceProperties(SourceProperties&& value) { m_sourcePropertiesHasBeenSet = true; m_sourceProperties = std::move(value); }
184 inline SourceServer& WithSourceProperties(const SourceProperties& value) { SetSourceProperties(value); return *this;}
185 inline SourceServer& WithSourceProperties(SourceProperties&& value) { SetSourceProperties(std::move(value)); return *this;}
187
189
192 inline const Aws::String& GetSourceServerID() const{ return m_sourceServerID; }
193 inline bool SourceServerIDHasBeenSet() const { return m_sourceServerIDHasBeenSet; }
194 inline void SetSourceServerID(const Aws::String& value) { m_sourceServerIDHasBeenSet = true; m_sourceServerID = value; }
195 inline void SetSourceServerID(Aws::String&& value) { m_sourceServerIDHasBeenSet = true; m_sourceServerID = std::move(value); }
196 inline void SetSourceServerID(const char* value) { m_sourceServerIDHasBeenSet = true; m_sourceServerID.assign(value); }
197 inline SourceServer& WithSourceServerID(const Aws::String& value) { SetSourceServerID(value); return *this;}
198 inline SourceServer& WithSourceServerID(Aws::String&& value) { SetSourceServerID(std::move(value)); return *this;}
199 inline SourceServer& WithSourceServerID(const char* value) { SetSourceServerID(value); return *this;}
201
203
206 inline const StagingArea& GetStagingArea() const{ return m_stagingArea; }
207 inline bool StagingAreaHasBeenSet() const { return m_stagingAreaHasBeenSet; }
208 inline void SetStagingArea(const StagingArea& value) { m_stagingAreaHasBeenSet = true; m_stagingArea = value; }
209 inline void SetStagingArea(StagingArea&& value) { m_stagingAreaHasBeenSet = true; m_stagingArea = std::move(value); }
210 inline SourceServer& WithStagingArea(const StagingArea& value) { SetStagingArea(value); return *this;}
211 inline SourceServer& WithStagingArea(StagingArea&& value) { SetStagingArea(std::move(value)); return *this;}
213
215
218 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
219 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
220 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
221 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
222 inline SourceServer& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
223 inline SourceServer& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
224 inline SourceServer& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
225 inline SourceServer& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
226 inline SourceServer& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
227 inline SourceServer& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
228 inline SourceServer& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
229 inline SourceServer& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
230 inline SourceServer& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
232
234
235 inline const Aws::String& GetRequestId() const{ return m_requestId; }
236 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
237 inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; }
238 inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); }
239 inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); }
240 inline SourceServer& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
241 inline SourceServer& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
242 inline SourceServer& WithRequestId(const char* value) { SetRequestId(value); return *this;}
244 private:
245
246 Aws::String m_agentVersion;
247 bool m_agentVersionHasBeenSet = false;
248
249 Aws::String m_arn;
250 bool m_arnHasBeenSet = false;
251
252 DataReplicationInfo m_dataReplicationInfo;
253 bool m_dataReplicationInfoHasBeenSet = false;
254
255 LastLaunchResult m_lastLaunchResult;
256 bool m_lastLaunchResultHasBeenSet = false;
257
258 LifeCycle m_lifeCycle;
259 bool m_lifeCycleHasBeenSet = false;
260
261 Aws::String m_recoveryInstanceId;
262 bool m_recoveryInstanceIdHasBeenSet = false;
263
264 ReplicationDirection m_replicationDirection;
265 bool m_replicationDirectionHasBeenSet = false;
266
267 Aws::String m_reversedDirectionSourceServerArn;
268 bool m_reversedDirectionSourceServerArnHasBeenSet = false;
269
270 SourceCloudProperties m_sourceCloudProperties;
271 bool m_sourceCloudPropertiesHasBeenSet = false;
272
273 Aws::String m_sourceNetworkID;
274 bool m_sourceNetworkIDHasBeenSet = false;
275
276 SourceProperties m_sourceProperties;
277 bool m_sourcePropertiesHasBeenSet = false;
278
279 Aws::String m_sourceServerID;
280 bool m_sourceServerIDHasBeenSet = false;
281
282 StagingArea m_stagingArea;
283 bool m_stagingAreaHasBeenSet = false;
284
286 bool m_tagsHasBeenSet = false;
287
288 Aws::String m_requestId;
289 bool m_requestIdHasBeenSet = false;
290 };
291
292} // namespace Model
293} // namespace drs
294} // namespace Aws
void SetRecoveryInstanceId(Aws::String &&value)
const Aws::String & GetSourceServerID() const
SourceServer & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetSourceProperties(const SourceProperties &value)
void SetRequestId(const char *value)
SourceServer & WithReplicationDirection(ReplicationDirection &&value)
SourceServer & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
SourceServer & WithSourceProperties(SourceProperties &&value)
bool ReplicationDirectionHasBeenSet() const
SourceServer & AddTags(const char *key, const char *value)
AWS_DRS_API Aws::Utils::Json::JsonValue Jsonize() const
SourceServer & AddTags(const Aws::String &key, const Aws::String &value)
bool SourcePropertiesHasBeenSet() const
SourceServer & AddTags(const Aws::String &key, Aws::String &&value)
SourceServer & WithRequestId(const char *value)
void SetSourceServerID(Aws::String &&value)
void SetRecoveryInstanceId(const char *value)
void SetLifeCycle(LifeCycle &&value)
SourceServer & WithSourceServerID(const Aws::String &value)
bool LastLaunchResultHasBeenSet() const
void SetSourceCloudProperties(SourceCloudProperties &&value)
SourceServer & WithLastLaunchResult(const LastLaunchResult &value)
void SetSourceProperties(SourceProperties &&value)
SourceServer & AddTags(Aws::String &&key, Aws::String &&value)
void SetSourceCloudProperties(const SourceCloudProperties &value)
SourceServer & WithSourceProperties(const SourceProperties &value)
SourceServer & WithSourceCloudProperties(const SourceCloudProperties &value)
SourceServer & WithLifeCycle(LifeCycle &&value)
void SetArn(const Aws::String &value)
void SetLifeCycle(const LifeCycle &value)
SourceServer & WithSourceNetworkID(const Aws::String &value)
bool ReversedDirectionSourceServerArnHasBeenSet() const
const Aws::String & GetRecoveryInstanceId() const
const Aws::String & GetSourceNetworkID() const
SourceServer & WithStagingArea(const StagingArea &value)
const SourceCloudProperties & GetSourceCloudProperties() const
SourceServer & WithSourceServerID(Aws::String &&value)
SourceServer & WithReversedDirectionSourceServerArn(Aws::String &&value)
void SetReplicationDirection(const ReplicationDirection &value)
void SetLastLaunchResult(LastLaunchResult &&value)
void SetReversedDirectionSourceServerArn(Aws::String &&value)
SourceServer & WithSourceCloudProperties(SourceCloudProperties &&value)
const Aws::String & GetAgentVersion() const
void SetSourceServerID(const char *value)
SourceServer & WithAgentVersion(Aws::String &&value)
void SetAgentVersion(const Aws::String &value)
void SetSourceNetworkID(const char *value)
const StagingArea & GetStagingArea() const
void SetReversedDirectionSourceServerArn(const Aws::String &value)
bool SourceCloudPropertiesHasBeenSet() const
const LifeCycle & GetLifeCycle() const
SourceServer & WithSourceServerID(const char *value)
const Aws::String & GetReversedDirectionSourceServerArn() const
SourceServer & WithRequestId(const Aws::String &value)
SourceServer & WithDataReplicationInfo(const DataReplicationInfo &value)
SourceServer & WithRecoveryInstanceId(const char *value)
SourceServer & WithSourceNetworkID(Aws::String &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetRequestId(const Aws::String &value)
void SetAgentVersion(const char *value)
const DataReplicationInfo & GetDataReplicationInfo() const
void SetStagingArea(StagingArea &&value)
SourceServer & WithReversedDirectionSourceServerArn(const char *value)
SourceServer & WithDataReplicationInfo(DataReplicationInfo &&value)
bool RecoveryInstanceIdHasBeenSet() const
bool DataReplicationInfoHasBeenSet() const
SourceServer & WithReversedDirectionSourceServerArn(const Aws::String &value)
SourceServer & WithArn(const char *value)
SourceServer & WithReplicationDirection(const ReplicationDirection &value)
SourceServer & AddTags(const char *key, Aws::String &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
SourceServer & WithArn(const Aws::String &value)
SourceServer & WithRecoveryInstanceId(Aws::String &&value)
AWS_DRS_API SourceServer & operator=(Aws::Utils::Json::JsonView jsonValue)
const SourceProperties & GetSourceProperties() const
SourceServer & WithStagingArea(StagingArea &&value)
SourceServer & WithAgentVersion(const Aws::String &value)
SourceServer & WithLifeCycle(const LifeCycle &value)
SourceServer & WithAgentVersion(const char *value)
void SetSourceServerID(const Aws::String &value)
SourceServer & WithSourceNetworkID(const char *value)
SourceServer & AddTags(Aws::String &&key, const char *value)
SourceServer & WithRequestId(Aws::String &&value)
void SetRequestId(Aws::String &&value)
void SetAgentVersion(Aws::String &&value)
SourceServer & AddTags(Aws::String &&key, const Aws::String &value)
AWS_DRS_API SourceServer(Aws::Utils::Json::JsonView jsonValue)
void SetReversedDirectionSourceServerArn(const char *value)
SourceServer & WithRecoveryInstanceId(const Aws::String &value)
void SetArn(const char *value)
SourceServer & WithArn(Aws::String &&value)
void SetSourceNetworkID(Aws::String &&value)
void SetSourceNetworkID(const Aws::String &value)
const Aws::String & GetArn() const
void SetRecoveryInstanceId(const Aws::String &value)
void SetDataReplicationInfo(const DataReplicationInfo &value)
const ReplicationDirection & GetReplicationDirection() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetStagingArea(const StagingArea &value)
void SetLastLaunchResult(const LastLaunchResult &value)
void SetArn(Aws::String &&value)
void SetReplicationDirection(ReplicationDirection &&value)
const LastLaunchResult & GetLastLaunchResult() const
SourceServer & WithLastLaunchResult(LastLaunchResult &&value)
const Aws::String & GetRequestId() const
void SetDataReplicationInfo(DataReplicationInfo &&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