AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SourceNetwork.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/RecoveryLifeCycle.h>
10#include <aws/drs/model/ReplicationStatus.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace drs
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_DRS_API SourceNetwork();
41
42
44
47 inline const Aws::String& GetArn() const{ return m_arn; }
48 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
49 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
50 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
51 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
52 inline SourceNetwork& WithArn(const Aws::String& value) { SetArn(value); return *this;}
53 inline SourceNetwork& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
54 inline SourceNetwork& WithArn(const char* value) { SetArn(value); return *this;}
56
58
62 inline const Aws::String& GetCfnStackName() const{ return m_cfnStackName; }
63 inline bool CfnStackNameHasBeenSet() const { return m_cfnStackNameHasBeenSet; }
64 inline void SetCfnStackName(const Aws::String& value) { m_cfnStackNameHasBeenSet = true; m_cfnStackName = value; }
65 inline void SetCfnStackName(Aws::String&& value) { m_cfnStackNameHasBeenSet = true; m_cfnStackName = std::move(value); }
66 inline void SetCfnStackName(const char* value) { m_cfnStackNameHasBeenSet = true; m_cfnStackName.assign(value); }
67 inline SourceNetwork& WithCfnStackName(const Aws::String& value) { SetCfnStackName(value); return *this;}
68 inline SourceNetwork& WithCfnStackName(Aws::String&& value) { SetCfnStackName(std::move(value)); return *this;}
69 inline SourceNetwork& WithCfnStackName(const char* value) { SetCfnStackName(value); return *this;}
71
73
77 inline const RecoveryLifeCycle& GetLastRecovery() const{ return m_lastRecovery; }
78 inline bool LastRecoveryHasBeenSet() const { return m_lastRecoveryHasBeenSet; }
79 inline void SetLastRecovery(const RecoveryLifeCycle& value) { m_lastRecoveryHasBeenSet = true; m_lastRecovery = value; }
80 inline void SetLastRecovery(RecoveryLifeCycle&& value) { m_lastRecoveryHasBeenSet = true; m_lastRecovery = std::move(value); }
81 inline SourceNetwork& WithLastRecovery(const RecoveryLifeCycle& value) { SetLastRecovery(value); return *this;}
82 inline SourceNetwork& WithLastRecovery(RecoveryLifeCycle&& value) { SetLastRecovery(std::move(value)); return *this;}
84
86
89 inline const Aws::String& GetLaunchedVpcID() const{ return m_launchedVpcID; }
90 inline bool LaunchedVpcIDHasBeenSet() const { return m_launchedVpcIDHasBeenSet; }
91 inline void SetLaunchedVpcID(const Aws::String& value) { m_launchedVpcIDHasBeenSet = true; m_launchedVpcID = value; }
92 inline void SetLaunchedVpcID(Aws::String&& value) { m_launchedVpcIDHasBeenSet = true; m_launchedVpcID = std::move(value); }
93 inline void SetLaunchedVpcID(const char* value) { m_launchedVpcIDHasBeenSet = true; m_launchedVpcID.assign(value); }
94 inline SourceNetwork& WithLaunchedVpcID(const Aws::String& value) { SetLaunchedVpcID(value); return *this;}
95 inline SourceNetwork& WithLaunchedVpcID(Aws::String&& value) { SetLaunchedVpcID(std::move(value)); return *this;}
96 inline SourceNetwork& WithLaunchedVpcID(const char* value) { SetLaunchedVpcID(value); return *this;}
98
100
107 inline const ReplicationStatus& GetReplicationStatus() const{ return m_replicationStatus; }
108 inline bool ReplicationStatusHasBeenSet() const { return m_replicationStatusHasBeenSet; }
109 inline void SetReplicationStatus(const ReplicationStatus& value) { m_replicationStatusHasBeenSet = true; m_replicationStatus = value; }
110 inline void SetReplicationStatus(ReplicationStatus&& value) { m_replicationStatusHasBeenSet = true; m_replicationStatus = std::move(value); }
111 inline SourceNetwork& WithReplicationStatus(const ReplicationStatus& value) { SetReplicationStatus(value); return *this;}
112 inline SourceNetwork& WithReplicationStatus(ReplicationStatus&& value) { SetReplicationStatus(std::move(value)); return *this;}
114
116
119 inline const Aws::String& GetReplicationStatusDetails() const{ return m_replicationStatusDetails; }
120 inline bool ReplicationStatusDetailsHasBeenSet() const { return m_replicationStatusDetailsHasBeenSet; }
121 inline void SetReplicationStatusDetails(const Aws::String& value) { m_replicationStatusDetailsHasBeenSet = true; m_replicationStatusDetails = value; }
122 inline void SetReplicationStatusDetails(Aws::String&& value) { m_replicationStatusDetailsHasBeenSet = true; m_replicationStatusDetails = std::move(value); }
123 inline void SetReplicationStatusDetails(const char* value) { m_replicationStatusDetailsHasBeenSet = true; m_replicationStatusDetails.assign(value); }
125 inline SourceNetwork& WithReplicationStatusDetails(Aws::String&& value) { SetReplicationStatusDetails(std::move(value)); return *this;}
126 inline SourceNetwork& WithReplicationStatusDetails(const char* value) { SetReplicationStatusDetails(value); return *this;}
128
130
133 inline const Aws::String& GetSourceAccountID() const{ return m_sourceAccountID; }
134 inline bool SourceAccountIDHasBeenSet() const { return m_sourceAccountIDHasBeenSet; }
135 inline void SetSourceAccountID(const Aws::String& value) { m_sourceAccountIDHasBeenSet = true; m_sourceAccountID = value; }
136 inline void SetSourceAccountID(Aws::String&& value) { m_sourceAccountIDHasBeenSet = true; m_sourceAccountID = std::move(value); }
137 inline void SetSourceAccountID(const char* value) { m_sourceAccountIDHasBeenSet = true; m_sourceAccountID.assign(value); }
138 inline SourceNetwork& WithSourceAccountID(const Aws::String& value) { SetSourceAccountID(value); return *this;}
139 inline SourceNetwork& WithSourceAccountID(Aws::String&& value) { SetSourceAccountID(std::move(value)); return *this;}
140 inline SourceNetwork& WithSourceAccountID(const char* value) { SetSourceAccountID(value); return *this;}
142
144
147 inline const Aws::String& GetSourceNetworkID() const{ return m_sourceNetworkID; }
148 inline bool SourceNetworkIDHasBeenSet() const { return m_sourceNetworkIDHasBeenSet; }
149 inline void SetSourceNetworkID(const Aws::String& value) { m_sourceNetworkIDHasBeenSet = true; m_sourceNetworkID = value; }
150 inline void SetSourceNetworkID(Aws::String&& value) { m_sourceNetworkIDHasBeenSet = true; m_sourceNetworkID = std::move(value); }
151 inline void SetSourceNetworkID(const char* value) { m_sourceNetworkIDHasBeenSet = true; m_sourceNetworkID.assign(value); }
152 inline SourceNetwork& WithSourceNetworkID(const Aws::String& value) { SetSourceNetworkID(value); return *this;}
153 inline SourceNetwork& WithSourceNetworkID(Aws::String&& value) { SetSourceNetworkID(std::move(value)); return *this;}
154 inline SourceNetwork& WithSourceNetworkID(const char* value) { SetSourceNetworkID(value); return *this;}
156
158
161 inline const Aws::String& GetSourceRegion() const{ return m_sourceRegion; }
162 inline bool SourceRegionHasBeenSet() const { return m_sourceRegionHasBeenSet; }
163 inline void SetSourceRegion(const Aws::String& value) { m_sourceRegionHasBeenSet = true; m_sourceRegion = value; }
164 inline void SetSourceRegion(Aws::String&& value) { m_sourceRegionHasBeenSet = true; m_sourceRegion = std::move(value); }
165 inline void SetSourceRegion(const char* value) { m_sourceRegionHasBeenSet = true; m_sourceRegion.assign(value); }
166 inline SourceNetwork& WithSourceRegion(const Aws::String& value) { SetSourceRegion(value); return *this;}
167 inline SourceNetwork& WithSourceRegion(Aws::String&& value) { SetSourceRegion(std::move(value)); return *this;}
168 inline SourceNetwork& WithSourceRegion(const char* value) { SetSourceRegion(value); return *this;}
170
172
175 inline const Aws::String& GetSourceVpcID() const{ return m_sourceVpcID; }
176 inline bool SourceVpcIDHasBeenSet() const { return m_sourceVpcIDHasBeenSet; }
177 inline void SetSourceVpcID(const Aws::String& value) { m_sourceVpcIDHasBeenSet = true; m_sourceVpcID = value; }
178 inline void SetSourceVpcID(Aws::String&& value) { m_sourceVpcIDHasBeenSet = true; m_sourceVpcID = std::move(value); }
179 inline void SetSourceVpcID(const char* value) { m_sourceVpcIDHasBeenSet = true; m_sourceVpcID.assign(value); }
180 inline SourceNetwork& WithSourceVpcID(const Aws::String& value) { SetSourceVpcID(value); return *this;}
181 inline SourceNetwork& WithSourceVpcID(Aws::String&& value) { SetSourceVpcID(std::move(value)); return *this;}
182 inline SourceNetwork& WithSourceVpcID(const char* value) { SetSourceVpcID(value); return *this;}
184
186
189 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
190 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
191 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
192 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
193 inline SourceNetwork& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
194 inline SourceNetwork& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
195 inline SourceNetwork& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
196 inline SourceNetwork& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
197 inline SourceNetwork& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
198 inline SourceNetwork& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
199 inline SourceNetwork& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
200 inline SourceNetwork& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
201 inline SourceNetwork& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
203 private:
204
205 Aws::String m_arn;
206 bool m_arnHasBeenSet = false;
207
208 Aws::String m_cfnStackName;
209 bool m_cfnStackNameHasBeenSet = false;
210
211 RecoveryLifeCycle m_lastRecovery;
212 bool m_lastRecoveryHasBeenSet = false;
213
214 Aws::String m_launchedVpcID;
215 bool m_launchedVpcIDHasBeenSet = false;
216
217 ReplicationStatus m_replicationStatus;
218 bool m_replicationStatusHasBeenSet = false;
219
220 Aws::String m_replicationStatusDetails;
221 bool m_replicationStatusDetailsHasBeenSet = false;
222
223 Aws::String m_sourceAccountID;
224 bool m_sourceAccountIDHasBeenSet = false;
225
226 Aws::String m_sourceNetworkID;
227 bool m_sourceNetworkIDHasBeenSet = false;
228
229 Aws::String m_sourceRegion;
230 bool m_sourceRegionHasBeenSet = false;
231
232 Aws::String m_sourceVpcID;
233 bool m_sourceVpcIDHasBeenSet = false;
234
236 bool m_tagsHasBeenSet = false;
237 };
238
239} // namespace Model
240} // namespace drs
241} // namespace Aws
void SetLaunchedVpcID(const char *value)
SourceNetwork & WithSourceRegion(const char *value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetSourceNetworkID(const char *value)
SourceNetwork & WithReplicationStatusDetails(const Aws::String &value)
void SetCfnStackName(Aws::String &&value)
SourceNetwork & WithReplicationStatusDetails(Aws::String &&value)
void SetLastRecovery(RecoveryLifeCycle &&value)
void SetArn(Aws::String &&value)
void SetSourceRegion(Aws::String &&value)
void SetLastRecovery(const RecoveryLifeCycle &value)
SourceNetwork & AddTags(Aws::String &&key, const Aws::String &value)
SourceNetwork & WithArn(Aws::String &&value)
SourceNetwork & WithLastRecovery(RecoveryLifeCycle &&value)
void SetCfnStackName(const Aws::String &value)
SourceNetwork & WithSourceAccountID(const char *value)
const Aws::String & GetReplicationStatusDetails() const
SourceNetwork & WithCfnStackName(Aws::String &&value)
SourceNetwork & WithReplicationStatus(const ReplicationStatus &value)
void SetCfnStackName(const char *value)
void SetSourceRegion(const Aws::String &value)
SourceNetwork & WithArn(const Aws::String &value)
AWS_DRS_API SourceNetwork(Aws::Utils::Json::JsonView jsonValue)
SourceNetwork & AddTags(Aws::String &&key, Aws::String &&value)
const Aws::String & GetSourceAccountID() const
SourceNetwork & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
SourceNetwork & WithSourceVpcID(Aws::String &&value)
void SetReplicationStatusDetails(Aws::String &&value)
const Aws::String & GetSourceRegion() const
SourceNetwork & WithLastRecovery(const RecoveryLifeCycle &value)
SourceNetwork & AddTags(const char *key, const char *value)
SourceNetwork & AddTags(const char *key, Aws::String &&value)
bool ReplicationStatusDetailsHasBeenSet() const
SourceNetwork & AddTags(const Aws::String &key, Aws::String &&value)
const Aws::String & GetSourceNetworkID() const
SourceNetwork & WithSourceRegion(const Aws::String &value)
SourceNetwork & WithCfnStackName(const char *value)
SourceNetwork & WithSourceRegion(Aws::String &&value)
void SetReplicationStatusDetails(const char *value)
SourceNetwork & WithLaunchedVpcID(const char *value)
void SetSourceVpcID(const Aws::String &value)
SourceNetwork & WithReplicationStatusDetails(const char *value)
void SetLaunchedVpcID(const Aws::String &value)
SourceNetwork & WithSourceVpcID(const char *value)
AWS_DRS_API SourceNetwork & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetArn(const Aws::String &value)
void SetSourceNetworkID(Aws::String &&value)
SourceNetwork & WithSourceNetworkID(const char *value)
void SetSourceNetworkID(const Aws::String &value)
SourceNetwork & WithReplicationStatus(ReplicationStatus &&value)
SourceNetwork & WithSourceAccountID(Aws::String &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetArn(const char *value)
void SetSourceAccountID(Aws::String &&value)
SourceNetwork & WithSourceVpcID(const Aws::String &value)
void SetLaunchedVpcID(Aws::String &&value)
void SetSourceVpcID(Aws::String &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::String & GetCfnStackName() const
SourceNetwork & AddTags(Aws::String &&key, const char *value)
const RecoveryLifeCycle & GetLastRecovery() const
SourceNetwork & WithArn(const char *value)
void SetSourceRegion(const char *value)
void SetReplicationStatus(const ReplicationStatus &value)
SourceNetwork & WithLaunchedVpcID(const Aws::String &value)
SourceNetwork & WithSourceNetworkID(const Aws::String &value)
const Aws::String & GetArn() const
void SetSourceAccountID(const Aws::String &value)
const Aws::String & GetSourceVpcID() const
SourceNetwork & WithSourceAccountID(const Aws::String &value)
const ReplicationStatus & GetReplicationStatus() const
SourceNetwork & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetSourceVpcID(const char *value)
void SetReplicationStatus(ReplicationStatus &&value)
SourceNetwork & WithSourceNetworkID(Aws::String &&value)
void SetSourceAccountID(const char *value)
AWS_DRS_API Aws::Utils::Json::JsonValue Jsonize() const
SourceNetwork & AddTags(const Aws::String &key, const Aws::String &value)
SourceNetwork & WithCfnStackName(const Aws::String &value)
const Aws::String & GetLaunchedVpcID() const
SourceNetwork & WithLaunchedVpcID(Aws::String &&value)
void SetReplicationStatusDetails(const 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