AWS SDK for C++

AWS SDK for C++ Version 1.11.760

Loading...
Searching...
No Matches
OdbPeeringConnection.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/odb/Odb_EXPORTS.h>
11#include <aws/odb/model/ResourceStatus.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace odb {
23namespace Model {
24
32 public:
33 AWS_ODB_API OdbPeeringConnection() = default;
37
39
43 inline const Aws::String& GetOdbPeeringConnectionId() const { return m_odbPeeringConnectionId; }
44 inline bool OdbPeeringConnectionIdHasBeenSet() const { return m_odbPeeringConnectionIdHasBeenSet; }
45 template <typename OdbPeeringConnectionIdT = Aws::String>
46 void SetOdbPeeringConnectionId(OdbPeeringConnectionIdT&& value) {
47 m_odbPeeringConnectionIdHasBeenSet = true;
48 m_odbPeeringConnectionId = std::forward<OdbPeeringConnectionIdT>(value);
49 }
50 template <typename OdbPeeringConnectionIdT = Aws::String>
51 OdbPeeringConnection& WithOdbPeeringConnectionId(OdbPeeringConnectionIdT&& value) {
52 SetOdbPeeringConnectionId(std::forward<OdbPeeringConnectionIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetDisplayName() const { return m_displayName; }
62 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
63 template <typename DisplayNameT = Aws::String>
64 void SetDisplayName(DisplayNameT&& value) {
65 m_displayNameHasBeenSet = true;
66 m_displayName = std::forward<DisplayNameT>(value);
67 }
68 template <typename DisplayNameT = Aws::String>
69 OdbPeeringConnection& WithDisplayName(DisplayNameT&& value) {
70 SetDisplayName(std::forward<DisplayNameT>(value));
71 return *this;
72 }
74
76
79 inline ResourceStatus GetStatus() const { return m_status; }
80 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
81 inline void SetStatus(ResourceStatus value) {
82 m_statusHasBeenSet = true;
83 m_status = value;
84 }
86 SetStatus(value);
87 return *this;
88 }
90
92
95 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
96 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
97 template <typename StatusReasonT = Aws::String>
98 void SetStatusReason(StatusReasonT&& value) {
99 m_statusReasonHasBeenSet = true;
100 m_statusReason = std::forward<StatusReasonT>(value);
101 }
102 template <typename StatusReasonT = Aws::String>
103 OdbPeeringConnection& WithStatusReason(StatusReasonT&& value) {
104 SetStatusReason(std::forward<StatusReasonT>(value));
105 return *this;
106 }
108
110
115 inline const Aws::String& GetOdbPeeringConnectionArn() const { return m_odbPeeringConnectionArn; }
116 inline bool OdbPeeringConnectionArnHasBeenSet() const { return m_odbPeeringConnectionArnHasBeenSet; }
117 template <typename OdbPeeringConnectionArnT = Aws::String>
118 void SetOdbPeeringConnectionArn(OdbPeeringConnectionArnT&& value) {
119 m_odbPeeringConnectionArnHasBeenSet = true;
120 m_odbPeeringConnectionArn = std::forward<OdbPeeringConnectionArnT>(value);
121 }
122 template <typename OdbPeeringConnectionArnT = Aws::String>
123 OdbPeeringConnection& WithOdbPeeringConnectionArn(OdbPeeringConnectionArnT&& value) {
124 SetOdbPeeringConnectionArn(std::forward<OdbPeeringConnectionArnT>(value));
125 return *this;
126 }
128
130
134 inline const Aws::String& GetOdbNetworkArn() const { return m_odbNetworkArn; }
135 inline bool OdbNetworkArnHasBeenSet() const { return m_odbNetworkArnHasBeenSet; }
136 template <typename OdbNetworkArnT = Aws::String>
137 void SetOdbNetworkArn(OdbNetworkArnT&& value) {
138 m_odbNetworkArnHasBeenSet = true;
139 m_odbNetworkArn = std::forward<OdbNetworkArnT>(value);
140 }
141 template <typename OdbNetworkArnT = Aws::String>
142 OdbPeeringConnection& WithOdbNetworkArn(OdbNetworkArnT&& value) {
143 SetOdbNetworkArn(std::forward<OdbNetworkArnT>(value));
144 return *this;
145 }
147
149
152 inline const Aws::String& GetPeerNetworkArn() const { return m_peerNetworkArn; }
153 inline bool PeerNetworkArnHasBeenSet() const { return m_peerNetworkArnHasBeenSet; }
154 template <typename PeerNetworkArnT = Aws::String>
155 void SetPeerNetworkArn(PeerNetworkArnT&& value) {
156 m_peerNetworkArnHasBeenSet = true;
157 m_peerNetworkArn = std::forward<PeerNetworkArnT>(value);
158 }
159 template <typename PeerNetworkArnT = Aws::String>
160 OdbPeeringConnection& WithPeerNetworkArn(PeerNetworkArnT&& value) {
161 SetPeerNetworkArn(std::forward<PeerNetworkArnT>(value));
162 return *this;
163 }
165
167
171 inline const Aws::String& GetOdbPeeringConnectionType() const { return m_odbPeeringConnectionType; }
172 inline bool OdbPeeringConnectionTypeHasBeenSet() const { return m_odbPeeringConnectionTypeHasBeenSet; }
173 template <typename OdbPeeringConnectionTypeT = Aws::String>
174 void SetOdbPeeringConnectionType(OdbPeeringConnectionTypeT&& value) {
175 m_odbPeeringConnectionTypeHasBeenSet = true;
176 m_odbPeeringConnectionType = std::forward<OdbPeeringConnectionTypeT>(value);
177 }
178 template <typename OdbPeeringConnectionTypeT = Aws::String>
179 OdbPeeringConnection& WithOdbPeeringConnectionType(OdbPeeringConnectionTypeT&& value) {
180 SetOdbPeeringConnectionType(std::forward<OdbPeeringConnectionTypeT>(value));
181 return *this;
182 }
184
186
191 inline const Aws::Vector<Aws::String>& GetPeerNetworkCidrs() const { return m_peerNetworkCidrs; }
192 inline bool PeerNetworkCidrsHasBeenSet() const { return m_peerNetworkCidrsHasBeenSet; }
193 template <typename PeerNetworkCidrsT = Aws::Vector<Aws::String>>
194 void SetPeerNetworkCidrs(PeerNetworkCidrsT&& value) {
195 m_peerNetworkCidrsHasBeenSet = true;
196 m_peerNetworkCidrs = std::forward<PeerNetworkCidrsT>(value);
197 }
198 template <typename PeerNetworkCidrsT = Aws::Vector<Aws::String>>
199 OdbPeeringConnection& WithPeerNetworkCidrs(PeerNetworkCidrsT&& value) {
200 SetPeerNetworkCidrs(std::forward<PeerNetworkCidrsT>(value));
201 return *this;
202 }
203 template <typename PeerNetworkCidrsT = Aws::String>
204 OdbPeeringConnection& AddPeerNetworkCidrs(PeerNetworkCidrsT&& value) {
205 m_peerNetworkCidrsHasBeenSet = true;
206 m_peerNetworkCidrs.emplace_back(std::forward<PeerNetworkCidrsT>(value));
207 return *this;
208 }
210
212
215 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
216 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
217 template <typename CreatedAtT = Aws::Utils::DateTime>
218 void SetCreatedAt(CreatedAtT&& value) {
219 m_createdAtHasBeenSet = true;
220 m_createdAt = std::forward<CreatedAtT>(value);
221 }
222 template <typename CreatedAtT = Aws::Utils::DateTime>
223 OdbPeeringConnection& WithCreatedAt(CreatedAtT&& value) {
224 SetCreatedAt(std::forward<CreatedAtT>(value));
225 return *this;
226 }
228
230
234 inline double GetPercentProgress() const { return m_percentProgress; }
235 inline bool PercentProgressHasBeenSet() const { return m_percentProgressHasBeenSet; }
236 inline void SetPercentProgress(double value) {
237 m_percentProgressHasBeenSet = true;
238 m_percentProgress = value;
239 }
241 SetPercentProgress(value);
242 return *this;
243 }
245 private:
246 Aws::String m_odbPeeringConnectionId;
247
248 Aws::String m_displayName;
249
251
252 Aws::String m_statusReason;
253
254 Aws::String m_odbPeeringConnectionArn;
255
256 Aws::String m_odbNetworkArn;
257
258 Aws::String m_peerNetworkArn;
259
260 Aws::String m_odbPeeringConnectionType;
261
262 Aws::Vector<Aws::String> m_peerNetworkCidrs;
263
264 Aws::Utils::DateTime m_createdAt{};
265
266 double m_percentProgress{0.0};
267 bool m_odbPeeringConnectionIdHasBeenSet = false;
268 bool m_displayNameHasBeenSet = false;
269 bool m_statusHasBeenSet = false;
270 bool m_statusReasonHasBeenSet = false;
271 bool m_odbPeeringConnectionArnHasBeenSet = false;
272 bool m_odbNetworkArnHasBeenSet = false;
273 bool m_peerNetworkArnHasBeenSet = false;
274 bool m_odbPeeringConnectionTypeHasBeenSet = false;
275 bool m_peerNetworkCidrsHasBeenSet = false;
276 bool m_createdAtHasBeenSet = false;
277 bool m_percentProgressHasBeenSet = false;
278};
279
280} // namespace Model
281} // namespace odb
282} // namespace Aws
OdbPeeringConnection & WithStatusReason(StatusReasonT &&value)
OdbPeeringConnection & WithStatus(ResourceStatus value)
AWS_ODB_API OdbPeeringConnection & operator=(Aws::Utils::Json::JsonView jsonValue)
OdbPeeringConnection & WithPercentProgress(double value)
OdbPeeringConnection & WithOdbPeeringConnectionId(OdbPeeringConnectionIdT &&value)
void SetPeerNetworkCidrs(PeerNetworkCidrsT &&value)
AWS_ODB_API OdbPeeringConnection(Aws::Utils::Json::JsonView jsonValue)
void SetDisplayName(DisplayNameT &&value)
const Aws::String & GetOdbPeeringConnectionId() const
OdbPeeringConnection & AddPeerNetworkCidrs(PeerNetworkCidrsT &&value)
AWS_ODB_API OdbPeeringConnection()=default
void SetPeerNetworkArn(PeerNetworkArnT &&value)
OdbPeeringConnection & WithPeerNetworkArn(PeerNetworkArnT &&value)
const Aws::String & GetOdbNetworkArn() const
const Aws::String & GetStatusReason() const
void SetOdbPeeringConnectionId(OdbPeeringConnectionIdT &&value)
void SetStatusReason(StatusReasonT &&value)
void SetOdbNetworkArn(OdbNetworkArnT &&value)
OdbPeeringConnection & WithCreatedAt(CreatedAtT &&value)
const Aws::Vector< Aws::String > & GetPeerNetworkCidrs() const
const Aws::String & GetOdbPeeringConnectionType() const
OdbPeeringConnection & WithOdbNetworkArn(OdbNetworkArnT &&value)
void SetOdbPeeringConnectionArn(OdbPeeringConnectionArnT &&value)
void SetOdbPeeringConnectionType(OdbPeeringConnectionTypeT &&value)
OdbPeeringConnection & WithPeerNetworkCidrs(PeerNetworkCidrsT &&value)
OdbPeeringConnection & WithOdbPeeringConnectionType(OdbPeeringConnectionTypeT &&value)
const Aws::String & GetOdbPeeringConnectionArn() const
OdbPeeringConnection & WithDisplayName(DisplayNameT &&value)
const Aws::String & GetDisplayName() const
const Aws::String & GetPeerNetworkArn() const
AWS_ODB_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetCreatedAt() const
OdbPeeringConnection & WithOdbPeeringConnectionArn(OdbPeeringConnectionArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue