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/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() = default;
40
41
43
46 inline const Aws::String& GetApplicationID() const { return m_applicationID; }
47 inline bool ApplicationIDHasBeenSet() const { return m_applicationIDHasBeenSet; }
48 template<typename ApplicationIDT = Aws::String>
49 void SetApplicationID(ApplicationIDT&& value) { m_applicationIDHasBeenSet = true; m_applicationID = std::forward<ApplicationIDT>(value); }
50 template<typename ApplicationIDT = Aws::String>
51 SourceServer& WithApplicationID(ApplicationIDT&& value) { SetApplicationID(std::forward<ApplicationIDT>(value)); return *this;}
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) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
62 template<typename ArnT = Aws::String>
63 SourceServer& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
65
67
70 inline const SourceServerConnectorAction& GetConnectorAction() const { return m_connectorAction; }
71 inline bool ConnectorActionHasBeenSet() const { return m_connectorActionHasBeenSet; }
72 template<typename ConnectorActionT = SourceServerConnectorAction>
73 void SetConnectorAction(ConnectorActionT&& value) { m_connectorActionHasBeenSet = true; m_connectorAction = std::forward<ConnectorActionT>(value); }
74 template<typename ConnectorActionT = SourceServerConnectorAction>
75 SourceServer& WithConnectorAction(ConnectorActionT&& value) { SetConnectorAction(std::forward<ConnectorActionT>(value)); return *this;}
77
79
82 inline const DataReplicationInfo& GetDataReplicationInfo() const { return m_dataReplicationInfo; }
83 inline bool DataReplicationInfoHasBeenSet() const { return m_dataReplicationInfoHasBeenSet; }
84 template<typename DataReplicationInfoT = DataReplicationInfo>
85 void SetDataReplicationInfo(DataReplicationInfoT&& value) { m_dataReplicationInfoHasBeenSet = true; m_dataReplicationInfo = std::forward<DataReplicationInfoT>(value); }
86 template<typename DataReplicationInfoT = DataReplicationInfo>
87 SourceServer& WithDataReplicationInfo(DataReplicationInfoT&& value) { SetDataReplicationInfo(std::forward<DataReplicationInfoT>(value)); return *this;}
89
91
94 inline const Aws::String& GetFqdnForActionFramework() const { return m_fqdnForActionFramework; }
95 inline bool FqdnForActionFrameworkHasBeenSet() const { return m_fqdnForActionFrameworkHasBeenSet; }
96 template<typename FqdnForActionFrameworkT = Aws::String>
97 void SetFqdnForActionFramework(FqdnForActionFrameworkT&& value) { m_fqdnForActionFrameworkHasBeenSet = true; m_fqdnForActionFramework = std::forward<FqdnForActionFrameworkT>(value); }
98 template<typename FqdnForActionFrameworkT = Aws::String>
99 SourceServer& WithFqdnForActionFramework(FqdnForActionFrameworkT&& value) { SetFqdnForActionFramework(std::forward<FqdnForActionFrameworkT>(value)); return *this;}
101
103
106 inline bool GetIsArchived() const { return m_isArchived; }
107 inline bool IsArchivedHasBeenSet() const { return m_isArchivedHasBeenSet; }
108 inline void SetIsArchived(bool value) { m_isArchivedHasBeenSet = true; m_isArchived = value; }
109 inline SourceServer& WithIsArchived(bool value) { SetIsArchived(value); return *this;}
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) { m_launchedInstanceHasBeenSet = true; m_launchedInstance = std::forward<LaunchedInstanceT>(value); }
120 template<typename LaunchedInstanceT = LaunchedInstance>
121 SourceServer& WithLaunchedInstance(LaunchedInstanceT&& value) { SetLaunchedInstance(std::forward<LaunchedInstanceT>(value)); return *this;}
123
125
128 inline const LifeCycle& GetLifeCycle() const { return m_lifeCycle; }
129 inline bool LifeCycleHasBeenSet() const { return m_lifeCycleHasBeenSet; }
130 template<typename LifeCycleT = LifeCycle>
131 void SetLifeCycle(LifeCycleT&& value) { m_lifeCycleHasBeenSet = true; m_lifeCycle = std::forward<LifeCycleT>(value); }
132 template<typename LifeCycleT = LifeCycle>
133 SourceServer& WithLifeCycle(LifeCycleT&& value) { SetLifeCycle(std::forward<LifeCycleT>(value)); return *this;}
135
137
140 inline ReplicationType GetReplicationType() const { return m_replicationType; }
141 inline bool ReplicationTypeHasBeenSet() const { return m_replicationTypeHasBeenSet; }
142 inline void SetReplicationType(ReplicationType value) { m_replicationTypeHasBeenSet = true; m_replicationType = value; }
145
147
150 inline const SourceProperties& GetSourceProperties() const { return m_sourceProperties; }
151 inline bool SourcePropertiesHasBeenSet() const { return m_sourcePropertiesHasBeenSet; }
152 template<typename SourcePropertiesT = SourceProperties>
153 void SetSourceProperties(SourcePropertiesT&& value) { m_sourcePropertiesHasBeenSet = true; m_sourceProperties = std::forward<SourcePropertiesT>(value); }
154 template<typename SourcePropertiesT = SourceProperties>
155 SourceServer& WithSourceProperties(SourcePropertiesT&& value) { SetSourceProperties(std::forward<SourcePropertiesT>(value)); return *this;}
157
159
162 inline const Aws::String& GetSourceServerID() const { return m_sourceServerID; }
163 inline bool SourceServerIDHasBeenSet() const { return m_sourceServerIDHasBeenSet; }
164 template<typename SourceServerIDT = Aws::String>
165 void SetSourceServerID(SourceServerIDT&& value) { m_sourceServerIDHasBeenSet = true; m_sourceServerID = std::forward<SourceServerIDT>(value); }
166 template<typename SourceServerIDT = Aws::String>
167 SourceServer& WithSourceServerID(SourceServerIDT&& value) { SetSourceServerID(std::forward<SourceServerIDT>(value)); return *this;}
169
171
174 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
175 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
176 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
177 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
178 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
179 SourceServer& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
180 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
181 SourceServer& AddTags(TagsKeyT&& key, TagsValueT&& value) {
182 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
183 }
185
187
190 inline const Aws::String& GetUserProvidedID() const { return m_userProvidedID; }
191 inline bool UserProvidedIDHasBeenSet() const { return m_userProvidedIDHasBeenSet; }
192 template<typename UserProvidedIDT = Aws::String>
193 void SetUserProvidedID(UserProvidedIDT&& value) { m_userProvidedIDHasBeenSet = true; m_userProvidedID = std::forward<UserProvidedIDT>(value); }
194 template<typename UserProvidedIDT = Aws::String>
195 SourceServer& WithUserProvidedID(UserProvidedIDT&& value) { SetUserProvidedID(std::forward<UserProvidedIDT>(value)); return *this;}
197
199
202 inline const Aws::String& GetVcenterClientID() const { return m_vcenterClientID; }
203 inline bool VcenterClientIDHasBeenSet() const { return m_vcenterClientIDHasBeenSet; }
204 template<typename VcenterClientIDT = Aws::String>
205 void SetVcenterClientID(VcenterClientIDT&& value) { m_vcenterClientIDHasBeenSet = true; m_vcenterClientID = std::forward<VcenterClientIDT>(value); }
206 template<typename VcenterClientIDT = Aws::String>
207 SourceServer& WithVcenterClientID(VcenterClientIDT&& value) { SetVcenterClientID(std::forward<VcenterClientIDT>(value)); return *this;}
209
211
212 inline const Aws::String& GetRequestId() const { return m_requestId; }
213 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
214 template<typename RequestIdT = Aws::String>
215 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
216 template<typename RequestIdT = Aws::String>
217 SourceServer& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
219 private:
220
221 Aws::String m_applicationID;
222 bool m_applicationIDHasBeenSet = false;
223
224 Aws::String m_arn;
225 bool m_arnHasBeenSet = false;
226
227 SourceServerConnectorAction m_connectorAction;
228 bool m_connectorActionHasBeenSet = false;
229
230 DataReplicationInfo m_dataReplicationInfo;
231 bool m_dataReplicationInfoHasBeenSet = false;
232
233 Aws::String m_fqdnForActionFramework;
234 bool m_fqdnForActionFrameworkHasBeenSet = false;
235
236 bool m_isArchived{false};
237 bool m_isArchivedHasBeenSet = false;
238
239 LaunchedInstance m_launchedInstance;
240 bool m_launchedInstanceHasBeenSet = false;
241
242 LifeCycle m_lifeCycle;
243 bool m_lifeCycleHasBeenSet = false;
244
245 ReplicationType m_replicationType{ReplicationType::NOT_SET};
246 bool m_replicationTypeHasBeenSet = false;
247
248 SourceProperties m_sourceProperties;
249 bool m_sourcePropertiesHasBeenSet = false;
250
251 Aws::String m_sourceServerID;
252 bool m_sourceServerIDHasBeenSet = false;
253
255 bool m_tagsHasBeenSet = false;
256
257 Aws::String m_userProvidedID;
258 bool m_userProvidedIDHasBeenSet = false;
259
260 Aws::String m_vcenterClientID;
261 bool m_vcenterClientIDHasBeenSet = false;
262
263 Aws::String m_requestId;
264 bool m_requestIdHasBeenSet = false;
265 };
266
267} // namespace Model
268} // namespace mgn
269} // 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)
SourceServer & WithDataReplicationInfo(DataReplicationInfoT &&value)
bool FqdnForActionFrameworkHasBeenSet() const
ReplicationType GetReplicationType() const
const Aws::String & GetSourceServerID() 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)
bool ConnectorActionHasBeenSet() const
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