AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
DisconnectFromServiceResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/mgn/Mgn_EXPORTS.h>
11#include <aws/mgn/model/DataReplicationInfo.h>
12#include <aws/mgn/model/LaunchedInstance.h>
13#include <aws/mgn/model/LifeCycle.h>
14#include <aws/mgn/model/ReplicationType.h>
15#include <aws/mgn/model/SourceProperties.h>
16#include <aws/mgn/model/SourceServerConnectorAction.h>
17
18#include <utility>
19
20namespace Aws {
21template <typename RESULT_TYPE>
22class AmazonWebServiceResult;
23
24namespace Utils {
25namespace Json {
26class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace mgn {
30namespace Model {
32 public:
33 AWS_MGN_API DisconnectFromServiceResult() = default;
36
38
41 inline const Aws::String& GetSourceServerID() const { return m_sourceServerID; }
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>
49 SetSourceServerID(std::forward<SourceServerIDT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetArn() const { return m_arn; }
59 template <typename ArnT = Aws::String>
60 void SetArn(ArnT&& value) {
61 m_arnHasBeenSet = true;
62 m_arn = std::forward<ArnT>(value);
63 }
64 template <typename ArnT = Aws::String>
66 SetArn(std::forward<ArnT>(value));
67 return *this;
68 }
70
72
75 inline bool GetIsArchived() const { return m_isArchived; }
76 inline void SetIsArchived(bool value) {
77 m_isArchivedHasBeenSet = true;
78 m_isArchived = value;
79 }
81 SetIsArchived(value);
82 return *this;
83 }
85
87
90 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
91 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
92 void SetTags(TagsT&& value) {
93 m_tagsHasBeenSet = true;
94 m_tags = std::forward<TagsT>(value);
95 }
96 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
98 SetTags(std::forward<TagsT>(value));
99 return *this;
100 }
101 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
102 DisconnectFromServiceResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
103 m_tagsHasBeenSet = true;
104 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
105 return *this;
106 }
108
110
113 inline const LaunchedInstance& GetLaunchedInstance() const { return m_launchedInstance; }
114 template <typename LaunchedInstanceT = LaunchedInstance>
115 void SetLaunchedInstance(LaunchedInstanceT&& value) {
116 m_launchedInstanceHasBeenSet = true;
117 m_launchedInstance = std::forward<LaunchedInstanceT>(value);
118 }
119 template <typename LaunchedInstanceT = LaunchedInstance>
121 SetLaunchedInstance(std::forward<LaunchedInstanceT>(value));
122 return *this;
123 }
125
127
130 inline const DataReplicationInfo& GetDataReplicationInfo() const { return m_dataReplicationInfo; }
131 template <typename DataReplicationInfoT = DataReplicationInfo>
132 void SetDataReplicationInfo(DataReplicationInfoT&& value) {
133 m_dataReplicationInfoHasBeenSet = true;
134 m_dataReplicationInfo = std::forward<DataReplicationInfoT>(value);
135 }
136 template <typename DataReplicationInfoT = DataReplicationInfo>
138 SetDataReplicationInfo(std::forward<DataReplicationInfoT>(value));
139 return *this;
140 }
142
144
147 inline const LifeCycle& GetLifeCycle() const { return m_lifeCycle; }
148 template <typename LifeCycleT = LifeCycle>
149 void SetLifeCycle(LifeCycleT&& value) {
150 m_lifeCycleHasBeenSet = true;
151 m_lifeCycle = std::forward<LifeCycleT>(value);
152 }
153 template <typename LifeCycleT = LifeCycle>
155 SetLifeCycle(std::forward<LifeCycleT>(value));
156 return *this;
157 }
159
161
164 inline const SourceProperties& GetSourceProperties() const { return m_sourceProperties; }
165 template <typename SourcePropertiesT = SourceProperties>
166 void SetSourceProperties(SourcePropertiesT&& value) {
167 m_sourcePropertiesHasBeenSet = true;
168 m_sourceProperties = std::forward<SourcePropertiesT>(value);
169 }
170 template <typename SourcePropertiesT = SourceProperties>
172 SetSourceProperties(std::forward<SourcePropertiesT>(value));
173 return *this;
174 }
176
178
181 inline ReplicationType GetReplicationType() const { return m_replicationType; }
183 m_replicationTypeHasBeenSet = true;
184 m_replicationType = value;
185 }
187 SetReplicationType(value);
188 return *this;
189 }
191
193
196 inline const Aws::String& GetVcenterClientID() const { return m_vcenterClientID; }
197 template <typename VcenterClientIDT = Aws::String>
198 void SetVcenterClientID(VcenterClientIDT&& value) {
199 m_vcenterClientIDHasBeenSet = true;
200 m_vcenterClientID = std::forward<VcenterClientIDT>(value);
201 }
202 template <typename VcenterClientIDT = Aws::String>
204 SetVcenterClientID(std::forward<VcenterClientIDT>(value));
205 return *this;
206 }
208
210
213 inline const Aws::String& GetApplicationID() const { return m_applicationID; }
214 template <typename ApplicationIDT = Aws::String>
215 void SetApplicationID(ApplicationIDT&& value) {
216 m_applicationIDHasBeenSet = true;
217 m_applicationID = std::forward<ApplicationIDT>(value);
218 }
219 template <typename ApplicationIDT = Aws::String>
221 SetApplicationID(std::forward<ApplicationIDT>(value));
222 return *this;
223 }
225
227
230 inline const Aws::String& GetUserProvidedID() const { return m_userProvidedID; }
231 template <typename UserProvidedIDT = Aws::String>
232 void SetUserProvidedID(UserProvidedIDT&& value) {
233 m_userProvidedIDHasBeenSet = true;
234 m_userProvidedID = std::forward<UserProvidedIDT>(value);
235 }
236 template <typename UserProvidedIDT = Aws::String>
238 SetUserProvidedID(std::forward<UserProvidedIDT>(value));
239 return *this;
240 }
242
244
247 inline const Aws::String& GetFqdnForActionFramework() const { return m_fqdnForActionFramework; }
248 template <typename FqdnForActionFrameworkT = Aws::String>
249 void SetFqdnForActionFramework(FqdnForActionFrameworkT&& value) {
250 m_fqdnForActionFrameworkHasBeenSet = true;
251 m_fqdnForActionFramework = std::forward<FqdnForActionFrameworkT>(value);
252 }
253 template <typename FqdnForActionFrameworkT = Aws::String>
254 DisconnectFromServiceResult& WithFqdnForActionFramework(FqdnForActionFrameworkT&& value) {
255 SetFqdnForActionFramework(std::forward<FqdnForActionFrameworkT>(value));
256 return *this;
257 }
259
261
264 inline const SourceServerConnectorAction& GetConnectorAction() const { return m_connectorAction; }
265 template <typename ConnectorActionT = SourceServerConnectorAction>
266 void SetConnectorAction(ConnectorActionT&& value) {
267 m_connectorActionHasBeenSet = true;
268 m_connectorAction = std::forward<ConnectorActionT>(value);
269 }
270 template <typename ConnectorActionT = SourceServerConnectorAction>
272 SetConnectorAction(std::forward<ConnectorActionT>(value));
273 return *this;
274 }
276
278
279 inline const Aws::String& GetRequestId() const { return m_requestId; }
280 template <typename RequestIdT = Aws::String>
281 void SetRequestId(RequestIdT&& value) {
282 m_requestIdHasBeenSet = true;
283 m_requestId = std::forward<RequestIdT>(value);
284 }
285 template <typename RequestIdT = Aws::String>
287 SetRequestId(std::forward<RequestIdT>(value));
288 return *this;
289 }
291 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
292
293 private:
294 Aws::String m_sourceServerID;
295
296 Aws::String m_arn;
297
298 bool m_isArchived{false};
299
301
302 LaunchedInstance m_launchedInstance;
303
304 DataReplicationInfo m_dataReplicationInfo;
305
306 LifeCycle m_lifeCycle;
307
308 SourceProperties m_sourceProperties;
309
310 ReplicationType m_replicationType{ReplicationType::NOT_SET};
311
312 Aws::String m_vcenterClientID;
313
314 Aws::String m_applicationID;
315
316 Aws::String m_userProvidedID;
317
318 Aws::String m_fqdnForActionFramework;
319
320 SourceServerConnectorAction m_connectorAction;
321
322 Aws::String m_requestId;
323 Aws::Http::HttpResponseCode m_HttpResponseCode;
324 bool m_sourceServerIDHasBeenSet = false;
325 bool m_arnHasBeenSet = false;
326 bool m_isArchivedHasBeenSet = false;
327 bool m_tagsHasBeenSet = false;
328 bool m_launchedInstanceHasBeenSet = false;
329 bool m_dataReplicationInfoHasBeenSet = false;
330 bool m_lifeCycleHasBeenSet = false;
331 bool m_sourcePropertiesHasBeenSet = false;
332 bool m_replicationTypeHasBeenSet = false;
333 bool m_vcenterClientIDHasBeenSet = false;
334 bool m_applicationIDHasBeenSet = false;
335 bool m_userProvidedIDHasBeenSet = false;
336 bool m_fqdnForActionFrameworkHasBeenSet = false;
337 bool m_connectorActionHasBeenSet = false;
338 bool m_requestIdHasBeenSet = false;
339};
340
341} // namespace Model
342} // namespace mgn
343} // 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)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
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