AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
41
42
44
47 inline const Aws::String& GetArn() const { return m_arn; }
48 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
49 template<typename ArnT = Aws::String>
50 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
51 template<typename ArnT = Aws::String>
52 SourceNetwork& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
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) { m_cfnStackNameHasBeenSet = true; m_cfnStackName = std::forward<CfnStackNameT>(value); }
64 template<typename CfnStackNameT = Aws::String>
65 SourceNetwork& WithCfnStackName(CfnStackNameT&& value) { SetCfnStackName(std::forward<CfnStackNameT>(value)); return *this;}
67
69
73 inline const RecoveryLifeCycle& GetLastRecovery() const { return m_lastRecovery; }
74 inline bool LastRecoveryHasBeenSet() const { return m_lastRecoveryHasBeenSet; }
75 template<typename LastRecoveryT = RecoveryLifeCycle>
76 void SetLastRecovery(LastRecoveryT&& value) { m_lastRecoveryHasBeenSet = true; m_lastRecovery = std::forward<LastRecoveryT>(value); }
77 template<typename LastRecoveryT = RecoveryLifeCycle>
78 SourceNetwork& WithLastRecovery(LastRecoveryT&& value) { SetLastRecovery(std::forward<LastRecoveryT>(value)); return *this;}
80
82
85 inline const Aws::String& GetLaunchedVpcID() const { return m_launchedVpcID; }
86 inline bool LaunchedVpcIDHasBeenSet() const { return m_launchedVpcIDHasBeenSet; }
87 template<typename LaunchedVpcIDT = Aws::String>
88 void SetLaunchedVpcID(LaunchedVpcIDT&& value) { m_launchedVpcIDHasBeenSet = true; m_launchedVpcID = std::forward<LaunchedVpcIDT>(value); }
89 template<typename LaunchedVpcIDT = Aws::String>
90 SourceNetwork& WithLaunchedVpcID(LaunchedVpcIDT&& value) { SetLaunchedVpcID(std::forward<LaunchedVpcIDT>(value)); return *this;}
92
94
101 inline ReplicationStatus GetReplicationStatus() const { return m_replicationStatus; }
102 inline bool ReplicationStatusHasBeenSet() const { return m_replicationStatusHasBeenSet; }
103 inline void SetReplicationStatus(ReplicationStatus value) { m_replicationStatusHasBeenSet = true; m_replicationStatus = value; }
106
108
111 inline const Aws::String& GetReplicationStatusDetails() const { return m_replicationStatusDetails; }
112 inline bool ReplicationStatusDetailsHasBeenSet() const { return m_replicationStatusDetailsHasBeenSet; }
113 template<typename ReplicationStatusDetailsT = Aws::String>
114 void SetReplicationStatusDetails(ReplicationStatusDetailsT&& value) { m_replicationStatusDetailsHasBeenSet = true; m_replicationStatusDetails = std::forward<ReplicationStatusDetailsT>(value); }
115 template<typename ReplicationStatusDetailsT = Aws::String>
116 SourceNetwork& WithReplicationStatusDetails(ReplicationStatusDetailsT&& value) { SetReplicationStatusDetails(std::forward<ReplicationStatusDetailsT>(value)); return *this;}
118
120
123 inline const Aws::String& GetSourceAccountID() const { return m_sourceAccountID; }
124 inline bool SourceAccountIDHasBeenSet() const { return m_sourceAccountIDHasBeenSet; }
125 template<typename SourceAccountIDT = Aws::String>
126 void SetSourceAccountID(SourceAccountIDT&& value) { m_sourceAccountIDHasBeenSet = true; m_sourceAccountID = std::forward<SourceAccountIDT>(value); }
127 template<typename SourceAccountIDT = Aws::String>
128 SourceNetwork& WithSourceAccountID(SourceAccountIDT&& value) { SetSourceAccountID(std::forward<SourceAccountIDT>(value)); return *this;}
130
132
135 inline const Aws::String& GetSourceNetworkID() const { return m_sourceNetworkID; }
136 inline bool SourceNetworkIDHasBeenSet() const { return m_sourceNetworkIDHasBeenSet; }
137 template<typename SourceNetworkIDT = Aws::String>
138 void SetSourceNetworkID(SourceNetworkIDT&& value) { m_sourceNetworkIDHasBeenSet = true; m_sourceNetworkID = std::forward<SourceNetworkIDT>(value); }
139 template<typename SourceNetworkIDT = Aws::String>
140 SourceNetwork& WithSourceNetworkID(SourceNetworkIDT&& value) { SetSourceNetworkID(std::forward<SourceNetworkIDT>(value)); return *this;}
142
144
147 inline const Aws::String& GetSourceRegion() const { return m_sourceRegion; }
148 inline bool SourceRegionHasBeenSet() const { return m_sourceRegionHasBeenSet; }
149 template<typename SourceRegionT = Aws::String>
150 void SetSourceRegion(SourceRegionT&& value) { m_sourceRegionHasBeenSet = true; m_sourceRegion = std::forward<SourceRegionT>(value); }
151 template<typename SourceRegionT = Aws::String>
152 SourceNetwork& WithSourceRegion(SourceRegionT&& value) { SetSourceRegion(std::forward<SourceRegionT>(value)); return *this;}
154
156
159 inline const Aws::String& GetSourceVpcID() const { return m_sourceVpcID; }
160 inline bool SourceVpcIDHasBeenSet() const { return m_sourceVpcIDHasBeenSet; }
161 template<typename SourceVpcIDT = Aws::String>
162 void SetSourceVpcID(SourceVpcIDT&& value) { m_sourceVpcIDHasBeenSet = true; m_sourceVpcID = std::forward<SourceVpcIDT>(value); }
163 template<typename SourceVpcIDT = Aws::String>
164 SourceNetwork& WithSourceVpcID(SourceVpcIDT&& value) { SetSourceVpcID(std::forward<SourceVpcIDT>(value)); return *this;}
166
168
171 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
172 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
173 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
174 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
175 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
176 SourceNetwork& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
177 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
178 SourceNetwork& AddTags(TagsKeyT&& key, TagsValueT&& value) {
179 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
180 }
182 private:
183
184 Aws::String m_arn;
185 bool m_arnHasBeenSet = false;
186
187 Aws::String m_cfnStackName;
188 bool m_cfnStackNameHasBeenSet = false;
189
190 RecoveryLifeCycle m_lastRecovery;
191 bool m_lastRecoveryHasBeenSet = false;
192
193 Aws::String m_launchedVpcID;
194 bool m_launchedVpcIDHasBeenSet = false;
195
197 bool m_replicationStatusHasBeenSet = false;
198
199 Aws::String m_replicationStatusDetails;
200 bool m_replicationStatusDetailsHasBeenSet = false;
201
202 Aws::String m_sourceAccountID;
203 bool m_sourceAccountIDHasBeenSet = false;
204
205 Aws::String m_sourceNetworkID;
206 bool m_sourceNetworkIDHasBeenSet = false;
207
208 Aws::String m_sourceRegion;
209 bool m_sourceRegionHasBeenSet = false;
210
211 Aws::String m_sourceVpcID;
212 bool m_sourceVpcIDHasBeenSet = false;
213
215 bool m_tagsHasBeenSet = false;
216 };
217
218} // namespace Model
219} // namespace drs
220} // 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