AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
VgwTelemetry.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#include <aws/ec2/model/TelemetryStatus.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace EC2 {
22namespace Model {
23
30 public:
31 AWS_EC2_API VgwTelemetry() = default;
32 AWS_EC2_API VgwTelemetry(const Aws::Utils::Xml::XmlNode& xmlNode);
33 AWS_EC2_API VgwTelemetry& operator=(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 int GetAcceptedRouteCount() const { return m_acceptedRouteCount; }
43 inline bool AcceptedRouteCountHasBeenSet() const { return m_acceptedRouteCountHasBeenSet; }
44 inline void SetAcceptedRouteCount(int value) {
45 m_acceptedRouteCountHasBeenSet = true;
46 m_acceptedRouteCount = value;
47 }
50 return *this;
51 }
53
55
59 inline const Aws::Utils::DateTime& GetLastStatusChange() const { return m_lastStatusChange; }
60 inline bool LastStatusChangeHasBeenSet() const { return m_lastStatusChangeHasBeenSet; }
61 template <typename LastStatusChangeT = Aws::Utils::DateTime>
62 void SetLastStatusChange(LastStatusChangeT&& value) {
63 m_lastStatusChangeHasBeenSet = true;
64 m_lastStatusChange = std::forward<LastStatusChangeT>(value);
65 }
66 template <typename LastStatusChangeT = Aws::Utils::DateTime>
67 VgwTelemetry& WithLastStatusChange(LastStatusChangeT&& value) {
68 SetLastStatusChange(std::forward<LastStatusChangeT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::String& GetOutsideIpAddress() const { return m_outsideIpAddress; }
79 inline bool OutsideIpAddressHasBeenSet() const { return m_outsideIpAddressHasBeenSet; }
80 template <typename OutsideIpAddressT = Aws::String>
81 void SetOutsideIpAddress(OutsideIpAddressT&& value) {
82 m_outsideIpAddressHasBeenSet = true;
83 m_outsideIpAddress = std::forward<OutsideIpAddressT>(value);
84 }
85 template <typename OutsideIpAddressT = Aws::String>
86 VgwTelemetry& WithOutsideIpAddress(OutsideIpAddressT&& value) {
87 SetOutsideIpAddress(std::forward<OutsideIpAddressT>(value));
88 return *this;
89 }
91
93
96 inline TelemetryStatus GetStatus() const { return m_status; }
97 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
98 inline void SetStatus(TelemetryStatus value) {
99 m_statusHasBeenSet = true;
100 m_status = value;
101 }
103 SetStatus(value);
104 return *this;
105 }
107
109
112 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
113 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
114 template <typename StatusMessageT = Aws::String>
115 void SetStatusMessage(StatusMessageT&& value) {
116 m_statusMessageHasBeenSet = true;
117 m_statusMessage = std::forward<StatusMessageT>(value);
118 }
119 template <typename StatusMessageT = Aws::String>
120 VgwTelemetry& WithStatusMessage(StatusMessageT&& value) {
121 SetStatusMessage(std::forward<StatusMessageT>(value));
122 return *this;
123 }
125
127
130 inline const Aws::String& GetCertificateArn() const { return m_certificateArn; }
131 inline bool CertificateArnHasBeenSet() const { return m_certificateArnHasBeenSet; }
132 template <typename CertificateArnT = Aws::String>
133 void SetCertificateArn(CertificateArnT&& value) {
134 m_certificateArnHasBeenSet = true;
135 m_certificateArn = std::forward<CertificateArnT>(value);
136 }
137 template <typename CertificateArnT = Aws::String>
138 VgwTelemetry& WithCertificateArn(CertificateArnT&& value) {
139 SetCertificateArn(std::forward<CertificateArnT>(value));
140 return *this;
141 }
143 private:
144 int m_acceptedRouteCount{0};
145
146 Aws::Utils::DateTime m_lastStatusChange{};
147
148 Aws::String m_outsideIpAddress;
149
151
152 Aws::String m_statusMessage;
153
154 Aws::String m_certificateArn;
155 bool m_acceptedRouteCountHasBeenSet = false;
156 bool m_lastStatusChangeHasBeenSet = false;
157 bool m_outsideIpAddressHasBeenSet = false;
158 bool m_statusHasBeenSet = false;
159 bool m_statusMessageHasBeenSet = false;
160 bool m_certificateArnHasBeenSet = false;
161};
162
163} // namespace Model
164} // namespace EC2
165} // namespace Aws
void SetCertificateArn(CertificateArnT &&value)
VgwTelemetry & WithStatus(TelemetryStatus value)
VgwTelemetry & WithAcceptedRouteCount(int value)
bool OutsideIpAddressHasBeenSet() const
TelemetryStatus GetStatus() const
AWS_EC2_API VgwTelemetry & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
bool LastStatusChangeHasBeenSet() const
VgwTelemetry & WithLastStatusChange(LastStatusChangeT &&value)
void SetAcceptedRouteCount(int value)
AWS_EC2_API VgwTelemetry()=default
const Aws::Utils::DateTime & GetLastStatusChange() const
AWS_EC2_API VgwTelemetry(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetStatusMessage() const
void SetStatusMessage(StatusMessageT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
VgwTelemetry & WithStatusMessage(StatusMessageT &&value)
void SetOutsideIpAddress(OutsideIpAddressT &&value)
VgwTelemetry & WithCertificateArn(CertificateArnT &&value)
const Aws::String & GetOutsideIpAddress() const
void SetStatus(TelemetryStatus value)
bool AcceptedRouteCountHasBeenSet() const
void SetLastStatusChange(LastStatusChangeT &&value)
VgwTelemetry & WithOutsideIpAddress(OutsideIpAddressT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetCertificateArn() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream