AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
OdbPeeringConnectionSummary.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
31 public:
32 AWS_ODB_API OdbPeeringConnectionSummary() = default;
36
38
42 inline const Aws::String& GetOdbPeeringConnectionId() const { return m_odbPeeringConnectionId; }
43 inline bool OdbPeeringConnectionIdHasBeenSet() const { return m_odbPeeringConnectionIdHasBeenSet; }
44 template <typename OdbPeeringConnectionIdT = Aws::String>
45 void SetOdbPeeringConnectionId(OdbPeeringConnectionIdT&& value) {
46 m_odbPeeringConnectionIdHasBeenSet = true;
47 m_odbPeeringConnectionId = std::forward<OdbPeeringConnectionIdT>(value);
48 }
49 template <typename OdbPeeringConnectionIdT = Aws::String>
50 OdbPeeringConnectionSummary& WithOdbPeeringConnectionId(OdbPeeringConnectionIdT&& value) {
51 SetOdbPeeringConnectionId(std::forward<OdbPeeringConnectionIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetDisplayName() const { return m_displayName; }
61 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
62 template <typename DisplayNameT = Aws::String>
63 void SetDisplayName(DisplayNameT&& value) {
64 m_displayNameHasBeenSet = true;
65 m_displayName = std::forward<DisplayNameT>(value);
66 }
67 template <typename DisplayNameT = Aws::String>
69 SetDisplayName(std::forward<DisplayNameT>(value));
70 return *this;
71 }
73
75
78 inline ResourceStatus GetStatus() const { return m_status; }
79 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
80 inline void SetStatus(ResourceStatus value) {
81 m_statusHasBeenSet = true;
82 m_status = value;
83 }
85 SetStatus(value);
86 return *this;
87 }
89
91
94 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
95 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
96 template <typename StatusReasonT = Aws::String>
97 void SetStatusReason(StatusReasonT&& value) {
98 m_statusReasonHasBeenSet = true;
99 m_statusReason = std::forward<StatusReasonT>(value);
100 }
101 template <typename StatusReasonT = Aws::String>
103 SetStatusReason(std::forward<StatusReasonT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::String& GetOdbPeeringConnectionArn() const { return m_odbPeeringConnectionArn; }
113 inline bool OdbPeeringConnectionArnHasBeenSet() const { return m_odbPeeringConnectionArnHasBeenSet; }
114 template <typename OdbPeeringConnectionArnT = Aws::String>
115 void SetOdbPeeringConnectionArn(OdbPeeringConnectionArnT&& value) {
116 m_odbPeeringConnectionArnHasBeenSet = true;
117 m_odbPeeringConnectionArn = std::forward<OdbPeeringConnectionArnT>(value);
118 }
119 template <typename OdbPeeringConnectionArnT = Aws::String>
120 OdbPeeringConnectionSummary& WithOdbPeeringConnectionArn(OdbPeeringConnectionArnT&& value) {
121 SetOdbPeeringConnectionArn(std::forward<OdbPeeringConnectionArnT>(value));
122 return *this;
123 }
125
127
131 inline const Aws::String& GetOdbNetworkArn() const { return m_odbNetworkArn; }
132 inline bool OdbNetworkArnHasBeenSet() const { return m_odbNetworkArnHasBeenSet; }
133 template <typename OdbNetworkArnT = Aws::String>
134 void SetOdbNetworkArn(OdbNetworkArnT&& value) {
135 m_odbNetworkArnHasBeenSet = true;
136 m_odbNetworkArn = std::forward<OdbNetworkArnT>(value);
137 }
138 template <typename OdbNetworkArnT = Aws::String>
140 SetOdbNetworkArn(std::forward<OdbNetworkArnT>(value));
141 return *this;
142 }
144
146
149 inline const Aws::String& GetPeerNetworkArn() const { return m_peerNetworkArn; }
150 inline bool PeerNetworkArnHasBeenSet() const { return m_peerNetworkArnHasBeenSet; }
151 template <typename PeerNetworkArnT = Aws::String>
152 void SetPeerNetworkArn(PeerNetworkArnT&& value) {
153 m_peerNetworkArnHasBeenSet = true;
154 m_peerNetworkArn = std::forward<PeerNetworkArnT>(value);
155 }
156 template <typename PeerNetworkArnT = Aws::String>
158 SetPeerNetworkArn(std::forward<PeerNetworkArnT>(value));
159 return *this;
160 }
162
164
168 inline const Aws::String& GetOdbPeeringConnectionType() const { return m_odbPeeringConnectionType; }
169 inline bool OdbPeeringConnectionTypeHasBeenSet() const { return m_odbPeeringConnectionTypeHasBeenSet; }
170 template <typename OdbPeeringConnectionTypeT = Aws::String>
171 void SetOdbPeeringConnectionType(OdbPeeringConnectionTypeT&& value) {
172 m_odbPeeringConnectionTypeHasBeenSet = true;
173 m_odbPeeringConnectionType = std::forward<OdbPeeringConnectionTypeT>(value);
174 }
175 template <typename OdbPeeringConnectionTypeT = Aws::String>
176 OdbPeeringConnectionSummary& WithOdbPeeringConnectionType(OdbPeeringConnectionTypeT&& value) {
177 SetOdbPeeringConnectionType(std::forward<OdbPeeringConnectionTypeT>(value));
178 return *this;
179 }
181
183
188 inline const Aws::Vector<Aws::String>& GetPeerNetworkCidrs() const { return m_peerNetworkCidrs; }
189 inline bool PeerNetworkCidrsHasBeenSet() const { return m_peerNetworkCidrsHasBeenSet; }
190 template <typename PeerNetworkCidrsT = Aws::Vector<Aws::String>>
191 void SetPeerNetworkCidrs(PeerNetworkCidrsT&& value) {
192 m_peerNetworkCidrsHasBeenSet = true;
193 m_peerNetworkCidrs = std::forward<PeerNetworkCidrsT>(value);
194 }
195 template <typename PeerNetworkCidrsT = Aws::Vector<Aws::String>>
197 SetPeerNetworkCidrs(std::forward<PeerNetworkCidrsT>(value));
198 return *this;
199 }
200 template <typename PeerNetworkCidrsT = Aws::String>
202 m_peerNetworkCidrsHasBeenSet = true;
203 m_peerNetworkCidrs.emplace_back(std::forward<PeerNetworkCidrsT>(value));
204 return *this;
205 }
207
209
212 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
213 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
214 template <typename CreatedAtT = Aws::Utils::DateTime>
215 void SetCreatedAt(CreatedAtT&& value) {
216 m_createdAtHasBeenSet = true;
217 m_createdAt = std::forward<CreatedAtT>(value);
218 }
219 template <typename CreatedAtT = Aws::Utils::DateTime>
221 SetCreatedAt(std::forward<CreatedAtT>(value));
222 return *this;
223 }
225
227
231 inline double GetPercentProgress() const { return m_percentProgress; }
232 inline bool PercentProgressHasBeenSet() const { return m_percentProgressHasBeenSet; }
233 inline void SetPercentProgress(double value) {
234 m_percentProgressHasBeenSet = true;
235 m_percentProgress = value;
236 }
238 SetPercentProgress(value);
239 return *this;
240 }
242 private:
243 Aws::String m_odbPeeringConnectionId;
244
245 Aws::String m_displayName;
246
248
249 Aws::String m_statusReason;
250
251 Aws::String m_odbPeeringConnectionArn;
252
253 Aws::String m_odbNetworkArn;
254
255 Aws::String m_peerNetworkArn;
256
257 Aws::String m_odbPeeringConnectionType;
258
259 Aws::Vector<Aws::String> m_peerNetworkCidrs;
260
261 Aws::Utils::DateTime m_createdAt{};
262
263 double m_percentProgress{0.0};
264 bool m_odbPeeringConnectionIdHasBeenSet = false;
265 bool m_displayNameHasBeenSet = false;
266 bool m_statusHasBeenSet = false;
267 bool m_statusReasonHasBeenSet = false;
268 bool m_odbPeeringConnectionArnHasBeenSet = false;
269 bool m_odbNetworkArnHasBeenSet = false;
270 bool m_peerNetworkArnHasBeenSet = false;
271 bool m_odbPeeringConnectionTypeHasBeenSet = false;
272 bool m_peerNetworkCidrsHasBeenSet = false;
273 bool m_createdAtHasBeenSet = false;
274 bool m_percentProgressHasBeenSet = false;
275};
276
277} // namespace Model
278} // namespace odb
279} // namespace Aws
void SetOdbPeeringConnectionId(OdbPeeringConnectionIdT &&value)
OdbPeeringConnectionSummary & WithOdbPeeringConnectionArn(OdbPeeringConnectionArnT &&value)
void SetOdbPeeringConnectionArn(OdbPeeringConnectionArnT &&value)
OdbPeeringConnectionSummary & WithStatus(ResourceStatus value)
AWS_ODB_API OdbPeeringConnectionSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetPeerNetworkCidrs() const
AWS_ODB_API OdbPeeringConnectionSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_ODB_API OdbPeeringConnectionSummary()=default
OdbPeeringConnectionSummary & WithOdbPeeringConnectionId(OdbPeeringConnectionIdT &&value)
OdbPeeringConnectionSummary & WithDisplayName(DisplayNameT &&value)
void SetOdbPeeringConnectionType(OdbPeeringConnectionTypeT &&value)
OdbPeeringConnectionSummary & WithPeerNetworkCidrs(PeerNetworkCidrsT &&value)
OdbPeeringConnectionSummary & WithPeerNetworkArn(PeerNetworkArnT &&value)
OdbPeeringConnectionSummary & WithPercentProgress(double value)
OdbPeeringConnectionSummary & WithOdbPeeringConnectionType(OdbPeeringConnectionTypeT &&value)
OdbPeeringConnectionSummary & AddPeerNetworkCidrs(PeerNetworkCidrsT &&value)
OdbPeeringConnectionSummary & WithOdbNetworkArn(OdbNetworkArnT &&value)
AWS_ODB_API Aws::Utils::Json::JsonValue Jsonize() const
OdbPeeringConnectionSummary & WithCreatedAt(CreatedAtT &&value)
OdbPeeringConnectionSummary & WithStatusReason(StatusReasonT &&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