AWS SDK for C++

AWS SDK for C++ Version 1.11.873

Loading...
Searching...
No Matches
IpamRouteOverlap.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/ec2/EC2_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace EC2 {
21namespace Model {
22
30 public:
31 AWS_EC2_API IpamRouteOverlap() = default;
32 AWS_EC2_API IpamRouteOverlap(const Aws::Utils::Xml::XmlNode& xmlNode);
34
35 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
36 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
42 inline const Aws::String& GetPrefix() const { return m_prefix; }
43 inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
44 template <typename PrefixT = Aws::String>
45 void SetPrefix(PrefixT&& value) {
46 m_prefixHasBeenSet = true;
47 m_prefix = std::forward<PrefixT>(value);
48 }
49 template <typename PrefixT = Aws::String>
50 IpamRouteOverlap& WithPrefix(PrefixT&& value) {
51 SetPrefix(std::forward<PrefixT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetAsn() const { return m_asn; }
61 inline bool AsnHasBeenSet() const { return m_asnHasBeenSet; }
62 template <typename AsnT = Aws::String>
63 void SetAsn(AsnT&& value) {
64 m_asnHasBeenSet = true;
65 m_asn = std::forward<AsnT>(value);
66 }
67 template <typename AsnT = Aws::String>
68 IpamRouteOverlap& WithAsn(AsnT&& value) {
69 SetAsn(std::forward<AsnT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::Utils::DateTime& GetDetectedAt() const { return m_detectedAt; }
79 inline bool DetectedAtHasBeenSet() const { return m_detectedAtHasBeenSet; }
80 template <typename DetectedAtT = Aws::Utils::DateTime>
81 void SetDetectedAt(DetectedAtT&& value) {
82 m_detectedAtHasBeenSet = true;
83 m_detectedAt = std::forward<DetectedAtT>(value);
84 }
85 template <typename DetectedAtT = Aws::Utils::DateTime>
86 IpamRouteOverlap& WithDetectedAt(DetectedAtT&& value) {
87 SetDetectedAt(std::forward<DetectedAtT>(value));
88 return *this;
89 }
91 private:
92 Aws::String m_prefix;
93
94 Aws::String m_asn;
95
96 Aws::Utils::DateTime m_detectedAt{};
97 bool m_prefixHasBeenSet = false;
98 bool m_asnHasBeenSet = false;
99 bool m_detectedAtHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace EC2
104} // namespace Aws
const Aws::String & GetPrefix() const
AWS_EC2_API IpamRouteOverlap & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
IpamRouteOverlap & WithDetectedAt(DetectedAtT &&value)
const Aws::Utils::DateTime & GetDetectedAt() const
IpamRouteOverlap & WithPrefix(PrefixT &&value)
AWS_EC2_API IpamRouteOverlap()=default
void SetDetectedAt(DetectedAtT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
IpamRouteOverlap & WithAsn(AsnT &&value)
const Aws::String & GetAsn() const
AWS_EC2_API IpamRouteOverlap(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream