AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
SourceNetwork.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/drs/Drs_EXPORTS.h>
10#include <aws/drs/model/RecoveryLifeCycle.h>
11#include <aws/drs/model/ReplicationStatus.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace drs {
23namespace Model {
24
31 public:
32 AWS_DRS_API SourceNetwork() = default;
36
38
41 inline const Aws::String& GetSourceNetworkID() const { return m_sourceNetworkID; }
42 inline bool SourceNetworkIDHasBeenSet() const { return m_sourceNetworkIDHasBeenSet; }
43 template <typename SourceNetworkIDT = Aws::String>
44 void SetSourceNetworkID(SourceNetworkIDT&& value) {
45 m_sourceNetworkIDHasBeenSet = true;
46 m_sourceNetworkID = std::forward<SourceNetworkIDT>(value);
47 }
48 template <typename SourceNetworkIDT = Aws::String>
49 SourceNetwork& WithSourceNetworkID(SourceNetworkIDT&& value) {
50 SetSourceNetworkID(std::forward<SourceNetworkIDT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetSourceVpcID() const { return m_sourceVpcID; }
60 inline bool SourceVpcIDHasBeenSet() const { return m_sourceVpcIDHasBeenSet; }
61 template <typename SourceVpcIDT = Aws::String>
62 void SetSourceVpcID(SourceVpcIDT&& value) {
63 m_sourceVpcIDHasBeenSet = true;
64 m_sourceVpcID = std::forward<SourceVpcIDT>(value);
65 }
66 template <typename SourceVpcIDT = Aws::String>
67 SourceNetwork& WithSourceVpcID(SourceVpcIDT&& value) {
68 SetSourceVpcID(std::forward<SourceVpcIDT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetArn() const { return m_arn; }
78 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
79 template <typename ArnT = Aws::String>
80 void SetArn(ArnT&& value) {
81 m_arnHasBeenSet = true;
82 m_arn = std::forward<ArnT>(value);
83 }
84 template <typename ArnT = Aws::String>
85 SourceNetwork& WithArn(ArnT&& value) {
86 SetArn(std::forward<ArnT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
96 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
97 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
98 void SetTags(TagsT&& value) {
99 m_tagsHasBeenSet = true;
100 m_tags = std::forward<TagsT>(value);
101 }
102 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
103 SourceNetwork& WithTags(TagsT&& value) {
104 SetTags(std::forward<TagsT>(value));
105 return *this;
106 }
107 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
108 SourceNetwork& AddTags(TagsKeyT&& key, TagsValueT&& value) {
109 m_tagsHasBeenSet = true;
110 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
111 return *this;
112 }
114
116
123 inline ReplicationStatus GetReplicationStatus() const { return m_replicationStatus; }
124 inline bool ReplicationStatusHasBeenSet() const { return m_replicationStatusHasBeenSet; }
126 m_replicationStatusHasBeenSet = true;
127 m_replicationStatus = value;
128 }
131 return *this;
132 }
134
136
139 inline const Aws::String& GetReplicationStatusDetails() const { return m_replicationStatusDetails; }
140 inline bool ReplicationStatusDetailsHasBeenSet() const { return m_replicationStatusDetailsHasBeenSet; }
141 template <typename ReplicationStatusDetailsT = Aws::String>
142 void SetReplicationStatusDetails(ReplicationStatusDetailsT&& value) {
143 m_replicationStatusDetailsHasBeenSet = true;
144 m_replicationStatusDetails = std::forward<ReplicationStatusDetailsT>(value);
145 }
146 template <typename ReplicationStatusDetailsT = Aws::String>
147 SourceNetwork& WithReplicationStatusDetails(ReplicationStatusDetailsT&& value) {
148 SetReplicationStatusDetails(std::forward<ReplicationStatusDetailsT>(value));
149 return *this;
150 }
152
154
158 inline const Aws::String& GetCfnStackName() const { return m_cfnStackName; }
159 inline bool CfnStackNameHasBeenSet() const { return m_cfnStackNameHasBeenSet; }
160 template <typename CfnStackNameT = Aws::String>
161 void SetCfnStackName(CfnStackNameT&& value) {
162 m_cfnStackNameHasBeenSet = true;
163 m_cfnStackName = std::forward<CfnStackNameT>(value);
164 }
165 template <typename CfnStackNameT = Aws::String>
166 SourceNetwork& WithCfnStackName(CfnStackNameT&& value) {
167 SetCfnStackName(std::forward<CfnStackNameT>(value));
168 return *this;
169 }
171
173
176 inline const Aws::String& GetSourceRegion() const { return m_sourceRegion; }
177 inline bool SourceRegionHasBeenSet() const { return m_sourceRegionHasBeenSet; }
178 template <typename SourceRegionT = Aws::String>
179 void SetSourceRegion(SourceRegionT&& value) {
180 m_sourceRegionHasBeenSet = true;
181 m_sourceRegion = std::forward<SourceRegionT>(value);
182 }
183 template <typename SourceRegionT = Aws::String>
184 SourceNetwork& WithSourceRegion(SourceRegionT&& value) {
185 SetSourceRegion(std::forward<SourceRegionT>(value));
186 return *this;
187 }
189
191
194 inline const Aws::String& GetSourceAccountID() const { return m_sourceAccountID; }
195 inline bool SourceAccountIDHasBeenSet() const { return m_sourceAccountIDHasBeenSet; }
196 template <typename SourceAccountIDT = Aws::String>
197 void SetSourceAccountID(SourceAccountIDT&& value) {
198 m_sourceAccountIDHasBeenSet = true;
199 m_sourceAccountID = std::forward<SourceAccountIDT>(value);
200 }
201 template <typename SourceAccountIDT = Aws::String>
202 SourceNetwork& WithSourceAccountID(SourceAccountIDT&& value) {
203 SetSourceAccountID(std::forward<SourceAccountIDT>(value));
204 return *this;
205 }
207
209
213 inline const RecoveryLifeCycle& GetLastRecovery() const { return m_lastRecovery; }
214 inline bool LastRecoveryHasBeenSet() const { return m_lastRecoveryHasBeenSet; }
215 template <typename LastRecoveryT = RecoveryLifeCycle>
216 void SetLastRecovery(LastRecoveryT&& value) {
217 m_lastRecoveryHasBeenSet = true;
218 m_lastRecovery = std::forward<LastRecoveryT>(value);
219 }
220 template <typename LastRecoveryT = RecoveryLifeCycle>
221 SourceNetwork& WithLastRecovery(LastRecoveryT&& value) {
222 SetLastRecovery(std::forward<LastRecoveryT>(value));
223 return *this;
224 }
226
228
231 inline const Aws::String& GetLaunchedVpcID() const { return m_launchedVpcID; }
232 inline bool LaunchedVpcIDHasBeenSet() const { return m_launchedVpcIDHasBeenSet; }
233 template <typename LaunchedVpcIDT = Aws::String>
234 void SetLaunchedVpcID(LaunchedVpcIDT&& value) {
235 m_launchedVpcIDHasBeenSet = true;
236 m_launchedVpcID = std::forward<LaunchedVpcIDT>(value);
237 }
238 template <typename LaunchedVpcIDT = Aws::String>
239 SourceNetwork& WithLaunchedVpcID(LaunchedVpcIDT&& value) {
240 SetLaunchedVpcID(std::forward<LaunchedVpcIDT>(value));
241 return *this;
242 }
244 private:
245 Aws::String m_sourceNetworkID;
246
247 Aws::String m_sourceVpcID;
248
249 Aws::String m_arn;
250
252
254
255 Aws::String m_replicationStatusDetails;
256
257 Aws::String m_cfnStackName;
258
259 Aws::String m_sourceRegion;
260
261 Aws::String m_sourceAccountID;
262
263 RecoveryLifeCycle m_lastRecovery;
264
265 Aws::String m_launchedVpcID;
266 bool m_sourceNetworkIDHasBeenSet = false;
267 bool m_sourceVpcIDHasBeenSet = false;
268 bool m_arnHasBeenSet = false;
269 bool m_tagsHasBeenSet = false;
270 bool m_replicationStatusHasBeenSet = false;
271 bool m_replicationStatusDetailsHasBeenSet = false;
272 bool m_cfnStackNameHasBeenSet = false;
273 bool m_sourceRegionHasBeenSet = false;
274 bool m_sourceAccountIDHasBeenSet = false;
275 bool m_lastRecoveryHasBeenSet = false;
276 bool m_launchedVpcIDHasBeenSet = false;
277};
278
279} // namespace Model
280} // namespace drs
281} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetTags() const
SourceNetwork & WithReplicationStatus(ReplicationStatus value)
SourceNetwork & WithReplicationStatusDetails(ReplicationStatusDetailsT &&value)
void SetTags(TagsT &&value)
void SetSourceVpcID(SourceVpcIDT &&value)
ReplicationStatus GetReplicationStatus() const
const Aws::String & GetReplicationStatusDetails() const
SourceNetwork & WithSourceRegion(SourceRegionT &&value)
SourceNetwork & WithLaunchedVpcID(LaunchedVpcIDT &&value)
AWS_DRS_API SourceNetwork(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetSourceAccountID() const
const Aws::String & GetSourceRegion() const
bool ReplicationStatusDetailsHasBeenSet() const
SourceNetwork & WithArn(ArnT &&value)
const Aws::String & GetSourceNetworkID() const
void SetLaunchedVpcID(LaunchedVpcIDT &&value)
void SetReplicationStatus(ReplicationStatus value)
void SetCfnStackName(CfnStackNameT &&value)
AWS_DRS_API SourceNetwork & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLastRecovery(LastRecoveryT &&value)
AWS_DRS_API SourceNetwork()=default
void SetSourceAccountID(SourceAccountIDT &&value)
SourceNetwork & WithTags(TagsT &&value)
void SetSourceNetworkID(SourceNetworkIDT &&value)
SourceNetwork & WithSourceNetworkID(SourceNetworkIDT &&value)
const Aws::String & GetCfnStackName() const
const RecoveryLifeCycle & GetLastRecovery() const
const Aws::String & GetArn() const
SourceNetwork & WithSourceVpcID(SourceVpcIDT &&value)
const Aws::String & GetSourceVpcID() const
SourceNetwork & AddTags(TagsKeyT &&key, TagsValueT &&value)
void SetSourceRegion(SourceRegionT &&value)
SourceNetwork & WithSourceAccountID(SourceAccountIDT &&value)
SourceNetwork & WithCfnStackName(CfnStackNameT &&value)
AWS_DRS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetLaunchedVpcID() const
SourceNetwork & WithLastRecovery(LastRecoveryT &&value)
void SetReplicationStatusDetails(ReplicationStatusDetailsT &&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