AWS SDK for C++

AWS SDK for C++ Version 1.11.741

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& GetArn() const { return m_arn; }
42 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
43 template <typename ArnT = Aws::String>
44 void SetArn(ArnT&& value) {
45 m_arnHasBeenSet = true;
46 m_arn = std::forward<ArnT>(value);
47 }
48 template <typename ArnT = Aws::String>
49 SourceNetwork& WithArn(ArnT&& value) {
50 SetArn(std::forward<ArnT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetCfnStackName() const { return m_cfnStackName; }
61 inline bool CfnStackNameHasBeenSet() const { return m_cfnStackNameHasBeenSet; }
62 template <typename CfnStackNameT = Aws::String>
63 void SetCfnStackName(CfnStackNameT&& value) {
64 m_cfnStackNameHasBeenSet = true;
65 m_cfnStackName = std::forward<CfnStackNameT>(value);
66 }
67 template <typename CfnStackNameT = Aws::String>
68 SourceNetwork& WithCfnStackName(CfnStackNameT&& value) {
69 SetCfnStackName(std::forward<CfnStackNameT>(value));
70 return *this;
71 }
73
75
79 inline const RecoveryLifeCycle& GetLastRecovery() const { return m_lastRecovery; }
80 inline bool LastRecoveryHasBeenSet() const { return m_lastRecoveryHasBeenSet; }
81 template <typename LastRecoveryT = RecoveryLifeCycle>
82 void SetLastRecovery(LastRecoveryT&& value) {
83 m_lastRecoveryHasBeenSet = true;
84 m_lastRecovery = std::forward<LastRecoveryT>(value);
85 }
86 template <typename LastRecoveryT = RecoveryLifeCycle>
87 SourceNetwork& WithLastRecovery(LastRecoveryT&& value) {
88 SetLastRecovery(std::forward<LastRecoveryT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetLaunchedVpcID() const { return m_launchedVpcID; }
98 inline bool LaunchedVpcIDHasBeenSet() const { return m_launchedVpcIDHasBeenSet; }
99 template <typename LaunchedVpcIDT = Aws::String>
100 void SetLaunchedVpcID(LaunchedVpcIDT&& value) {
101 m_launchedVpcIDHasBeenSet = true;
102 m_launchedVpcID = std::forward<LaunchedVpcIDT>(value);
103 }
104 template <typename LaunchedVpcIDT = Aws::String>
105 SourceNetwork& WithLaunchedVpcID(LaunchedVpcIDT&& value) {
106 SetLaunchedVpcID(std::forward<LaunchedVpcIDT>(value));
107 return *this;
108 }
110
112
119 inline ReplicationStatus GetReplicationStatus() const { return m_replicationStatus; }
120 inline bool ReplicationStatusHasBeenSet() const { return m_replicationStatusHasBeenSet; }
122 m_replicationStatusHasBeenSet = true;
123 m_replicationStatus = value;
124 }
127 return *this;
128 }
130
132
135 inline const Aws::String& GetReplicationStatusDetails() const { return m_replicationStatusDetails; }
136 inline bool ReplicationStatusDetailsHasBeenSet() const { return m_replicationStatusDetailsHasBeenSet; }
137 template <typename ReplicationStatusDetailsT = Aws::String>
138 void SetReplicationStatusDetails(ReplicationStatusDetailsT&& value) {
139 m_replicationStatusDetailsHasBeenSet = true;
140 m_replicationStatusDetails = std::forward<ReplicationStatusDetailsT>(value);
141 }
142 template <typename ReplicationStatusDetailsT = Aws::String>
143 SourceNetwork& WithReplicationStatusDetails(ReplicationStatusDetailsT&& value) {
144 SetReplicationStatusDetails(std::forward<ReplicationStatusDetailsT>(value));
145 return *this;
146 }
148
150
153 inline const Aws::String& GetSourceAccountID() const { return m_sourceAccountID; }
154 inline bool SourceAccountIDHasBeenSet() const { return m_sourceAccountIDHasBeenSet; }
155 template <typename SourceAccountIDT = Aws::String>
156 void SetSourceAccountID(SourceAccountIDT&& value) {
157 m_sourceAccountIDHasBeenSet = true;
158 m_sourceAccountID = std::forward<SourceAccountIDT>(value);
159 }
160 template <typename SourceAccountIDT = Aws::String>
161 SourceNetwork& WithSourceAccountID(SourceAccountIDT&& value) {
162 SetSourceAccountID(std::forward<SourceAccountIDT>(value));
163 return *this;
164 }
166
168
171 inline const Aws::String& GetSourceNetworkID() const { return m_sourceNetworkID; }
172 inline bool SourceNetworkIDHasBeenSet() const { return m_sourceNetworkIDHasBeenSet; }
173 template <typename SourceNetworkIDT = Aws::String>
174 void SetSourceNetworkID(SourceNetworkIDT&& value) {
175 m_sourceNetworkIDHasBeenSet = true;
176 m_sourceNetworkID = std::forward<SourceNetworkIDT>(value);
177 }
178 template <typename SourceNetworkIDT = Aws::String>
179 SourceNetwork& WithSourceNetworkID(SourceNetworkIDT&& value) {
180 SetSourceNetworkID(std::forward<SourceNetworkIDT>(value));
181 return *this;
182 }
184
186
189 inline const Aws::String& GetSourceRegion() const { return m_sourceRegion; }
190 inline bool SourceRegionHasBeenSet() const { return m_sourceRegionHasBeenSet; }
191 template <typename SourceRegionT = Aws::String>
192 void SetSourceRegion(SourceRegionT&& value) {
193 m_sourceRegionHasBeenSet = true;
194 m_sourceRegion = std::forward<SourceRegionT>(value);
195 }
196 template <typename SourceRegionT = Aws::String>
197 SourceNetwork& WithSourceRegion(SourceRegionT&& value) {
198 SetSourceRegion(std::forward<SourceRegionT>(value));
199 return *this;
200 }
202
204
207 inline const Aws::String& GetSourceVpcID() const { return m_sourceVpcID; }
208 inline bool SourceVpcIDHasBeenSet() const { return m_sourceVpcIDHasBeenSet; }
209 template <typename SourceVpcIDT = Aws::String>
210 void SetSourceVpcID(SourceVpcIDT&& value) {
211 m_sourceVpcIDHasBeenSet = true;
212 m_sourceVpcID = std::forward<SourceVpcIDT>(value);
213 }
214 template <typename SourceVpcIDT = Aws::String>
215 SourceNetwork& WithSourceVpcID(SourceVpcIDT&& value) {
216 SetSourceVpcID(std::forward<SourceVpcIDT>(value));
217 return *this;
218 }
220
222
225 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
226 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
227 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
228 void SetTags(TagsT&& value) {
229 m_tagsHasBeenSet = true;
230 m_tags = std::forward<TagsT>(value);
231 }
232 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
233 SourceNetwork& WithTags(TagsT&& value) {
234 SetTags(std::forward<TagsT>(value));
235 return *this;
236 }
237 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
238 SourceNetwork& AddTags(TagsKeyT&& key, TagsValueT&& value) {
239 m_tagsHasBeenSet = true;
240 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
241 return *this;
242 }
244 private:
245 Aws::String m_arn;
246
247 Aws::String m_cfnStackName;
248
249 RecoveryLifeCycle m_lastRecovery;
250
251 Aws::String m_launchedVpcID;
252
254
255 Aws::String m_replicationStatusDetails;
256
257 Aws::String m_sourceAccountID;
258
259 Aws::String m_sourceNetworkID;
260
261 Aws::String m_sourceRegion;
262
263 Aws::String m_sourceVpcID;
264
266 bool m_arnHasBeenSet = false;
267 bool m_cfnStackNameHasBeenSet = false;
268 bool m_lastRecoveryHasBeenSet = false;
269 bool m_launchedVpcIDHasBeenSet = false;
270 bool m_replicationStatusHasBeenSet = false;
271 bool m_replicationStatusDetailsHasBeenSet = false;
272 bool m_sourceAccountIDHasBeenSet = false;
273 bool m_sourceNetworkIDHasBeenSet = false;
274 bool m_sourceRegionHasBeenSet = false;
275 bool m_sourceVpcIDHasBeenSet = false;
276 bool m_tagsHasBeenSet = 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 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