AWS SDK for C++

AWS SDK for C++ Version 1.11.873

Loading...
Searching...
No Matches
IpamRouteProtectionFinding.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/EC2_EXPORTS.h>
12#include <aws/ec2/model/IpamByoipAdvertisementType.h>
13#include <aws/ec2/model/IpamByoipCidrState.h>
14#include <aws/ec2/model/IpamRouteOriginAuthorization.h>
15#include <aws/ec2/model/IpamRouteOverlap.h>
16#include <aws/ec2/model/IpamRpkiStatus.h>
17#include <aws/ec2/model/IpamRpkiStrength.h>
18
19#include <utility>
20
21namespace Aws {
22namespace Utils {
23namespace Xml {
24class XmlNode;
25} // namespace Xml
26} // namespace Utils
27namespace EC2 {
28namespace Model {
29
37 public:
38 AWS_EC2_API IpamRouteProtectionFinding() = default;
41
42 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
46
49 inline const Aws::String& GetResourceOwnerId() const { return m_resourceOwnerId; }
50 inline bool ResourceOwnerIdHasBeenSet() const { return m_resourceOwnerIdHasBeenSet; }
51 template <typename ResourceOwnerIdT = Aws::String>
52 void SetResourceOwnerId(ResourceOwnerIdT&& value) {
53 m_resourceOwnerIdHasBeenSet = true;
54 m_resourceOwnerId = std::forward<ResourceOwnerIdT>(value);
55 }
56 template <typename ResourceOwnerIdT = Aws::String>
58 SetResourceOwnerId(std::forward<ResourceOwnerIdT>(value));
59 return *this;
60 }
62
64
67 inline const Aws::String& GetResourceRegion() const { return m_resourceRegion; }
68 inline bool ResourceRegionHasBeenSet() const { return m_resourceRegionHasBeenSet; }
69 template <typename ResourceRegionT = Aws::String>
70 void SetResourceRegion(ResourceRegionT&& value) {
71 m_resourceRegionHasBeenSet = true;
72 m_resourceRegion = std::forward<ResourceRegionT>(value);
73 }
74 template <typename ResourceRegionT = Aws::String>
76 SetResourceRegion(std::forward<ResourceRegionT>(value));
77 return *this;
78 }
80
82
85 inline const Aws::String& GetIpamPoolId() const { return m_ipamPoolId; }
86 inline bool IpamPoolIdHasBeenSet() const { return m_ipamPoolIdHasBeenSet; }
87 template <typename IpamPoolIdT = Aws::String>
88 void SetIpamPoolId(IpamPoolIdT&& value) {
89 m_ipamPoolIdHasBeenSet = true;
90 m_ipamPoolId = std::forward<IpamPoolIdT>(value);
91 }
92 template <typename IpamPoolIdT = Aws::String>
94 SetIpamPoolId(std::forward<IpamPoolIdT>(value));
95 return *this;
96 }
98
100
103 inline const Aws::String& GetCidr() const { return m_cidr; }
104 inline bool CidrHasBeenSet() const { return m_cidrHasBeenSet; }
105 template <typename CidrT = Aws::String>
106 void SetCidr(CidrT&& value) {
107 m_cidrHasBeenSet = true;
108 m_cidr = std::forward<CidrT>(value);
109 }
110 template <typename CidrT = Aws::String>
112 SetCidr(std::forward<CidrT>(value));
113 return *this;
114 }
116
118
130 inline IpamByoipCidrState GetState() const { return m_state; }
131 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
132 inline void SetState(IpamByoipCidrState value) {
133 m_stateHasBeenSet = true;
134 m_state = value;
135 }
137 SetState(value);
138 return *this;
139 }
141
143
150 inline IpamByoipAdvertisementType GetAdvertisementType() const { return m_advertisementType; }
151 inline bool AdvertisementTypeHasBeenSet() const { return m_advertisementTypeHasBeenSet; }
153 m_advertisementTypeHasBeenSet = true;
154 m_advertisementType = value;
155 }
158 return *this;
159 }
161
163
166 inline const Aws::String& GetNetworkBorderGroup() const { return m_networkBorderGroup; }
167 inline bool NetworkBorderGroupHasBeenSet() const { return m_networkBorderGroupHasBeenSet; }
168 template <typename NetworkBorderGroupT = Aws::String>
169 void SetNetworkBorderGroup(NetworkBorderGroupT&& value) {
170 m_networkBorderGroupHasBeenSet = true;
171 m_networkBorderGroup = std::forward<NetworkBorderGroupT>(value);
172 }
173 template <typename NetworkBorderGroupT = Aws::String>
175 SetNetworkBorderGroup(std::forward<NetworkBorderGroupT>(value));
176 return *this;
177 }
179
181
184 inline const Aws::String& GetPoolId() const { return m_poolId; }
185 inline bool PoolIdHasBeenSet() const { return m_poolIdHasBeenSet; }
186 template <typename PoolIdT = Aws::String>
187 void SetPoolId(PoolIdT&& value) {
188 m_poolIdHasBeenSet = true;
189 m_poolId = std::forward<PoolIdT>(value);
190 }
191 template <typename PoolIdT = Aws::String>
193 SetPoolId(std::forward<PoolIdT>(value));
194 return *this;
195 }
197
199
202 inline const Aws::String& GetAsn() const { return m_asn; }
203 inline bool AsnHasBeenSet() const { return m_asnHasBeenSet; }
204 template <typename AsnT = Aws::String>
205 void SetAsn(AsnT&& value) {
206 m_asnHasBeenSet = true;
207 m_asn = std::forward<AsnT>(value);
208 }
209 template <typename AsnT = Aws::String>
211 SetAsn(std::forward<AsnT>(value));
212 return *this;
213 }
215
217
225 inline IpamRpkiStatus GetRpkiStatus() const { return m_rpkiStatus; }
226 inline bool RpkiStatusHasBeenSet() const { return m_rpkiStatusHasBeenSet; }
227 inline void SetRpkiStatus(IpamRpkiStatus value) {
228 m_rpkiStatusHasBeenSet = true;
229 m_rpkiStatus = value;
230 }
232 SetRpkiStatus(value);
233 return *this;
234 }
236
238
244 inline IpamRpkiStrength GetRpkiStrength() const { return m_rpkiStrength; }
245 inline bool RpkiStrengthHasBeenSet() const { return m_rpkiStrengthHasBeenSet; }
247 m_rpkiStrengthHasBeenSet = true;
248 m_rpkiStrength = value;
249 }
251 SetRpkiStrength(value);
252 return *this;
253 }
255
257
260 inline const Aws::Vector<IpamRouteOriginAuthorization>& GetRoas() const { return m_roas; }
261 inline bool RoasHasBeenSet() const { return m_roasHasBeenSet; }
262 template <typename RoasT = Aws::Vector<IpamRouteOriginAuthorization>>
263 void SetRoas(RoasT&& value) {
264 m_roasHasBeenSet = true;
265 m_roas = std::forward<RoasT>(value);
266 }
267 template <typename RoasT = Aws::Vector<IpamRouteOriginAuthorization>>
269 SetRoas(std::forward<RoasT>(value));
270 return *this;
271 }
272 template <typename RoasT = IpamRouteOriginAuthorization>
274 m_roasHasBeenSet = true;
275 m_roas.emplace_back(std::forward<RoasT>(value));
276 return *this;
277 }
279
281
284 inline const Aws::Vector<IpamRouteOverlap>& GetRouteOverlaps() const { return m_routeOverlaps; }
285 inline bool RouteOverlapsHasBeenSet() const { return m_routeOverlapsHasBeenSet; }
286 template <typename RouteOverlapsT = Aws::Vector<IpamRouteOverlap>>
287 void SetRouteOverlaps(RouteOverlapsT&& value) {
288 m_routeOverlapsHasBeenSet = true;
289 m_routeOverlaps = std::forward<RouteOverlapsT>(value);
290 }
291 template <typename RouteOverlapsT = Aws::Vector<IpamRouteOverlap>>
293 SetRouteOverlaps(std::forward<RouteOverlapsT>(value));
294 return *this;
295 }
296 template <typename RouteOverlapsT = IpamRouteOverlap>
298 m_routeOverlapsHasBeenSet = true;
299 m_routeOverlaps.emplace_back(std::forward<RouteOverlapsT>(value));
300 return *this;
301 }
303
305
308 inline const Aws::Utils::DateTime& GetSampleTime() const { return m_sampleTime; }
309 inline bool SampleTimeHasBeenSet() const { return m_sampleTimeHasBeenSet; }
310 template <typename SampleTimeT = Aws::Utils::DateTime>
311 void SetSampleTime(SampleTimeT&& value) {
312 m_sampleTimeHasBeenSet = true;
313 m_sampleTime = std::forward<SampleTimeT>(value);
314 }
315 template <typename SampleTimeT = Aws::Utils::DateTime>
317 SetSampleTime(std::forward<SampleTimeT>(value));
318 return *this;
319 }
321
323
326 inline const Aws::Utils::DateTime& GetRoaSampleTime() const { return m_roaSampleTime; }
327 inline bool RoaSampleTimeHasBeenSet() const { return m_roaSampleTimeHasBeenSet; }
328 template <typename RoaSampleTimeT = Aws::Utils::DateTime>
329 void SetRoaSampleTime(RoaSampleTimeT&& value) {
330 m_roaSampleTimeHasBeenSet = true;
331 m_roaSampleTime = std::forward<RoaSampleTimeT>(value);
332 }
333 template <typename RoaSampleTimeT = Aws::Utils::DateTime>
335 SetRoaSampleTime(std::forward<RoaSampleTimeT>(value));
336 return *this;
337 }
339 private:
340 Aws::String m_resourceOwnerId;
341
342 Aws::String m_resourceRegion;
343
344 Aws::String m_ipamPoolId;
345
346 Aws::String m_cidr;
347
349
351
352 Aws::String m_networkBorderGroup;
353
354 Aws::String m_poolId;
355
356 Aws::String m_asn;
357
359
361
363
364 Aws::Vector<IpamRouteOverlap> m_routeOverlaps;
365
366 Aws::Utils::DateTime m_sampleTime{};
367
368 Aws::Utils::DateTime m_roaSampleTime{};
369 bool m_resourceOwnerIdHasBeenSet = false;
370 bool m_resourceRegionHasBeenSet = false;
371 bool m_ipamPoolIdHasBeenSet = false;
372 bool m_cidrHasBeenSet = false;
373 bool m_stateHasBeenSet = false;
374 bool m_advertisementTypeHasBeenSet = false;
375 bool m_networkBorderGroupHasBeenSet = false;
376 bool m_poolIdHasBeenSet = false;
377 bool m_asnHasBeenSet = false;
378 bool m_rpkiStatusHasBeenSet = false;
379 bool m_rpkiStrengthHasBeenSet = false;
380 bool m_roasHasBeenSet = false;
381 bool m_routeOverlapsHasBeenSet = false;
382 bool m_sampleTimeHasBeenSet = false;
383 bool m_roaSampleTimeHasBeenSet = false;
384};
385
386} // namespace Model
387} // namespace EC2
388} // namespace Aws
IpamRouteProtectionFinding & WithRpkiStrength(IpamRpkiStrength value)
IpamRouteProtectionFinding & WithRoas(RoasT &&value)
IpamRouteProtectionFinding & AddRoas(RoasT &&value)
IpamRouteProtectionFinding & WithResourceOwnerId(ResourceOwnerIdT &&value)
IpamRouteProtectionFinding & WithRpkiStatus(IpamRpkiStatus value)
const Aws::Vector< IpamRouteOriginAuthorization > & GetRoas() const
const Aws::Utils::DateTime & GetRoaSampleTime() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
IpamRouteProtectionFinding & WithAdvertisementType(IpamByoipAdvertisementType value)
IpamRouteProtectionFinding & WithRoaSampleTime(RoaSampleTimeT &&value)
void SetNetworkBorderGroup(NetworkBorderGroupT &&value)
IpamRouteProtectionFinding & AddRouteOverlaps(RouteOverlapsT &&value)
IpamRouteProtectionFinding & WithAsn(AsnT &&value)
AWS_EC2_API IpamRouteProtectionFinding(const Aws::Utils::Xml::XmlNode &xmlNode)
IpamRouteProtectionFinding & WithNetworkBorderGroup(NetworkBorderGroupT &&value)
IpamRouteProtectionFinding & WithResourceRegion(ResourceRegionT &&value)
IpamRouteProtectionFinding & WithCidr(CidrT &&value)
IpamRouteProtectionFinding & WithSampleTime(SampleTimeT &&value)
AWS_EC2_API IpamRouteProtectionFinding & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetAdvertisementType(IpamByoipAdvertisementType value)
IpamRouteProtectionFinding & WithPoolId(PoolIdT &&value)
IpamRouteProtectionFinding & WithState(IpamByoipCidrState value)
IpamByoipAdvertisementType GetAdvertisementType() const
AWS_EC2_API IpamRouteProtectionFinding()=default
IpamRouteProtectionFinding & WithRouteOverlaps(RouteOverlapsT &&value)
const Aws::Utils::DateTime & GetSampleTime() const
IpamRouteProtectionFinding & WithIpamPoolId(IpamPoolIdT &&value)
const Aws::Vector< IpamRouteOverlap > & GetRouteOverlaps() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream