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/mgn/Mgn_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/mgn/model/SourceServerConnectorAction.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/core/utils/memory/stl/AWSMap.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace mgn
29{
30namespace Model
31{
32
34 {
35 public:
36 AWS_MGN_API SourceServer();
40
41
43
46 inline const Aws::String& GetApplicationID() const{ return m_applicationID; }
47 inline bool ApplicationIDHasBeenSet() const { return m_applicationIDHasBeenSet; }
48 inline void SetApplicationID(const Aws::String& value) { m_applicationIDHasBeenSet = true; m_applicationID = value; }
49 inline void SetApplicationID(Aws::String&& value) { m_applicationIDHasBeenSet = true; m_applicationID = std::move(value); }
50 inline void SetApplicationID(const char* value) { m_applicationIDHasBeenSet = true; m_applicationID.assign(value); }
51 inline SourceServer& WithApplicationID(const Aws::String& value) { SetApplicationID(value); return *this;}
52 inline SourceServer& WithApplicationID(Aws::String&& value) { SetApplicationID(std::move(value)); return *this;}
53 inline SourceServer& WithApplicationID(const char* value) { SetApplicationID(value); return *this;}
55
57
60 inline const Aws::String& GetArn() const{ return m_arn; }
61 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
62 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
63 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
64 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
65 inline SourceServer& WithArn(const Aws::String& value) { SetArn(value); return *this;}
66 inline SourceServer& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
67 inline SourceServer& WithArn(const char* value) { SetArn(value); return *this;}
69
71
74 inline const SourceServerConnectorAction& GetConnectorAction() const{ return m_connectorAction; }
75 inline bool ConnectorActionHasBeenSet() const { return m_connectorActionHasBeenSet; }
76 inline void SetConnectorAction(const SourceServerConnectorAction& value) { m_connectorActionHasBeenSet = true; m_connectorAction = value; }
77 inline void SetConnectorAction(SourceServerConnectorAction&& value) { m_connectorActionHasBeenSet = true; m_connectorAction = std::move(value); }
79 inline SourceServer& WithConnectorAction(SourceServerConnectorAction&& value) { SetConnectorAction(std::move(value)); return *this;}
81
83
86 inline const DataReplicationInfo& GetDataReplicationInfo() const{ return m_dataReplicationInfo; }
87 inline bool DataReplicationInfoHasBeenSet() const { return m_dataReplicationInfoHasBeenSet; }
88 inline void SetDataReplicationInfo(const DataReplicationInfo& value) { m_dataReplicationInfoHasBeenSet = true; m_dataReplicationInfo = value; }
89 inline void SetDataReplicationInfo(DataReplicationInfo&& value) { m_dataReplicationInfoHasBeenSet = true; m_dataReplicationInfo = std::move(value); }
91 inline SourceServer& WithDataReplicationInfo(DataReplicationInfo&& value) { SetDataReplicationInfo(std::move(value)); return *this;}
93
95
98 inline const Aws::String& GetFqdnForActionFramework() const{ return m_fqdnForActionFramework; }
99 inline bool FqdnForActionFrameworkHasBeenSet() const { return m_fqdnForActionFrameworkHasBeenSet; }
100 inline void SetFqdnForActionFramework(const Aws::String& value) { m_fqdnForActionFrameworkHasBeenSet = true; m_fqdnForActionFramework = value; }
101 inline void SetFqdnForActionFramework(Aws::String&& value) { m_fqdnForActionFrameworkHasBeenSet = true; m_fqdnForActionFramework = std::move(value); }
102 inline void SetFqdnForActionFramework(const char* value) { m_fqdnForActionFrameworkHasBeenSet = true; m_fqdnForActionFramework.assign(value); }
104 inline SourceServer& WithFqdnForActionFramework(Aws::String&& value) { SetFqdnForActionFramework(std::move(value)); return *this;}
105 inline SourceServer& WithFqdnForActionFramework(const char* value) { SetFqdnForActionFramework(value); return *this;}
107
109
112 inline bool GetIsArchived() const{ return m_isArchived; }
113 inline bool IsArchivedHasBeenSet() const { return m_isArchivedHasBeenSet; }
114 inline void SetIsArchived(bool value) { m_isArchivedHasBeenSet = true; m_isArchived = value; }
115 inline SourceServer& WithIsArchived(bool value) { SetIsArchived(value); return *this;}
117
119
122 inline const LaunchedInstance& GetLaunchedInstance() const{ return m_launchedInstance; }
123 inline bool LaunchedInstanceHasBeenSet() const { return m_launchedInstanceHasBeenSet; }
124 inline void SetLaunchedInstance(const LaunchedInstance& value) { m_launchedInstanceHasBeenSet = true; m_launchedInstance = value; }
125 inline void SetLaunchedInstance(LaunchedInstance&& value) { m_launchedInstanceHasBeenSet = true; m_launchedInstance = std::move(value); }
126 inline SourceServer& WithLaunchedInstance(const LaunchedInstance& value) { SetLaunchedInstance(value); return *this;}
127 inline SourceServer& WithLaunchedInstance(LaunchedInstance&& value) { SetLaunchedInstance(std::move(value)); return *this;}
129
131
134 inline const LifeCycle& GetLifeCycle() const{ return m_lifeCycle; }
135 inline bool LifeCycleHasBeenSet() const { return m_lifeCycleHasBeenSet; }
136 inline void SetLifeCycle(const LifeCycle& value) { m_lifeCycleHasBeenSet = true; m_lifeCycle = value; }
137 inline void SetLifeCycle(LifeCycle&& value) { m_lifeCycleHasBeenSet = true; m_lifeCycle = std::move(value); }
138 inline SourceServer& WithLifeCycle(const LifeCycle& value) { SetLifeCycle(value); return *this;}
139 inline SourceServer& WithLifeCycle(LifeCycle&& value) { SetLifeCycle(std::move(value)); return *this;}
141
143
146 inline const ReplicationType& GetReplicationType() const{ return m_replicationType; }
147 inline bool ReplicationTypeHasBeenSet() const { return m_replicationTypeHasBeenSet; }
148 inline void SetReplicationType(const ReplicationType& value) { m_replicationTypeHasBeenSet = true; m_replicationType = value; }
149 inline void SetReplicationType(ReplicationType&& value) { m_replicationTypeHasBeenSet = true; m_replicationType = std::move(value); }
150 inline SourceServer& WithReplicationType(const ReplicationType& value) { SetReplicationType(value); return *this;}
151 inline SourceServer& WithReplicationType(ReplicationType&& value) { SetReplicationType(std::move(value)); return *this;}
153
155
158 inline const SourceProperties& GetSourceProperties() const{ return m_sourceProperties; }
159 inline bool SourcePropertiesHasBeenSet() const { return m_sourcePropertiesHasBeenSet; }
160 inline void SetSourceProperties(const SourceProperties& value) { m_sourcePropertiesHasBeenSet = true; m_sourceProperties = value; }
161 inline void SetSourceProperties(SourceProperties&& value) { m_sourcePropertiesHasBeenSet = true; m_sourceProperties = std::move(value); }
162 inline SourceServer& WithSourceProperties(const SourceProperties& value) { SetSourceProperties(value); return *this;}
163 inline SourceServer& WithSourceProperties(SourceProperties&& value) { SetSourceProperties(std::move(value)); return *this;}
165
167
170 inline const Aws::String& GetSourceServerID() const{ return m_sourceServerID; }
171 inline bool SourceServerIDHasBeenSet() const { return m_sourceServerIDHasBeenSet; }
172 inline void SetSourceServerID(const Aws::String& value) { m_sourceServerIDHasBeenSet = true; m_sourceServerID = value; }
173 inline void SetSourceServerID(Aws::String&& value) { m_sourceServerIDHasBeenSet = true; m_sourceServerID = std::move(value); }
174 inline void SetSourceServerID(const char* value) { m_sourceServerIDHasBeenSet = true; m_sourceServerID.assign(value); }
175 inline SourceServer& WithSourceServerID(const Aws::String& value) { SetSourceServerID(value); return *this;}
176 inline SourceServer& WithSourceServerID(Aws::String&& value) { SetSourceServerID(std::move(value)); return *this;}
177 inline SourceServer& WithSourceServerID(const char* value) { SetSourceServerID(value); return *this;}
179
181
184 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
185 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
186 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
187 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
188 inline SourceServer& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
189 inline SourceServer& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
190 inline SourceServer& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
191 inline SourceServer& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
192 inline SourceServer& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
193 inline SourceServer& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
194 inline SourceServer& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
195 inline SourceServer& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
196 inline SourceServer& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
198
200
203 inline const Aws::String& GetUserProvidedID() const{ return m_userProvidedID; }
204 inline bool UserProvidedIDHasBeenSet() const { return m_userProvidedIDHasBeenSet; }
205 inline void SetUserProvidedID(const Aws::String& value) { m_userProvidedIDHasBeenSet = true; m_userProvidedID = value; }
206 inline void SetUserProvidedID(Aws::String&& value) { m_userProvidedIDHasBeenSet = true; m_userProvidedID = std::move(value); }
207 inline void SetUserProvidedID(const char* value) { m_userProvidedIDHasBeenSet = true; m_userProvidedID.assign(value); }
208 inline SourceServer& WithUserProvidedID(const Aws::String& value) { SetUserProvidedID(value); return *this;}
209 inline SourceServer& WithUserProvidedID(Aws::String&& value) { SetUserProvidedID(std::move(value)); return *this;}
210 inline SourceServer& WithUserProvidedID(const char* value) { SetUserProvidedID(value); return *this;}
212
214
217 inline const Aws::String& GetVcenterClientID() const{ return m_vcenterClientID; }
218 inline bool VcenterClientIDHasBeenSet() const { return m_vcenterClientIDHasBeenSet; }
219 inline void SetVcenterClientID(const Aws::String& value) { m_vcenterClientIDHasBeenSet = true; m_vcenterClientID = value; }
220 inline void SetVcenterClientID(Aws::String&& value) { m_vcenterClientIDHasBeenSet = true; m_vcenterClientID = std::move(value); }
221 inline void SetVcenterClientID(const char* value) { m_vcenterClientIDHasBeenSet = true; m_vcenterClientID.assign(value); }
222 inline SourceServer& WithVcenterClientID(const Aws::String& value) { SetVcenterClientID(value); return *this;}
223 inline SourceServer& WithVcenterClientID(Aws::String&& value) { SetVcenterClientID(std::move(value)); return *this;}
224 inline SourceServer& WithVcenterClientID(const char* value) { SetVcenterClientID(value); return *this;}
226
228
229 inline const Aws::String& GetRequestId() const{ return m_requestId; }
230 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
231 inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; }
232 inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); }
233 inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); }
234 inline SourceServer& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
235 inline SourceServer& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
236 inline SourceServer& WithRequestId(const char* value) { SetRequestId(value); return *this;}
238 private:
239
240 Aws::String m_applicationID;
241 bool m_applicationIDHasBeenSet = false;
242
243 Aws::String m_arn;
244 bool m_arnHasBeenSet = false;
245
246 SourceServerConnectorAction m_connectorAction;
247 bool m_connectorActionHasBeenSet = false;
248
249 DataReplicationInfo m_dataReplicationInfo;
250 bool m_dataReplicationInfoHasBeenSet = false;
251
252 Aws::String m_fqdnForActionFramework;
253 bool m_fqdnForActionFrameworkHasBeenSet = false;
254
255 bool m_isArchived;
256 bool m_isArchivedHasBeenSet = false;
257
258 LaunchedInstance m_launchedInstance;
259 bool m_launchedInstanceHasBeenSet = false;
260
261 LifeCycle m_lifeCycle;
262 bool m_lifeCycleHasBeenSet = false;
263
264 ReplicationType m_replicationType;
265 bool m_replicationTypeHasBeenSet = false;
266
267 SourceProperties m_sourceProperties;
268 bool m_sourcePropertiesHasBeenSet = false;
269
270 Aws::String m_sourceServerID;
271 bool m_sourceServerIDHasBeenSet = false;
272
274 bool m_tagsHasBeenSet = false;
275
276 Aws::String m_userProvidedID;
277 bool m_userProvidedIDHasBeenSet = false;
278
279 Aws::String m_vcenterClientID;
280 bool m_vcenterClientIDHasBeenSet = false;
281
282 Aws::String m_requestId;
283 bool m_requestIdHasBeenSet = false;
284 };
285
286} // namespace Model
287} // namespace mgn
288} // namespace Aws
SourceServer & WithSourceServerID(Aws::String &&value)
void SetReplicationType(const ReplicationType &value)
SourceServer & WithFqdnForActionFramework(const char *value)
SourceServer & WithVcenterClientID(const Aws::String &value)
void SetUserProvidedID(const Aws::String &value)
SourceServer & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
SourceServer & WithSourceServerID(const Aws::String &value)
void SetApplicationID(const char *value)
void SetRequestId(Aws::String &&value)
bool FqdnForActionFrameworkHasBeenSet() const
SourceServer & WithLaunchedInstance(LaunchedInstance &&value)
SourceServer & WithReplicationType(const ReplicationType &value)
void SetUserProvidedID(const char *value)
const Aws::String & GetSourceServerID() const
void SetLifeCycle(const LifeCycle &value)
SourceServer & WithSourceServerID(const char *value)
void SetFqdnForActionFramework(const char *value)
SourceServer & WithFqdnForActionFramework(Aws::String &&value)
void SetLifeCycle(LifeCycle &&value)
bool LaunchedInstanceHasBeenSet() const
SourceServer & WithLaunchedInstance(const LaunchedInstance &value)
SourceServer & WithArn(Aws::String &&value)
const Aws::String & GetFqdnForActionFramework() const
SourceServer & AddTags(const char *key, Aws::String &&value)
AWS_MGN_API SourceServer(Aws::Utils::Json::JsonView jsonValue)
void SetArn(const Aws::String &value)
bool SourcePropertiesHasBeenSet() const
SourceServer & WithApplicationID(const char *value)
void SetFqdnForActionFramework(Aws::String &&value)
SourceServer & WithDataReplicationInfo(DataReplicationInfo &&value)
SourceServer & AddTags(const char *key, const char *value)
const Aws::String & GetArn() const
SourceServer & AddTags(Aws::String &&key, Aws::String &&value)
SourceServer & AddTags(Aws::String &&key, const Aws::String &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetSourceServerID(const Aws::String &value)
void SetApplicationID(const Aws::String &value)
void SetSourceProperties(SourceProperties &&value)
const Aws::String & GetApplicationID() const
SourceServer & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetVcenterClientID(const char *value)
SourceServer & WithVcenterClientID(Aws::String &&value)
void SetSourceServerID(Aws::String &&value)
const DataReplicationInfo & GetDataReplicationInfo() const
SourceServer & WithUserProvidedID(const char *value)
SourceServer & WithApplicationID(Aws::String &&value)
SourceServer & WithIsArchived(bool value)
SourceServer & WithUserProvidedID(const Aws::String &value)
SourceServer & WithArn(const char *value)
SourceServer & AddTags(const Aws::String &key, const Aws::String &value)
void SetVcenterClientID(Aws::String &&value)
const ReplicationType & GetReplicationType() const
SourceServer & WithDataReplicationInfo(const DataReplicationInfo &value)
void SetApplicationID(Aws::String &&value)
SourceServer & WithRequestId(Aws::String &&value)
SourceServer & WithFqdnForActionFramework(const Aws::String &value)
SourceServer & WithRequestId(const Aws::String &value)
void SetVcenterClientID(const Aws::String &value)
void SetUserProvidedID(Aws::String &&value)
SourceServer & WithRequestId(const char *value)
SourceServer & WithSourceProperties(const SourceProperties &value)
void SetDataReplicationInfo(DataReplicationInfo &&value)
SourceServer & WithArn(const Aws::String &value)
bool ConnectorActionHasBeenSet() const
SourceServer & WithApplicationID(const Aws::String &value)
const Aws::String & GetRequestId() const
SourceServer & WithConnectorAction(const SourceServerConnectorAction &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
SourceServer & WithVcenterClientID(const char *value)
SourceServer & AddTags(const Aws::String &key, Aws::String &&value)
SourceServer & WithLifeCycle(const LifeCycle &value)
AWS_MGN_API Aws::Utils::Json::JsonValue Jsonize() const
void SetRequestId(const Aws::String &value)
void SetLaunchedInstance(LaunchedInstance &&value)
void SetArn(const char *value)
SourceServer & WithReplicationType(ReplicationType &&value)
void SetSourceProperties(const SourceProperties &value)
SourceServer & AddTags(Aws::String &&key, const char *value)
void SetConnectorAction(SourceServerConnectorAction &&value)
void SetRequestId(const char *value)
void SetFqdnForActionFramework(const Aws::String &value)
void SetConnectorAction(const SourceServerConnectorAction &value)
SourceServer & WithUserProvidedID(Aws::String &&value)
SourceServer & WithConnectorAction(SourceServerConnectorAction &&value)
void SetReplicationType(ReplicationType &&value)
AWS_MGN_API SourceServer & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetUserProvidedID() const
const SourceProperties & GetSourceProperties() const
const LifeCycle & GetLifeCycle() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetSourceServerID(const char *value)
const LaunchedInstance & GetLaunchedInstance() const
const SourceServerConnectorAction & GetConnectorAction() const
void SetLaunchedInstance(const LaunchedInstance &value)
const Aws::String & GetVcenterClientID() const
SourceServer & WithLifeCycle(LifeCycle &&value)
void SetArn(Aws::String &&value)
bool DataReplicationInfoHasBeenSet() const
void SetDataReplicationInfo(const DataReplicationInfo &value)
SourceServer & WithSourceProperties(SourceProperties &&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