AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DisconnectSourceServerResult.h
1
6#pragma once
7#include <aws/drs/Drs_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/drs/model/DataReplicationInfo.h>
10#include <aws/drs/model/LastLaunchResult.h>
11#include <aws/drs/model/LifeCycle.h>
12#include <aws/drs/model/ReplicationDirection.h>
13#include <aws/drs/model/SourceCloudProperties.h>
14#include <aws/drs/model/SourceProperties.h>
15#include <aws/drs/model/StagingArea.h>
16#include <aws/core/utils/memory/stl/AWSMap.h>
17#include <utility>
18
19namespace Aws
20{
21template<typename RESULT_TYPE>
22class AmazonWebServiceResult;
23
24namespace Utils
25{
26namespace Json
27{
28 class JsonValue;
29} // namespace Json
30} // namespace Utils
31namespace drs
32{
33namespace Model
34{
36 {
37 public:
41
42
44
47 inline const Aws::String& GetAgentVersion() const{ return m_agentVersion; }
48 inline void SetAgentVersion(const Aws::String& value) { m_agentVersion = value; }
49 inline void SetAgentVersion(Aws::String&& value) { m_agentVersion = std::move(value); }
50 inline void SetAgentVersion(const char* value) { m_agentVersion.assign(value); }
51 inline DisconnectSourceServerResult& WithAgentVersion(const Aws::String& value) { SetAgentVersion(value); return *this;}
52 inline DisconnectSourceServerResult& WithAgentVersion(Aws::String&& value) { SetAgentVersion(std::move(value)); return *this;}
53 inline DisconnectSourceServerResult& WithAgentVersion(const char* value) { SetAgentVersion(value); return *this;}
55
57
60 inline const Aws::String& GetArn() const{ return m_arn; }
61 inline void SetArn(const Aws::String& value) { m_arn = value; }
62 inline void SetArn(Aws::String&& value) { m_arn = std::move(value); }
63 inline void SetArn(const char* value) { m_arn.assign(value); }
64 inline DisconnectSourceServerResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
65 inline DisconnectSourceServerResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
66 inline DisconnectSourceServerResult& WithArn(const char* value) { SetArn(value); return *this;}
68
70
73 inline const DataReplicationInfo& GetDataReplicationInfo() const{ return m_dataReplicationInfo; }
74 inline void SetDataReplicationInfo(const DataReplicationInfo& value) { m_dataReplicationInfo = value; }
75 inline void SetDataReplicationInfo(DataReplicationInfo&& value) { m_dataReplicationInfo = std::move(value); }
79
81
84 inline const LastLaunchResult& GetLastLaunchResult() const{ return m_lastLaunchResult; }
85 inline void SetLastLaunchResult(const LastLaunchResult& value) { m_lastLaunchResult = value; }
86 inline void SetLastLaunchResult(LastLaunchResult&& value) { m_lastLaunchResult = std::move(value); }
90
92
95 inline const LifeCycle& GetLifeCycle() const{ return m_lifeCycle; }
96 inline void SetLifeCycle(const LifeCycle& value) { m_lifeCycle = value; }
97 inline void SetLifeCycle(LifeCycle&& value) { m_lifeCycle = std::move(value); }
98 inline DisconnectSourceServerResult& WithLifeCycle(const LifeCycle& value) { SetLifeCycle(value); return *this;}
99 inline DisconnectSourceServerResult& WithLifeCycle(LifeCycle&& value) { SetLifeCycle(std::move(value)); return *this;}
101
103
106 inline const Aws::String& GetRecoveryInstanceId() const{ return m_recoveryInstanceId; }
107 inline void SetRecoveryInstanceId(const Aws::String& value) { m_recoveryInstanceId = value; }
108 inline void SetRecoveryInstanceId(Aws::String&& value) { m_recoveryInstanceId = std::move(value); }
109 inline void SetRecoveryInstanceId(const char* value) { m_recoveryInstanceId.assign(value); }
112 inline DisconnectSourceServerResult& WithRecoveryInstanceId(const char* value) { SetRecoveryInstanceId(value); return *this;}
114
116
119 inline const ReplicationDirection& GetReplicationDirection() const{ return m_replicationDirection; }
120 inline void SetReplicationDirection(const ReplicationDirection& value) { m_replicationDirection = value; }
121 inline void SetReplicationDirection(ReplicationDirection&& value) { m_replicationDirection = std::move(value); }
125
127
132 inline const Aws::String& GetReversedDirectionSourceServerArn() const{ return m_reversedDirectionSourceServerArn; }
133 inline void SetReversedDirectionSourceServerArn(const Aws::String& value) { m_reversedDirectionSourceServerArn = value; }
134 inline void SetReversedDirectionSourceServerArn(Aws::String&& value) { m_reversedDirectionSourceServerArn = std::move(value); }
135 inline void SetReversedDirectionSourceServerArn(const char* value) { m_reversedDirectionSourceServerArn.assign(value); }
140
142
145 inline const SourceCloudProperties& GetSourceCloudProperties() const{ return m_sourceCloudProperties; }
146 inline void SetSourceCloudProperties(const SourceCloudProperties& value) { m_sourceCloudProperties = value; }
147 inline void SetSourceCloudProperties(SourceCloudProperties&& value) { m_sourceCloudProperties = std::move(value); }
151
153
157 inline const Aws::String& GetSourceNetworkID() const{ return m_sourceNetworkID; }
158 inline void SetSourceNetworkID(const Aws::String& value) { m_sourceNetworkID = value; }
159 inline void SetSourceNetworkID(Aws::String&& value) { m_sourceNetworkID = std::move(value); }
160 inline void SetSourceNetworkID(const char* value) { m_sourceNetworkID.assign(value); }
162 inline DisconnectSourceServerResult& WithSourceNetworkID(Aws::String&& value) { SetSourceNetworkID(std::move(value)); return *this;}
163 inline DisconnectSourceServerResult& WithSourceNetworkID(const char* value) { SetSourceNetworkID(value); return *this;}
165
167
170 inline const SourceProperties& GetSourceProperties() const{ return m_sourceProperties; }
171 inline void SetSourceProperties(const SourceProperties& value) { m_sourceProperties = value; }
172 inline void SetSourceProperties(SourceProperties&& value) { m_sourceProperties = std::move(value); }
176
178
181 inline const Aws::String& GetSourceServerID() const{ return m_sourceServerID; }
182 inline void SetSourceServerID(const Aws::String& value) { m_sourceServerID = value; }
183 inline void SetSourceServerID(Aws::String&& value) { m_sourceServerID = std::move(value); }
184 inline void SetSourceServerID(const char* value) { m_sourceServerID.assign(value); }
186 inline DisconnectSourceServerResult& WithSourceServerID(Aws::String&& value) { SetSourceServerID(std::move(value)); return *this;}
187 inline DisconnectSourceServerResult& WithSourceServerID(const char* value) { SetSourceServerID(value); return *this;}
189
191
194 inline const StagingArea& GetStagingArea() const{ return m_stagingArea; }
195 inline void SetStagingArea(const StagingArea& value) { m_stagingArea = value; }
196 inline void SetStagingArea(StagingArea&& value) { m_stagingArea = std::move(value); }
197 inline DisconnectSourceServerResult& WithStagingArea(const StagingArea& value) { SetStagingArea(value); return *this;}
198 inline DisconnectSourceServerResult& WithStagingArea(StagingArea&& value) { SetStagingArea(std::move(value)); return *this;}
200
202
205 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
206 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tags = value; }
207 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tags = std::move(value); }
209 inline DisconnectSourceServerResult& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
210 inline DisconnectSourceServerResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; }
211 inline DisconnectSourceServerResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; }
212 inline DisconnectSourceServerResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
213 inline DisconnectSourceServerResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; }
214 inline DisconnectSourceServerResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
215 inline DisconnectSourceServerResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; }
216 inline DisconnectSourceServerResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; }
218
220
221 inline const Aws::String& GetRequestId() const{ return m_requestId; }
222 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
223 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
224 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
225 inline DisconnectSourceServerResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
226 inline DisconnectSourceServerResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
227 inline DisconnectSourceServerResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
229 private:
230
231 Aws::String m_agentVersion;
232
233 Aws::String m_arn;
234
235 DataReplicationInfo m_dataReplicationInfo;
236
237 LastLaunchResult m_lastLaunchResult;
238
239 LifeCycle m_lifeCycle;
240
241 Aws::String m_recoveryInstanceId;
242
243 ReplicationDirection m_replicationDirection;
244
245 Aws::String m_reversedDirectionSourceServerArn;
246
247 SourceCloudProperties m_sourceCloudProperties;
248
249 Aws::String m_sourceNetworkID;
250
251 SourceProperties m_sourceProperties;
252
253 Aws::String m_sourceServerID;
254
255 StagingArea m_stagingArea;
256
258
259 Aws::String m_requestId;
260 };
261
262} // namespace Model
263} // namespace drs
264} // namespace Aws
DisconnectSourceServerResult & WithArn(const char *value)
DisconnectSourceServerResult & AddTags(const Aws::String &key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
DisconnectSourceServerResult & WithAgentVersion(const char *value)
DisconnectSourceServerResult & WithReversedDirectionSourceServerArn(const Aws::String &value)
DisconnectSourceServerResult & WithArn(Aws::String &&value)
void SetDataReplicationInfo(const DataReplicationInfo &value)
DisconnectSourceServerResult & WithSourceServerID(const char *value)
DisconnectSourceServerResult & AddTags(const Aws::String &key, const Aws::String &value)
void SetReplicationDirection(const ReplicationDirection &value)
DisconnectSourceServerResult & WithRecoveryInstanceId(const char *value)
DisconnectSourceServerResult & WithSourceProperties(const SourceProperties &value)
DisconnectSourceServerResult & WithRequestId(const Aws::String &value)
AWS_DRS_API DisconnectSourceServerResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DisconnectSourceServerResult & WithSourceCloudProperties(SourceCloudProperties &&value)
void SetSourceCloudProperties(SourceCloudProperties &&value)
AWS_DRS_API DisconnectSourceServerResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DisconnectSourceServerResult & WithReplicationDirection(const ReplicationDirection &value)
DisconnectSourceServerResult & WithReplicationDirection(ReplicationDirection &&value)
DisconnectSourceServerResult & AddTags(Aws::String &&key, Aws::String &&value)
DisconnectSourceServerResult & WithLifeCycle(const LifeCycle &value)
DisconnectSourceServerResult & WithStagingArea(StagingArea &&value)
DisconnectSourceServerResult & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
DisconnectSourceServerResult & WithLastLaunchResult(LastLaunchResult &&value)
DisconnectSourceServerResult & WithDataReplicationInfo(DataReplicationInfo &&value)
DisconnectSourceServerResult & WithRecoveryInstanceId(const Aws::String &value)
DisconnectSourceServerResult & WithSourceNetworkID(Aws::String &&value)
const SourceCloudProperties & GetSourceCloudProperties() const
DisconnectSourceServerResult & AddTags(const char *key, Aws::String &&value)
DisconnectSourceServerResult & WithReversedDirectionSourceServerArn(Aws::String &&value)
DisconnectSourceServerResult & WithAgentVersion(const Aws::String &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetSourceCloudProperties(const SourceCloudProperties &value)
DisconnectSourceServerResult & WithSourceServerID(Aws::String &&value)
DisconnectSourceServerResult & WithRecoveryInstanceId(Aws::String &&value)
DisconnectSourceServerResult & AddTags(const char *key, const char *value)
void SetLastLaunchResult(const LastLaunchResult &value)
DisconnectSourceServerResult & WithAgentVersion(Aws::String &&value)
DisconnectSourceServerResult & WithDataReplicationInfo(const DataReplicationInfo &value)
DisconnectSourceServerResult & WithRequestId(const char *value)
DisconnectSourceServerResult & WithRequestId(Aws::String &&value)
DisconnectSourceServerResult & WithSourceNetworkID(const Aws::String &value)
DisconnectSourceServerResult & WithLifeCycle(LifeCycle &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
DisconnectSourceServerResult & WithArn(const Aws::String &value)
DisconnectSourceServerResult & AddTags(Aws::String &&key, const Aws::String &value)
DisconnectSourceServerResult & WithSourceCloudProperties(const SourceCloudProperties &value)
const DataReplicationInfo & GetDataReplicationInfo() const
DisconnectSourceServerResult & WithStagingArea(const StagingArea &value)
DisconnectSourceServerResult & WithSourceProperties(SourceProperties &&value)
DisconnectSourceServerResult & WithLastLaunchResult(const LastLaunchResult &value)
const ReplicationDirection & GetReplicationDirection() const
DisconnectSourceServerResult & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
DisconnectSourceServerResult & WithSourceServerID(const Aws::String &value)
DisconnectSourceServerResult & WithReversedDirectionSourceServerArn(const char *value)
DisconnectSourceServerResult & WithSourceNetworkID(const char *value)
DisconnectSourceServerResult & AddTags(Aws::String &&key, const char *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