AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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/mgn/Mgn_EXPORTS.h>
10#include <aws/mgn/model/DataReplicationInfo.h>
11#include <aws/mgn/model/LaunchedInstance.h>
12#include <aws/mgn/model/LifeCycle.h>
13#include <aws/mgn/model/ReplicationType.h>
14#include <aws/mgn/model/SourceProperties.h>
15#include <aws/mgn/model/SourceServerConnectorAction.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace mgn {
27namespace Model {
28
30 public:
31 AWS_MGN_API SourceServer() = default;
35
37
40 inline const Aws::String& GetSourceServerID() const { return m_sourceServerID; }
41 inline bool SourceServerIDHasBeenSet() const { return m_sourceServerIDHasBeenSet; }
42 template <typename SourceServerIDT = Aws::String>
43 void SetSourceServerID(SourceServerIDT&& value) {
44 m_sourceServerIDHasBeenSet = true;
45 m_sourceServerID = std::forward<SourceServerIDT>(value);
46 }
47 template <typename SourceServerIDT = Aws::String>
48 SourceServer& WithSourceServerID(SourceServerIDT&& value) {
49 SetSourceServerID(std::forward<SourceServerIDT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetArn() const { return m_arn; }
59 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
60 template <typename ArnT = Aws::String>
61 void SetArn(ArnT&& value) {
62 m_arnHasBeenSet = true;
63 m_arn = std::forward<ArnT>(value);
64 }
65 template <typename ArnT = Aws::String>
66 SourceServer& WithArn(ArnT&& value) {
67 SetArn(std::forward<ArnT>(value));
68 return *this;
69 }
71
73
76 inline bool GetIsArchived() const { return m_isArchived; }
77 inline bool IsArchivedHasBeenSet() const { return m_isArchivedHasBeenSet; }
78 inline void SetIsArchived(bool value) {
79 m_isArchivedHasBeenSet = true;
80 m_isArchived = value;
81 }
82 inline SourceServer& WithIsArchived(bool value) {
83 SetIsArchived(value);
84 return *this;
85 }
87
89
92 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
93 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
94 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
95 void SetTags(TagsT&& value) {
96 m_tagsHasBeenSet = true;
97 m_tags = std::forward<TagsT>(value);
98 }
99 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
100 SourceServer& WithTags(TagsT&& value) {
101 SetTags(std::forward<TagsT>(value));
102 return *this;
103 }
104 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
105 SourceServer& AddTags(TagsKeyT&& key, TagsValueT&& value) {
106 m_tagsHasBeenSet = true;
107 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
108 return *this;
109 }
111
113
116 inline const LaunchedInstance& GetLaunchedInstance() const { return m_launchedInstance; }
117 inline bool LaunchedInstanceHasBeenSet() const { return m_launchedInstanceHasBeenSet; }
118 template <typename LaunchedInstanceT = LaunchedInstance>
119 void SetLaunchedInstance(LaunchedInstanceT&& value) {
120 m_launchedInstanceHasBeenSet = true;
121 m_launchedInstance = std::forward<LaunchedInstanceT>(value);
122 }
123 template <typename LaunchedInstanceT = LaunchedInstance>
124 SourceServer& WithLaunchedInstance(LaunchedInstanceT&& value) {
125 SetLaunchedInstance(std::forward<LaunchedInstanceT>(value));
126 return *this;
127 }
129
131
134 inline const DataReplicationInfo& GetDataReplicationInfo() const { return m_dataReplicationInfo; }
135 inline bool DataReplicationInfoHasBeenSet() const { return m_dataReplicationInfoHasBeenSet; }
136 template <typename DataReplicationInfoT = DataReplicationInfo>
137 void SetDataReplicationInfo(DataReplicationInfoT&& value) {
138 m_dataReplicationInfoHasBeenSet = true;
139 m_dataReplicationInfo = std::forward<DataReplicationInfoT>(value);
140 }
141 template <typename DataReplicationInfoT = DataReplicationInfo>
142 SourceServer& WithDataReplicationInfo(DataReplicationInfoT&& value) {
143 SetDataReplicationInfo(std::forward<DataReplicationInfoT>(value));
144 return *this;
145 }
147
149
152 inline const LifeCycle& GetLifeCycle() const { return m_lifeCycle; }
153 inline bool LifeCycleHasBeenSet() const { return m_lifeCycleHasBeenSet; }
154 template <typename LifeCycleT = LifeCycle>
155 void SetLifeCycle(LifeCycleT&& value) {
156 m_lifeCycleHasBeenSet = true;
157 m_lifeCycle = std::forward<LifeCycleT>(value);
158 }
159 template <typename LifeCycleT = LifeCycle>
160 SourceServer& WithLifeCycle(LifeCycleT&& value) {
161 SetLifeCycle(std::forward<LifeCycleT>(value));
162 return *this;
163 }
165
167
170 inline const SourceProperties& GetSourceProperties() const { return m_sourceProperties; }
171 inline bool SourcePropertiesHasBeenSet() const { return m_sourcePropertiesHasBeenSet; }
172 template <typename SourcePropertiesT = SourceProperties>
173 void SetSourceProperties(SourcePropertiesT&& value) {
174 m_sourcePropertiesHasBeenSet = true;
175 m_sourceProperties = std::forward<SourcePropertiesT>(value);
176 }
177 template <typename SourcePropertiesT = SourceProperties>
178 SourceServer& WithSourceProperties(SourcePropertiesT&& value) {
179 SetSourceProperties(std::forward<SourcePropertiesT>(value));
180 return *this;
181 }
183
185
188 inline ReplicationType GetReplicationType() const { return m_replicationType; }
189 inline bool ReplicationTypeHasBeenSet() const { return m_replicationTypeHasBeenSet; }
191 m_replicationTypeHasBeenSet = true;
192 m_replicationType = value;
193 }
195 SetReplicationType(value);
196 return *this;
197 }
199
201
204 inline const Aws::String& GetVcenterClientID() const { return m_vcenterClientID; }
205 inline bool VcenterClientIDHasBeenSet() const { return m_vcenterClientIDHasBeenSet; }
206 template <typename VcenterClientIDT = Aws::String>
207 void SetVcenterClientID(VcenterClientIDT&& value) {
208 m_vcenterClientIDHasBeenSet = true;
209 m_vcenterClientID = std::forward<VcenterClientIDT>(value);
210 }
211 template <typename VcenterClientIDT = Aws::String>
212 SourceServer& WithVcenterClientID(VcenterClientIDT&& value) {
213 SetVcenterClientID(std::forward<VcenterClientIDT>(value));
214 return *this;
215 }
217
219
222 inline const Aws::String& GetApplicationID() const { return m_applicationID; }
223 inline bool ApplicationIDHasBeenSet() const { return m_applicationIDHasBeenSet; }
224 template <typename ApplicationIDT = Aws::String>
225 void SetApplicationID(ApplicationIDT&& value) {
226 m_applicationIDHasBeenSet = true;
227 m_applicationID = std::forward<ApplicationIDT>(value);
228 }
229 template <typename ApplicationIDT = Aws::String>
230 SourceServer& WithApplicationID(ApplicationIDT&& value) {
231 SetApplicationID(std::forward<ApplicationIDT>(value));
232 return *this;
233 }
235
237
240 inline const Aws::String& GetUserProvidedID() const { return m_userProvidedID; }
241 inline bool UserProvidedIDHasBeenSet() const { return m_userProvidedIDHasBeenSet; }
242 template <typename UserProvidedIDT = Aws::String>
243 void SetUserProvidedID(UserProvidedIDT&& value) {
244 m_userProvidedIDHasBeenSet = true;
245 m_userProvidedID = std::forward<UserProvidedIDT>(value);
246 }
247 template <typename UserProvidedIDT = Aws::String>
248 SourceServer& WithUserProvidedID(UserProvidedIDT&& value) {
249 SetUserProvidedID(std::forward<UserProvidedIDT>(value));
250 return *this;
251 }
253
255
258 inline const Aws::String& GetFqdnForActionFramework() const { return m_fqdnForActionFramework; }
259 inline bool FqdnForActionFrameworkHasBeenSet() const { return m_fqdnForActionFrameworkHasBeenSet; }
260 template <typename FqdnForActionFrameworkT = Aws::String>
261 void SetFqdnForActionFramework(FqdnForActionFrameworkT&& value) {
262 m_fqdnForActionFrameworkHasBeenSet = true;
263 m_fqdnForActionFramework = std::forward<FqdnForActionFrameworkT>(value);
264 }
265 template <typename FqdnForActionFrameworkT = Aws::String>
266 SourceServer& WithFqdnForActionFramework(FqdnForActionFrameworkT&& value) {
267 SetFqdnForActionFramework(std::forward<FqdnForActionFrameworkT>(value));
268 return *this;
269 }
271
273
276 inline const SourceServerConnectorAction& GetConnectorAction() const { return m_connectorAction; }
277 inline bool ConnectorActionHasBeenSet() const { return m_connectorActionHasBeenSet; }
278 template <typename ConnectorActionT = SourceServerConnectorAction>
279 void SetConnectorAction(ConnectorActionT&& value) {
280 m_connectorActionHasBeenSet = true;
281 m_connectorAction = std::forward<ConnectorActionT>(value);
282 }
283 template <typename ConnectorActionT = SourceServerConnectorAction>
284 SourceServer& WithConnectorAction(ConnectorActionT&& value) {
285 SetConnectorAction(std::forward<ConnectorActionT>(value));
286 return *this;
287 }
289
291
292 inline const Aws::String& GetRequestId() const { return m_requestId; }
293 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
294 template <typename RequestIdT = Aws::String>
295 void SetRequestId(RequestIdT&& value) {
296 m_requestIdHasBeenSet = true;
297 m_requestId = std::forward<RequestIdT>(value);
298 }
299 template <typename RequestIdT = Aws::String>
300 SourceServer& WithRequestId(RequestIdT&& value) {
301 SetRequestId(std::forward<RequestIdT>(value));
302 return *this;
303 }
305 private:
306 Aws::String m_sourceServerID;
307
308 Aws::String m_arn;
309
310 bool m_isArchived{false};
311
313
314 LaunchedInstance m_launchedInstance;
315
316 DataReplicationInfo m_dataReplicationInfo;
317
318 LifeCycle m_lifeCycle;
319
320 SourceProperties m_sourceProperties;
321
322 ReplicationType m_replicationType{ReplicationType::NOT_SET};
323
324 Aws::String m_vcenterClientID;
325
326 Aws::String m_applicationID;
327
328 Aws::String m_userProvidedID;
329
330 Aws::String m_fqdnForActionFramework;
331
332 SourceServerConnectorAction m_connectorAction;
333
334 Aws::String m_requestId;
335 bool m_sourceServerIDHasBeenSet = false;
336 bool m_arnHasBeenSet = false;
337 bool m_isArchivedHasBeenSet = false;
338 bool m_tagsHasBeenSet = false;
339 bool m_launchedInstanceHasBeenSet = false;
340 bool m_dataReplicationInfoHasBeenSet = false;
341 bool m_lifeCycleHasBeenSet = false;
342 bool m_sourcePropertiesHasBeenSet = false;
343 bool m_replicationTypeHasBeenSet = false;
344 bool m_vcenterClientIDHasBeenSet = false;
345 bool m_applicationIDHasBeenSet = false;
346 bool m_userProvidedIDHasBeenSet = false;
347 bool m_fqdnForActionFrameworkHasBeenSet = false;
348 bool m_connectorActionHasBeenSet = false;
349 bool m_requestIdHasBeenSet = false;
350};
351
352} // namespace Model
353} // namespace mgn
354} // namespace Aws
SourceServer & AddTags(TagsKeyT &&key, TagsValueT &&value)
void SetApplicationID(ApplicationIDT &&value)
void SetLaunchedInstance(LaunchedInstanceT &&value)
SourceServer & WithApplicationID(ApplicationIDT &&value)
void SetRequestId(RequestIdT &&value)
void SetUserProvidedID(UserProvidedIDT &&value)
void SetIsArchived(bool value)
SourceServer & WithDataReplicationInfo(DataReplicationInfoT &&value)
bool FqdnForActionFrameworkHasBeenSet() const
ReplicationType GetReplicationType() const
const Aws::String & GetSourceServerID() const
bool SourceServerIDHasBeenSet() const
SourceServer & WithSourceServerID(SourceServerIDT &&value)
SourceServer & WithConnectorAction(ConnectorActionT &&value)
bool LaunchedInstanceHasBeenSet() const
const Aws::String & GetFqdnForActionFramework() const
SourceServer & WithLifeCycle(LifeCycleT &&value)
void SetReplicationType(ReplicationType value)
AWS_MGN_API SourceServer(Aws::Utils::Json::JsonView jsonValue)
bool SourcePropertiesHasBeenSet() const
const Aws::String & GetArn() const
SourceServer & WithFqdnForActionFramework(FqdnForActionFrameworkT &&value)
const Aws::String & GetApplicationID() const
void SetDataReplicationInfo(DataReplicationInfoT &&value)
SourceServer & WithUserProvidedID(UserProvidedIDT &&value)
const DataReplicationInfo & GetDataReplicationInfo() const
SourceServer & WithIsArchived(bool value)
void SetSourceProperties(SourcePropertiesT &&value)
void SetConnectorAction(ConnectorActionT &&value)
void SetVcenterClientID(VcenterClientIDT &&value)
SourceServer & WithLaunchedInstance(LaunchedInstanceT &&value)
void SetLifeCycle(LifeCycleT &&value)
SourceServer & WithReplicationType(ReplicationType value)
void SetTags(TagsT &&value)
const Aws::String & GetRequestId() const
AWS_MGN_API SourceServer()=default
AWS_MGN_API Aws::Utils::Json::JsonValue Jsonize() const
void SetFqdnForActionFramework(FqdnForActionFrameworkT &&value)
void SetArn(ArnT &&value)
AWS_MGN_API SourceServer & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetUserProvidedID() const
const SourceProperties & GetSourceProperties() const
void SetSourceServerID(SourceServerIDT &&value)
const LifeCycle & GetLifeCycle() const
SourceServer & WithTags(TagsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
SourceServer & WithVcenterClientID(VcenterClientIDT &&value)
const LaunchedInstance & GetLaunchedInstance() const
const SourceServerConnectorAction & GetConnectorAction() const
SourceServer & WithArn(ArnT &&value)
const Aws::String & GetVcenterClientID() const
SourceServer & WithRequestId(RequestIdT &&value)
bool DataReplicationInfoHasBeenSet() const
SourceServer & WithSourceProperties(SourcePropertiesT &&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