AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DisconnectFromServiceResult.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 {
20template <typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils {
24namespace Json {
25class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace mgn {
29namespace Model {
31 public:
32 AWS_MGN_API DisconnectFromServiceResult() = default;
35
37
40 inline const Aws::String& GetSourceServerID() const { return m_sourceServerID; }
41 template <typename SourceServerIDT = Aws::String>
42 void SetSourceServerID(SourceServerIDT&& value) {
43 m_sourceServerIDHasBeenSet = true;
44 m_sourceServerID = std::forward<SourceServerIDT>(value);
45 }
46 template <typename SourceServerIDT = Aws::String>
48 SetSourceServerID(std::forward<SourceServerIDT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetArn() const { return m_arn; }
58 template <typename ArnT = Aws::String>
59 void SetArn(ArnT&& value) {
60 m_arnHasBeenSet = true;
61 m_arn = std::forward<ArnT>(value);
62 }
63 template <typename ArnT = Aws::String>
65 SetArn(std::forward<ArnT>(value));
66 return *this;
67 }
69
71
74 inline bool GetIsArchived() const { return m_isArchived; }
75 inline void SetIsArchived(bool value) {
76 m_isArchivedHasBeenSet = true;
77 m_isArchived = value;
78 }
80 SetIsArchived(value);
81 return *this;
82 }
84
86
89 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
90 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
91 void SetTags(TagsT&& value) {
92 m_tagsHasBeenSet = true;
93 m_tags = std::forward<TagsT>(value);
94 }
95 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
97 SetTags(std::forward<TagsT>(value));
98 return *this;
99 }
100 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
101 DisconnectFromServiceResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
102 m_tagsHasBeenSet = true;
103 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
104 return *this;
105 }
107
109
112 inline const LaunchedInstance& GetLaunchedInstance() const { return m_launchedInstance; }
113 template <typename LaunchedInstanceT = LaunchedInstance>
114 void SetLaunchedInstance(LaunchedInstanceT&& value) {
115 m_launchedInstanceHasBeenSet = true;
116 m_launchedInstance = std::forward<LaunchedInstanceT>(value);
117 }
118 template <typename LaunchedInstanceT = LaunchedInstance>
120 SetLaunchedInstance(std::forward<LaunchedInstanceT>(value));
121 return *this;
122 }
124
126
129 inline const DataReplicationInfo& GetDataReplicationInfo() const { return m_dataReplicationInfo; }
130 template <typename DataReplicationInfoT = DataReplicationInfo>
131 void SetDataReplicationInfo(DataReplicationInfoT&& value) {
132 m_dataReplicationInfoHasBeenSet = true;
133 m_dataReplicationInfo = std::forward<DataReplicationInfoT>(value);
134 }
135 template <typename DataReplicationInfoT = DataReplicationInfo>
137 SetDataReplicationInfo(std::forward<DataReplicationInfoT>(value));
138 return *this;
139 }
141
143
146 inline const LifeCycle& GetLifeCycle() const { return m_lifeCycle; }
147 template <typename LifeCycleT = LifeCycle>
148 void SetLifeCycle(LifeCycleT&& value) {
149 m_lifeCycleHasBeenSet = true;
150 m_lifeCycle = std::forward<LifeCycleT>(value);
151 }
152 template <typename LifeCycleT = LifeCycle>
154 SetLifeCycle(std::forward<LifeCycleT>(value));
155 return *this;
156 }
158
160
163 inline const SourceProperties& GetSourceProperties() const { return m_sourceProperties; }
164 template <typename SourcePropertiesT = SourceProperties>
165 void SetSourceProperties(SourcePropertiesT&& value) {
166 m_sourcePropertiesHasBeenSet = true;
167 m_sourceProperties = std::forward<SourcePropertiesT>(value);
168 }
169 template <typename SourcePropertiesT = SourceProperties>
171 SetSourceProperties(std::forward<SourcePropertiesT>(value));
172 return *this;
173 }
175
177
180 inline ReplicationType GetReplicationType() const { return m_replicationType; }
182 m_replicationTypeHasBeenSet = true;
183 m_replicationType = value;
184 }
186 SetReplicationType(value);
187 return *this;
188 }
190
192
195 inline const Aws::String& GetVcenterClientID() const { return m_vcenterClientID; }
196 template <typename VcenterClientIDT = Aws::String>
197 void SetVcenterClientID(VcenterClientIDT&& value) {
198 m_vcenterClientIDHasBeenSet = true;
199 m_vcenterClientID = std::forward<VcenterClientIDT>(value);
200 }
201 template <typename VcenterClientIDT = Aws::String>
203 SetVcenterClientID(std::forward<VcenterClientIDT>(value));
204 return *this;
205 }
207
209
212 inline const Aws::String& GetApplicationID() const { return m_applicationID; }
213 template <typename ApplicationIDT = Aws::String>
214 void SetApplicationID(ApplicationIDT&& value) {
215 m_applicationIDHasBeenSet = true;
216 m_applicationID = std::forward<ApplicationIDT>(value);
217 }
218 template <typename ApplicationIDT = Aws::String>
220 SetApplicationID(std::forward<ApplicationIDT>(value));
221 return *this;
222 }
224
226
229 inline const Aws::String& GetUserProvidedID() const { return m_userProvidedID; }
230 template <typename UserProvidedIDT = Aws::String>
231 void SetUserProvidedID(UserProvidedIDT&& value) {
232 m_userProvidedIDHasBeenSet = true;
233 m_userProvidedID = std::forward<UserProvidedIDT>(value);
234 }
235 template <typename UserProvidedIDT = Aws::String>
237 SetUserProvidedID(std::forward<UserProvidedIDT>(value));
238 return *this;
239 }
241
243
246 inline const Aws::String& GetFqdnForActionFramework() const { return m_fqdnForActionFramework; }
247 template <typename FqdnForActionFrameworkT = Aws::String>
248 void SetFqdnForActionFramework(FqdnForActionFrameworkT&& value) {
249 m_fqdnForActionFrameworkHasBeenSet = true;
250 m_fqdnForActionFramework = std::forward<FqdnForActionFrameworkT>(value);
251 }
252 template <typename FqdnForActionFrameworkT = Aws::String>
253 DisconnectFromServiceResult& WithFqdnForActionFramework(FqdnForActionFrameworkT&& value) {
254 SetFqdnForActionFramework(std::forward<FqdnForActionFrameworkT>(value));
255 return *this;
256 }
258
260
263 inline const SourceServerConnectorAction& GetConnectorAction() const { return m_connectorAction; }
264 template <typename ConnectorActionT = SourceServerConnectorAction>
265 void SetConnectorAction(ConnectorActionT&& value) {
266 m_connectorActionHasBeenSet = true;
267 m_connectorAction = std::forward<ConnectorActionT>(value);
268 }
269 template <typename ConnectorActionT = SourceServerConnectorAction>
271 SetConnectorAction(std::forward<ConnectorActionT>(value));
272 return *this;
273 }
275
277
278 inline const Aws::String& GetRequestId() const { return m_requestId; }
279 template <typename RequestIdT = Aws::String>
280 void SetRequestId(RequestIdT&& value) {
281 m_requestIdHasBeenSet = true;
282 m_requestId = std::forward<RequestIdT>(value);
283 }
284 template <typename RequestIdT = Aws::String>
286 SetRequestId(std::forward<RequestIdT>(value));
287 return *this;
288 }
290 private:
291 Aws::String m_sourceServerID;
292
293 Aws::String m_arn;
294
295 bool m_isArchived{false};
296
298
299 LaunchedInstance m_launchedInstance;
300
301 DataReplicationInfo m_dataReplicationInfo;
302
303 LifeCycle m_lifeCycle;
304
305 SourceProperties m_sourceProperties;
306
307 ReplicationType m_replicationType{ReplicationType::NOT_SET};
308
309 Aws::String m_vcenterClientID;
310
311 Aws::String m_applicationID;
312
313 Aws::String m_userProvidedID;
314
315 Aws::String m_fqdnForActionFramework;
316
317 SourceServerConnectorAction m_connectorAction;
318
319 Aws::String m_requestId;
320 bool m_sourceServerIDHasBeenSet = false;
321 bool m_arnHasBeenSet = false;
322 bool m_isArchivedHasBeenSet = false;
323 bool m_tagsHasBeenSet = false;
324 bool m_launchedInstanceHasBeenSet = false;
325 bool m_dataReplicationInfoHasBeenSet = false;
326 bool m_lifeCycleHasBeenSet = false;
327 bool m_sourcePropertiesHasBeenSet = false;
328 bool m_replicationTypeHasBeenSet = false;
329 bool m_vcenterClientIDHasBeenSet = false;
330 bool m_applicationIDHasBeenSet = false;
331 bool m_userProvidedIDHasBeenSet = false;
332 bool m_fqdnForActionFrameworkHasBeenSet = false;
333 bool m_connectorActionHasBeenSet = false;
334 bool m_requestIdHasBeenSet = false;
335};
336
337} // namespace Model
338} // namespace mgn
339} // namespace Aws
DisconnectFromServiceResult & WithSourceProperties(SourcePropertiesT &&value)
const SourceServerConnectorAction & GetConnectorAction() const
DisconnectFromServiceResult & WithUserProvidedID(UserProvidedIDT &&value)
DisconnectFromServiceResult & WithRequestId(RequestIdT &&value)
DisconnectFromServiceResult & WithDataReplicationInfo(DataReplicationInfoT &&value)
DisconnectFromServiceResult & WithLifeCycle(LifeCycleT &&value)
DisconnectFromServiceResult & WithIsArchived(bool value)
DisconnectFromServiceResult & WithFqdnForActionFramework(FqdnForActionFrameworkT &&value)
AWS_MGN_API DisconnectFromServiceResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DisconnectFromServiceResult & WithConnectorAction(ConnectorActionT &&value)
DisconnectFromServiceResult & WithSourceServerID(SourceServerIDT &&value)
void SetDataReplicationInfo(DataReplicationInfoT &&value)
DisconnectFromServiceResult & WithArn(ArnT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const DataReplicationInfo & GetDataReplicationInfo() const
DisconnectFromServiceResult & WithVcenterClientID(VcenterClientIDT &&value)
void SetFqdnForActionFramework(FqdnForActionFrameworkT &&value)
DisconnectFromServiceResult & WithLaunchedInstance(LaunchedInstanceT &&value)
DisconnectFromServiceResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_MGN_API DisconnectFromServiceResult()=default
AWS_MGN_API DisconnectFromServiceResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DisconnectFromServiceResult & WithReplicationType(ReplicationType value)
DisconnectFromServiceResult & WithTags(TagsT &&value)
DisconnectFromServiceResult & WithApplicationID(ApplicationIDT &&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