AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
41
42
44
47 inline const Aws::String& GetAgentVersion() const { return m_agentVersion; }
48 inline bool AgentVersionHasBeenSet() const { return m_agentVersionHasBeenSet; }
49 template<typename AgentVersionT = Aws::String>
50 void SetAgentVersion(AgentVersionT&& value) { m_agentVersionHasBeenSet = true; m_agentVersion = std::forward<AgentVersionT>(value); }
51 template<typename AgentVersionT = Aws::String>
52 SourceServer& WithAgentVersion(AgentVersionT&& value) { SetAgentVersion(std::forward<AgentVersionT>(value)); return *this;}
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) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
63 template<typename ArnT = Aws::String>
64 SourceServer& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
66
68
71 inline const DataReplicationInfo& GetDataReplicationInfo() const { return m_dataReplicationInfo; }
72 inline bool DataReplicationInfoHasBeenSet() const { return m_dataReplicationInfoHasBeenSet; }
73 template<typename DataReplicationInfoT = DataReplicationInfo>
74 void SetDataReplicationInfo(DataReplicationInfoT&& value) { m_dataReplicationInfoHasBeenSet = true; m_dataReplicationInfo = std::forward<DataReplicationInfoT>(value); }
75 template<typename DataReplicationInfoT = DataReplicationInfo>
76 SourceServer& WithDataReplicationInfo(DataReplicationInfoT&& value) { SetDataReplicationInfo(std::forward<DataReplicationInfoT>(value)); return *this;}
78
80
83 inline LastLaunchResult GetLastLaunchResult() const { return m_lastLaunchResult; }
84 inline bool LastLaunchResultHasBeenSet() const { return m_lastLaunchResultHasBeenSet; }
85 inline void SetLastLaunchResult(LastLaunchResult value) { m_lastLaunchResultHasBeenSet = true; m_lastLaunchResult = value; }
88
90
93 inline const LifeCycle& GetLifeCycle() const { return m_lifeCycle; }
94 inline bool LifeCycleHasBeenSet() const { return m_lifeCycleHasBeenSet; }
95 template<typename LifeCycleT = LifeCycle>
96 void SetLifeCycle(LifeCycleT&& value) { m_lifeCycleHasBeenSet = true; m_lifeCycle = std::forward<LifeCycleT>(value); }
97 template<typename LifeCycleT = LifeCycle>
98 SourceServer& WithLifeCycle(LifeCycleT&& value) { SetLifeCycle(std::forward<LifeCycleT>(value)); return *this;}
100
102
105 inline const Aws::String& GetRecoveryInstanceId() const { return m_recoveryInstanceId; }
106 inline bool RecoveryInstanceIdHasBeenSet() const { return m_recoveryInstanceIdHasBeenSet; }
107 template<typename RecoveryInstanceIdT = Aws::String>
108 void SetRecoveryInstanceId(RecoveryInstanceIdT&& value) { m_recoveryInstanceIdHasBeenSet = true; m_recoveryInstanceId = std::forward<RecoveryInstanceIdT>(value); }
109 template<typename RecoveryInstanceIdT = Aws::String>
110 SourceServer& WithRecoveryInstanceId(RecoveryInstanceIdT&& value) { SetRecoveryInstanceId(std::forward<RecoveryInstanceIdT>(value)); return *this;}
112
114
117 inline ReplicationDirection GetReplicationDirection() const { return m_replicationDirection; }
118 inline bool ReplicationDirectionHasBeenSet() const { return m_replicationDirectionHasBeenSet; }
119 inline void SetReplicationDirection(ReplicationDirection value) { m_replicationDirectionHasBeenSet = true; m_replicationDirection = value; }
122
124
129 inline const Aws::String& GetReversedDirectionSourceServerArn() const { return m_reversedDirectionSourceServerArn; }
130 inline bool ReversedDirectionSourceServerArnHasBeenSet() const { return m_reversedDirectionSourceServerArnHasBeenSet; }
131 template<typename ReversedDirectionSourceServerArnT = Aws::String>
132 void SetReversedDirectionSourceServerArn(ReversedDirectionSourceServerArnT&& value) { m_reversedDirectionSourceServerArnHasBeenSet = true; m_reversedDirectionSourceServerArn = std::forward<ReversedDirectionSourceServerArnT>(value); }
133 template<typename ReversedDirectionSourceServerArnT = Aws::String>
134 SourceServer& WithReversedDirectionSourceServerArn(ReversedDirectionSourceServerArnT&& value) { SetReversedDirectionSourceServerArn(std::forward<ReversedDirectionSourceServerArnT>(value)); return *this;}
136
138
141 inline const SourceCloudProperties& GetSourceCloudProperties() const { return m_sourceCloudProperties; }
142 inline bool SourceCloudPropertiesHasBeenSet() const { return m_sourceCloudPropertiesHasBeenSet; }
143 template<typename SourceCloudPropertiesT = SourceCloudProperties>
144 void SetSourceCloudProperties(SourceCloudPropertiesT&& value) { m_sourceCloudPropertiesHasBeenSet = true; m_sourceCloudProperties = std::forward<SourceCloudPropertiesT>(value); }
145 template<typename SourceCloudPropertiesT = SourceCloudProperties>
146 SourceServer& WithSourceCloudProperties(SourceCloudPropertiesT&& value) { SetSourceCloudProperties(std::forward<SourceCloudPropertiesT>(value)); return *this;}
148
150
154 inline const Aws::String& GetSourceNetworkID() const { return m_sourceNetworkID; }
155 inline bool SourceNetworkIDHasBeenSet() const { return m_sourceNetworkIDHasBeenSet; }
156 template<typename SourceNetworkIDT = Aws::String>
157 void SetSourceNetworkID(SourceNetworkIDT&& value) { m_sourceNetworkIDHasBeenSet = true; m_sourceNetworkID = std::forward<SourceNetworkIDT>(value); }
158 template<typename SourceNetworkIDT = Aws::String>
159 SourceServer& WithSourceNetworkID(SourceNetworkIDT&& value) { SetSourceNetworkID(std::forward<SourceNetworkIDT>(value)); return *this;}
161
163
166 inline const SourceProperties& GetSourceProperties() const { return m_sourceProperties; }
167 inline bool SourcePropertiesHasBeenSet() const { return m_sourcePropertiesHasBeenSet; }
168 template<typename SourcePropertiesT = SourceProperties>
169 void SetSourceProperties(SourcePropertiesT&& value) { m_sourcePropertiesHasBeenSet = true; m_sourceProperties = std::forward<SourcePropertiesT>(value); }
170 template<typename SourcePropertiesT = SourceProperties>
171 SourceServer& WithSourceProperties(SourcePropertiesT&& value) { SetSourceProperties(std::forward<SourcePropertiesT>(value)); return *this;}
173
175
178 inline const Aws::String& GetSourceServerID() const { return m_sourceServerID; }
179 inline bool SourceServerIDHasBeenSet() const { return m_sourceServerIDHasBeenSet; }
180 template<typename SourceServerIDT = Aws::String>
181 void SetSourceServerID(SourceServerIDT&& value) { m_sourceServerIDHasBeenSet = true; m_sourceServerID = std::forward<SourceServerIDT>(value); }
182 template<typename SourceServerIDT = Aws::String>
183 SourceServer& WithSourceServerID(SourceServerIDT&& value) { SetSourceServerID(std::forward<SourceServerIDT>(value)); return *this;}
185
187
190 inline const StagingArea& GetStagingArea() const { return m_stagingArea; }
191 inline bool StagingAreaHasBeenSet() const { return m_stagingAreaHasBeenSet; }
192 template<typename StagingAreaT = StagingArea>
193 void SetStagingArea(StagingAreaT&& value) { m_stagingAreaHasBeenSet = true; m_stagingArea = std::forward<StagingAreaT>(value); }
194 template<typename StagingAreaT = StagingArea>
195 SourceServer& WithStagingArea(StagingAreaT&& value) { SetStagingArea(std::forward<StagingAreaT>(value)); return *this;}
197
199
202 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
203 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
204 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
205 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
206 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
207 SourceServer& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
208 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
209 SourceServer& AddTags(TagsKeyT&& key, TagsValueT&& value) {
210 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
211 }
213
215
216 inline const Aws::String& GetRequestId() const { return m_requestId; }
217 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
218 template<typename RequestIdT = Aws::String>
219 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
220 template<typename RequestIdT = Aws::String>
221 SourceServer& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
223 private:
224
225 Aws::String m_agentVersion;
226 bool m_agentVersionHasBeenSet = false;
227
228 Aws::String m_arn;
229 bool m_arnHasBeenSet = false;
230
231 DataReplicationInfo m_dataReplicationInfo;
232 bool m_dataReplicationInfoHasBeenSet = false;
233
235 bool m_lastLaunchResultHasBeenSet = false;
236
237 LifeCycle m_lifeCycle;
238 bool m_lifeCycleHasBeenSet = false;
239
240 Aws::String m_recoveryInstanceId;
241 bool m_recoveryInstanceIdHasBeenSet = false;
242
244 bool m_replicationDirectionHasBeenSet = false;
245
246 Aws::String m_reversedDirectionSourceServerArn;
247 bool m_reversedDirectionSourceServerArnHasBeenSet = false;
248
249 SourceCloudProperties m_sourceCloudProperties;
250 bool m_sourceCloudPropertiesHasBeenSet = false;
251
252 Aws::String m_sourceNetworkID;
253 bool m_sourceNetworkIDHasBeenSet = false;
254
255 SourceProperties m_sourceProperties;
256 bool m_sourcePropertiesHasBeenSet = false;
257
258 Aws::String m_sourceServerID;
259 bool m_sourceServerIDHasBeenSet = false;
260
261 StagingArea m_stagingArea;
262 bool m_stagingAreaHasBeenSet = false;
263
265 bool m_tagsHasBeenSet = false;
266
267 Aws::String m_requestId;
268 bool m_requestIdHasBeenSet = false;
269 };
270
271} // namespace Model
272} // namespace drs
273} // 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