AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RecoveryInstance.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/RecoveryInstanceDataReplicationInfo.h>
10#include <aws/drs/model/EC2InstanceState.h>
11#include <aws/drs/model/RecoveryInstanceFailback.h>
12#include <aws/drs/model/OriginEnvironment.h>
13#include <aws/drs/model/RecoveryInstanceProperties.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace drs
28{
29namespace Model
30{
31
39 {
40 public:
41 AWS_DRS_API RecoveryInstance();
45
46
48
51 inline const Aws::String& GetAgentVersion() const{ return m_agentVersion; }
52 inline bool AgentVersionHasBeenSet() const { return m_agentVersionHasBeenSet; }
53 inline void SetAgentVersion(const Aws::String& value) { m_agentVersionHasBeenSet = true; m_agentVersion = value; }
54 inline void SetAgentVersion(Aws::String&& value) { m_agentVersionHasBeenSet = true; m_agentVersion = std::move(value); }
55 inline void SetAgentVersion(const char* value) { m_agentVersionHasBeenSet = true; m_agentVersion.assign(value); }
56 inline RecoveryInstance& WithAgentVersion(const Aws::String& value) { SetAgentVersion(value); return *this;}
57 inline RecoveryInstance& WithAgentVersion(Aws::String&& value) { SetAgentVersion(std::move(value)); return *this;}
58 inline RecoveryInstance& WithAgentVersion(const char* value) { SetAgentVersion(value); return *this;}
60
62
65 inline const Aws::String& GetArn() const{ return m_arn; }
66 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
67 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
68 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
69 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
70 inline RecoveryInstance& WithArn(const Aws::String& value) { SetArn(value); return *this;}
71 inline RecoveryInstance& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
72 inline RecoveryInstance& WithArn(const char* value) { SetArn(value); return *this;}
74
76
79 inline const RecoveryInstanceDataReplicationInfo& GetDataReplicationInfo() const{ return m_dataReplicationInfo; }
80 inline bool DataReplicationInfoHasBeenSet() const { return m_dataReplicationInfoHasBeenSet; }
81 inline void SetDataReplicationInfo(const RecoveryInstanceDataReplicationInfo& value) { m_dataReplicationInfoHasBeenSet = true; m_dataReplicationInfo = value; }
82 inline void SetDataReplicationInfo(RecoveryInstanceDataReplicationInfo&& value) { m_dataReplicationInfoHasBeenSet = true; m_dataReplicationInfo = std::move(value); }
86
88
91 inline const Aws::String& GetEc2InstanceID() const{ return m_ec2InstanceID; }
92 inline bool Ec2InstanceIDHasBeenSet() const { return m_ec2InstanceIDHasBeenSet; }
93 inline void SetEc2InstanceID(const Aws::String& value) { m_ec2InstanceIDHasBeenSet = true; m_ec2InstanceID = value; }
94 inline void SetEc2InstanceID(Aws::String&& value) { m_ec2InstanceIDHasBeenSet = true; m_ec2InstanceID = std::move(value); }
95 inline void SetEc2InstanceID(const char* value) { m_ec2InstanceIDHasBeenSet = true; m_ec2InstanceID.assign(value); }
96 inline RecoveryInstance& WithEc2InstanceID(const Aws::String& value) { SetEc2InstanceID(value); return *this;}
97 inline RecoveryInstance& WithEc2InstanceID(Aws::String&& value) { SetEc2InstanceID(std::move(value)); return *this;}
98 inline RecoveryInstance& WithEc2InstanceID(const char* value) { SetEc2InstanceID(value); return *this;}
100
102
105 inline const EC2InstanceState& GetEc2InstanceState() const{ return m_ec2InstanceState; }
106 inline bool Ec2InstanceStateHasBeenSet() const { return m_ec2InstanceStateHasBeenSet; }
107 inline void SetEc2InstanceState(const EC2InstanceState& value) { m_ec2InstanceStateHasBeenSet = true; m_ec2InstanceState = value; }
108 inline void SetEc2InstanceState(EC2InstanceState&& value) { m_ec2InstanceStateHasBeenSet = true; m_ec2InstanceState = std::move(value); }
109 inline RecoveryInstance& WithEc2InstanceState(const EC2InstanceState& value) { SetEc2InstanceState(value); return *this;}
110 inline RecoveryInstance& WithEc2InstanceState(EC2InstanceState&& value) { SetEc2InstanceState(std::move(value)); return *this;}
112
114
118 inline const RecoveryInstanceFailback& GetFailback() const{ return m_failback; }
119 inline bool FailbackHasBeenSet() const { return m_failbackHasBeenSet; }
120 inline void SetFailback(const RecoveryInstanceFailback& value) { m_failbackHasBeenSet = true; m_failback = value; }
121 inline void SetFailback(RecoveryInstanceFailback&& value) { m_failbackHasBeenSet = true; m_failback = std::move(value); }
122 inline RecoveryInstance& WithFailback(const RecoveryInstanceFailback& value) { SetFailback(value); return *this;}
123 inline RecoveryInstance& WithFailback(RecoveryInstanceFailback&& value) { SetFailback(std::move(value)); return *this;}
125
127
131 inline bool GetIsDrill() const{ return m_isDrill; }
132 inline bool IsDrillHasBeenSet() const { return m_isDrillHasBeenSet; }
133 inline void SetIsDrill(bool value) { m_isDrillHasBeenSet = true; m_isDrill = value; }
134 inline RecoveryInstance& WithIsDrill(bool value) { SetIsDrill(value); return *this;}
136
138
141 inline const Aws::String& GetJobID() const{ return m_jobID; }
142 inline bool JobIDHasBeenSet() const { return m_jobIDHasBeenSet; }
143 inline void SetJobID(const Aws::String& value) { m_jobIDHasBeenSet = true; m_jobID = value; }
144 inline void SetJobID(Aws::String&& value) { m_jobIDHasBeenSet = true; m_jobID = std::move(value); }
145 inline void SetJobID(const char* value) { m_jobIDHasBeenSet = true; m_jobID.assign(value); }
146 inline RecoveryInstance& WithJobID(const Aws::String& value) { SetJobID(value); return *this;}
147 inline RecoveryInstance& WithJobID(Aws::String&& value) { SetJobID(std::move(value)); return *this;}
148 inline RecoveryInstance& WithJobID(const char* value) { SetJobID(value); return *this;}
150
152
155 inline const Aws::String& GetOriginAvailabilityZone() const{ return m_originAvailabilityZone; }
156 inline bool OriginAvailabilityZoneHasBeenSet() const { return m_originAvailabilityZoneHasBeenSet; }
157 inline void SetOriginAvailabilityZone(const Aws::String& value) { m_originAvailabilityZoneHasBeenSet = true; m_originAvailabilityZone = value; }
158 inline void SetOriginAvailabilityZone(Aws::String&& value) { m_originAvailabilityZoneHasBeenSet = true; m_originAvailabilityZone = std::move(value); }
159 inline void SetOriginAvailabilityZone(const char* value) { m_originAvailabilityZoneHasBeenSet = true; m_originAvailabilityZone.assign(value); }
161 inline RecoveryInstance& WithOriginAvailabilityZone(Aws::String&& value) { SetOriginAvailabilityZone(std::move(value)); return *this;}
162 inline RecoveryInstance& WithOriginAvailabilityZone(const char* value) { SetOriginAvailabilityZone(value); return *this;}
164
166
170 inline const OriginEnvironment& GetOriginEnvironment() const{ return m_originEnvironment; }
171 inline bool OriginEnvironmentHasBeenSet() const { return m_originEnvironmentHasBeenSet; }
172 inline void SetOriginEnvironment(const OriginEnvironment& value) { m_originEnvironmentHasBeenSet = true; m_originEnvironment = value; }
173 inline void SetOriginEnvironment(OriginEnvironment&& value) { m_originEnvironmentHasBeenSet = true; m_originEnvironment = std::move(value); }
175 inline RecoveryInstance& WithOriginEnvironment(OriginEnvironment&& value) { SetOriginEnvironment(std::move(value)); return *this;}
177
179
183 inline const Aws::String& GetPointInTimeSnapshotDateTime() const{ return m_pointInTimeSnapshotDateTime; }
184 inline bool PointInTimeSnapshotDateTimeHasBeenSet() const { return m_pointInTimeSnapshotDateTimeHasBeenSet; }
185 inline void SetPointInTimeSnapshotDateTime(const Aws::String& value) { m_pointInTimeSnapshotDateTimeHasBeenSet = true; m_pointInTimeSnapshotDateTime = value; }
186 inline void SetPointInTimeSnapshotDateTime(Aws::String&& value) { m_pointInTimeSnapshotDateTimeHasBeenSet = true; m_pointInTimeSnapshotDateTime = std::move(value); }
187 inline void SetPointInTimeSnapshotDateTime(const char* value) { m_pointInTimeSnapshotDateTimeHasBeenSet = true; m_pointInTimeSnapshotDateTime.assign(value); }
190 inline RecoveryInstance& WithPointInTimeSnapshotDateTime(const char* value) { SetPointInTimeSnapshotDateTime(value); return *this;}
192
194
197 inline const Aws::String& GetRecoveryInstanceID() const{ return m_recoveryInstanceID; }
198 inline bool RecoveryInstanceIDHasBeenSet() const { return m_recoveryInstanceIDHasBeenSet; }
199 inline void SetRecoveryInstanceID(const Aws::String& value) { m_recoveryInstanceIDHasBeenSet = true; m_recoveryInstanceID = value; }
200 inline void SetRecoveryInstanceID(Aws::String&& value) { m_recoveryInstanceIDHasBeenSet = true; m_recoveryInstanceID = std::move(value); }
201 inline void SetRecoveryInstanceID(const char* value) { m_recoveryInstanceIDHasBeenSet = true; m_recoveryInstanceID.assign(value); }
202 inline RecoveryInstance& WithRecoveryInstanceID(const Aws::String& value) { SetRecoveryInstanceID(value); return *this;}
203 inline RecoveryInstance& WithRecoveryInstanceID(Aws::String&& value) { SetRecoveryInstanceID(std::move(value)); return *this;}
204 inline RecoveryInstance& WithRecoveryInstanceID(const char* value) { SetRecoveryInstanceID(value); return *this;}
206
208
211 inline const RecoveryInstanceProperties& GetRecoveryInstanceProperties() const{ return m_recoveryInstanceProperties; }
212 inline bool RecoveryInstancePropertiesHasBeenSet() const { return m_recoveryInstancePropertiesHasBeenSet; }
213 inline void SetRecoveryInstanceProperties(const RecoveryInstanceProperties& value) { m_recoveryInstancePropertiesHasBeenSet = true; m_recoveryInstanceProperties = value; }
214 inline void SetRecoveryInstanceProperties(RecoveryInstanceProperties&& value) { m_recoveryInstancePropertiesHasBeenSet = true; m_recoveryInstanceProperties = std::move(value); }
218
220
223 inline const Aws::String& GetSourceOutpostArn() const{ return m_sourceOutpostArn; }
224 inline bool SourceOutpostArnHasBeenSet() const { return m_sourceOutpostArnHasBeenSet; }
225 inline void SetSourceOutpostArn(const Aws::String& value) { m_sourceOutpostArnHasBeenSet = true; m_sourceOutpostArn = value; }
226 inline void SetSourceOutpostArn(Aws::String&& value) { m_sourceOutpostArnHasBeenSet = true; m_sourceOutpostArn = std::move(value); }
227 inline void SetSourceOutpostArn(const char* value) { m_sourceOutpostArnHasBeenSet = true; m_sourceOutpostArn.assign(value); }
228 inline RecoveryInstance& WithSourceOutpostArn(const Aws::String& value) { SetSourceOutpostArn(value); return *this;}
229 inline RecoveryInstance& WithSourceOutpostArn(Aws::String&& value) { SetSourceOutpostArn(std::move(value)); return *this;}
230 inline RecoveryInstance& WithSourceOutpostArn(const char* value) { SetSourceOutpostArn(value); return *this;}
232
234
237 inline const Aws::String& GetSourceServerID() const{ return m_sourceServerID; }
238 inline bool SourceServerIDHasBeenSet() const { return m_sourceServerIDHasBeenSet; }
239 inline void SetSourceServerID(const Aws::String& value) { m_sourceServerIDHasBeenSet = true; m_sourceServerID = value; }
240 inline void SetSourceServerID(Aws::String&& value) { m_sourceServerIDHasBeenSet = true; m_sourceServerID = std::move(value); }
241 inline void SetSourceServerID(const char* value) { m_sourceServerIDHasBeenSet = true; m_sourceServerID.assign(value); }
242 inline RecoveryInstance& WithSourceServerID(const Aws::String& value) { SetSourceServerID(value); return *this;}
243 inline RecoveryInstance& WithSourceServerID(Aws::String&& value) { SetSourceServerID(std::move(value)); return *this;}
244 inline RecoveryInstance& WithSourceServerID(const char* value) { SetSourceServerID(value); return *this;}
246
248
251 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
252 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
253 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
254 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
255 inline RecoveryInstance& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
256 inline RecoveryInstance& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
257 inline RecoveryInstance& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
258 inline RecoveryInstance& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
259 inline RecoveryInstance& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
260 inline RecoveryInstance& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
261 inline RecoveryInstance& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
262 inline RecoveryInstance& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
263 inline RecoveryInstance& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
265 private:
266
267 Aws::String m_agentVersion;
268 bool m_agentVersionHasBeenSet = false;
269
270 Aws::String m_arn;
271 bool m_arnHasBeenSet = false;
272
273 RecoveryInstanceDataReplicationInfo m_dataReplicationInfo;
274 bool m_dataReplicationInfoHasBeenSet = false;
275
276 Aws::String m_ec2InstanceID;
277 bool m_ec2InstanceIDHasBeenSet = false;
278
279 EC2InstanceState m_ec2InstanceState;
280 bool m_ec2InstanceStateHasBeenSet = false;
281
282 RecoveryInstanceFailback m_failback;
283 bool m_failbackHasBeenSet = false;
284
285 bool m_isDrill;
286 bool m_isDrillHasBeenSet = false;
287
288 Aws::String m_jobID;
289 bool m_jobIDHasBeenSet = false;
290
291 Aws::String m_originAvailabilityZone;
292 bool m_originAvailabilityZoneHasBeenSet = false;
293
294 OriginEnvironment m_originEnvironment;
295 bool m_originEnvironmentHasBeenSet = false;
296
297 Aws::String m_pointInTimeSnapshotDateTime;
298 bool m_pointInTimeSnapshotDateTimeHasBeenSet = false;
299
300 Aws::String m_recoveryInstanceID;
301 bool m_recoveryInstanceIDHasBeenSet = false;
302
303 RecoveryInstanceProperties m_recoveryInstanceProperties;
304 bool m_recoveryInstancePropertiesHasBeenSet = false;
305
306 Aws::String m_sourceOutpostArn;
307 bool m_sourceOutpostArnHasBeenSet = false;
308
309 Aws::String m_sourceServerID;
310 bool m_sourceServerIDHasBeenSet = false;
311
313 bool m_tagsHasBeenSet = false;
314 };
315
316} // namespace Model
317} // namespace drs
318} // namespace Aws
void SetJobID(Aws::String &&value)
RecoveryInstance & WithAgentVersion(const Aws::String &value)
void SetAgentVersion(Aws::String &&value)
void SetOriginAvailabilityZone(const Aws::String &value)
void SetArn(Aws::String &&value)
void SetSourceServerID(const Aws::String &value)
RecoveryInstance & AddTags(Aws::String &&key, const char *value)
void SetDataReplicationInfo(RecoveryInstanceDataReplicationInfo &&value)
RecoveryInstance & WithRecoveryInstanceProperties(const RecoveryInstanceProperties &value)
RecoveryInstance & WithJobID(const char *value)
RecoveryInstance & WithSourceServerID(Aws::String &&value)
const Aws::String & GetSourceOutpostArn() const
const RecoveryInstanceDataReplicationInfo & GetDataReplicationInfo() const
RecoveryInstance & WithRecoveryInstanceID(const char *value)
void SetArn(const Aws::String &value)
const Aws::String & GetJobID() const
void SetRecoveryInstanceProperties(const RecoveryInstanceProperties &value)
void SetOriginEnvironment(OriginEnvironment &&value)
RecoveryInstance & WithOriginEnvironment(OriginEnvironment &&value)
void SetEc2InstanceState(const EC2InstanceState &value)
void SetEc2InstanceID(const char *value)
RecoveryInstance & WithPointInTimeSnapshotDateTime(Aws::String &&value)
const Aws::String & GetArn() const
RecoveryInstance & AddTags(const Aws::String &key, Aws::String &&value)
void SetPointInTimeSnapshotDateTime(const char *value)
AWS_DRS_API RecoveryInstance & operator=(Aws::Utils::Json::JsonView jsonValue)
RecoveryInstance & AddTags(Aws::String &&key, Aws::String &&value)
void SetPointInTimeSnapshotDateTime(const Aws::String &value)
void SetOriginAvailabilityZone(Aws::String &&value)
RecoveryInstance & WithJobID(Aws::String &&value)
const RecoveryInstanceFailback & GetFailback() const
RecoveryInstance & WithArn(const char *value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
RecoveryInstance & WithOriginAvailabilityZone(const char *value)
RecoveryInstance & WithEc2InstanceState(EC2InstanceState &&value)
void SetAgentVersion(const char *value)
RecoveryInstance & WithEc2InstanceState(const EC2InstanceState &value)
void SetDataReplicationInfo(const RecoveryInstanceDataReplicationInfo &value)
const EC2InstanceState & GetEc2InstanceState() const
RecoveryInstance & WithAgentVersion(Aws::String &&value)
const OriginEnvironment & GetOriginEnvironment() const
const Aws::String & GetAgentVersion() const
RecoveryInstance & WithOriginAvailabilityZone(const Aws::String &value)
void SetRecoveryInstanceID(Aws::String &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
const RecoveryInstanceProperties & GetRecoveryInstanceProperties() const
RecoveryInstance & WithRecoveryInstanceProperties(RecoveryInstanceProperties &&value)
RecoveryInstance & WithOriginEnvironment(const OriginEnvironment &value)
RecoveryInstance & WithAgentVersion(const char *value)
RecoveryInstance & AddTags(const char *key, Aws::String &&value)
RecoveryInstance & WithFailback(const RecoveryInstanceFailback &value)
RecoveryInstance & AddTags(Aws::String &&key, const Aws::String &value)
void SetFailback(RecoveryInstanceFailback &&value)
RecoveryInstance & WithOriginAvailabilityZone(Aws::String &&value)
void SetRecoveryInstanceProperties(RecoveryInstanceProperties &&value)
void SetSourceServerID(const char *value)
RecoveryInstance & WithSourceOutpostArn(const Aws::String &value)
void SetEc2InstanceID(Aws::String &&value)
void SetSourceOutpostArn(Aws::String &&value)
void SetSourceServerID(Aws::String &&value)
void SetJobID(const Aws::String &value)
RecoveryInstance & WithArn(Aws::String &&value)
void SetRecoveryInstanceID(const Aws::String &value)
RecoveryInstance & WithEc2InstanceID(const Aws::String &value)
AWS_DRS_API RecoveryInstance(Aws::Utils::Json::JsonView jsonValue)
RecoveryInstance & WithRecoveryInstanceID(Aws::String &&value)
void SetSourceOutpostArn(const Aws::String &value)
void SetEc2InstanceState(EC2InstanceState &&value)
RecoveryInstance & WithJobID(const Aws::String &value)
RecoveryInstance & WithSourceServerID(const Aws::String &value)
void SetRecoveryInstanceID(const char *value)
const Aws::String & GetRecoveryInstanceID() const
RecoveryInstance & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
RecoveryInstance & AddTags(const char *key, const char *value)
void SetSourceOutpostArn(const char *value)
RecoveryInstance & WithDataReplicationInfo(RecoveryInstanceDataReplicationInfo &&value)
AWS_DRS_API Aws::Utils::Json::JsonValue Jsonize() const
RecoveryInstance & AddTags(const Aws::String &key, const Aws::String &value)
void SetOriginEnvironment(const OriginEnvironment &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
RecoveryInstance & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
RecoveryInstance & WithIsDrill(bool value)
RecoveryInstance & WithSourceOutpostArn(Aws::String &&value)
RecoveryInstance & WithRecoveryInstanceID(const Aws::String &value)
RecoveryInstance & WithEc2InstanceID(Aws::String &&value)
RecoveryInstance & WithSourceServerID(const char *value)
RecoveryInstance & WithSourceOutpostArn(const char *value)
RecoveryInstance & WithDataReplicationInfo(const RecoveryInstanceDataReplicationInfo &value)
const Aws::String & GetSourceServerID() const
void SetEc2InstanceID(const Aws::String &value)
RecoveryInstance & WithPointInTimeSnapshotDateTime(const char *value)
RecoveryInstance & WithEc2InstanceID(const char *value)
const Aws::String & GetEc2InstanceID() const
const Aws::String & GetPointInTimeSnapshotDateTime() const
void SetOriginAvailabilityZone(const char *value)
const Aws::String & GetOriginAvailabilityZone() const
RecoveryInstance & WithArn(const Aws::String &value)
RecoveryInstance & WithPointInTimeSnapshotDateTime(const Aws::String &value)
void SetFailback(const RecoveryInstanceFailback &value)
void SetAgentVersion(const Aws::String &value)
RecoveryInstance & WithFailback(RecoveryInstanceFailback &&value)
void SetPointInTimeSnapshotDateTime(Aws::String &&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