AWS SDK for C++

AWS SDK for C++ Version 1.11.900

Loading...
Searching...
No Matches
EdgeProperties.h
1
6#pragma once
7#include <aws/cloudwatchomni/CloudWatchOmni_EXPORTS.h>
8#include <aws/cloudwatchomni/model/EdgeTrafficStats.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/crt/cbor/Cbor.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace CloudWatchOmni {
21namespace Model {
22
31 public:
32 AWS_CLOUDWATCHOMNI_API EdgeProperties() = default;
33 AWS_CLOUDWATCHOMNI_API EdgeProperties(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_CLOUDWATCHOMNI_API EdgeProperties& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_CLOUDWATCHOMNI_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
36
38
42 inline const Aws::String& GetProtocol() const { return m_protocol; }
43 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
44 template <typename ProtocolT = Aws::String>
45 void SetProtocol(ProtocolT&& value) {
46 m_protocolHasBeenSet = true;
47 m_protocol = std::forward<ProtocolT>(value);
48 }
49 template <typename ProtocolT = Aws::String>
50 EdgeProperties& WithProtocol(ProtocolT&& value) {
51 SetProtocol(std::forward<ProtocolT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetSourcePort() const { return m_sourcePort; }
62 inline bool SourcePortHasBeenSet() const { return m_sourcePortHasBeenSet; }
63 template <typename SourcePortT = Aws::String>
64 void SetSourcePort(SourcePortT&& value) {
65 m_sourcePortHasBeenSet = true;
66 m_sourcePort = std::forward<SourcePortT>(value);
67 }
68 template <typename SourcePortT = Aws::String>
69 EdgeProperties& WithSourcePort(SourcePortT&& value) {
70 SetSourcePort(std::forward<SourcePortT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::String& GetDestinationPort() const { return m_destinationPort; }
81 inline bool DestinationPortHasBeenSet() const { return m_destinationPortHasBeenSet; }
82 template <typename DestinationPortT = Aws::String>
83 void SetDestinationPort(DestinationPortT&& value) {
84 m_destinationPortHasBeenSet = true;
85 m_destinationPort = std::forward<DestinationPortT>(value);
86 }
87 template <typename DestinationPortT = Aws::String>
88 EdgeProperties& WithDestinationPort(DestinationPortT&& value) {
89 SetDestinationPort(std::forward<DestinationPortT>(value));
90 return *this;
91 }
93
95
99 inline bool GetBlocked() const { return m_blocked; }
100 inline bool BlockedHasBeenSet() const { return m_blockedHasBeenSet; }
101 inline void SetBlocked(bool value) {
102 m_blockedHasBeenSet = true;
103 m_blocked = value;
104 }
105 inline EdgeProperties& WithBlocked(bool value) {
106 SetBlocked(value);
107 return *this;
108 }
110
112
116 inline const Aws::String& GetErrorCode() const { return m_errorCode; }
117 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
118 template <typename ErrorCodeT = Aws::String>
119 void SetErrorCode(ErrorCodeT&& value) {
120 m_errorCodeHasBeenSet = true;
121 m_errorCode = std::forward<ErrorCodeT>(value);
122 }
123 template <typename ErrorCodeT = Aws::String>
124 EdgeProperties& WithErrorCode(ErrorCodeT&& value) {
125 SetErrorCode(std::forward<ErrorCodeT>(value));
126 return *this;
127 }
129
131
134 inline const Aws::String& GetHttpStatusCode() const { return m_httpStatusCode; }
135 inline bool HttpStatusCodeHasBeenSet() const { return m_httpStatusCodeHasBeenSet; }
136 template <typename HttpStatusCodeT = Aws::String>
137 void SetHttpStatusCode(HttpStatusCodeT&& value) {
138 m_httpStatusCodeHasBeenSet = true;
139 m_httpStatusCode = std::forward<HttpStatusCodeT>(value);
140 }
141 template <typename HttpStatusCodeT = Aws::String>
142 EdgeProperties& WithHttpStatusCode(HttpStatusCodeT&& value) {
143 SetHttpStatusCode(std::forward<HttpStatusCodeT>(value));
144 return *this;
145 }
147
149
152 inline const Aws::String& GetHttpMethod() const { return m_httpMethod; }
153 inline bool HttpMethodHasBeenSet() const { return m_httpMethodHasBeenSet; }
154 template <typename HttpMethodT = Aws::String>
155 void SetHttpMethod(HttpMethodT&& value) {
156 m_httpMethodHasBeenSet = true;
157 m_httpMethod = std::forward<HttpMethodT>(value);
158 }
159 template <typename HttpMethodT = Aws::String>
160 EdgeProperties& WithHttpMethod(HttpMethodT&& value) {
161 SetHttpMethod(std::forward<HttpMethodT>(value));
162 return *this;
163 }
165
167
171 inline bool GetServiceInitiated() const { return m_serviceInitiated; }
172 inline bool ServiceInitiatedHasBeenSet() const { return m_serviceInitiatedHasBeenSet; }
173 inline void SetServiceInitiated(bool value) {
174 m_serviceInitiatedHasBeenSet = true;
175 m_serviceInitiated = value;
176 }
178 SetServiceInitiated(value);
179 return *this;
180 }
182
184
187 inline const EdgeTrafficStats& GetTrafficStats() const { return m_trafficStats; }
188 inline bool TrafficStatsHasBeenSet() const { return m_trafficStatsHasBeenSet; }
189 template <typename TrafficStatsT = EdgeTrafficStats>
190 void SetTrafficStats(TrafficStatsT&& value) {
191 m_trafficStatsHasBeenSet = true;
192 m_trafficStats = std::forward<TrafficStatsT>(value);
193 }
194 template <typename TrafficStatsT = EdgeTrafficStats>
195 EdgeProperties& WithTrafficStats(TrafficStatsT&& value) {
196 SetTrafficStats(std::forward<TrafficStatsT>(value));
197 return *this;
198 }
200 private:
201 Aws::String m_protocol;
202
203 Aws::String m_sourcePort;
204
205 Aws::String m_destinationPort;
206
207 bool m_blocked{false};
208
209 Aws::String m_errorCode;
210
211 Aws::String m_httpStatusCode;
212
213 Aws::String m_httpMethod;
214
215 bool m_serviceInitiated{false};
216
217 EdgeTrafficStats m_trafficStats;
218 bool m_protocolHasBeenSet = false;
219 bool m_sourcePortHasBeenSet = false;
220 bool m_destinationPortHasBeenSet = false;
221 bool m_blockedHasBeenSet = false;
222 bool m_errorCodeHasBeenSet = false;
223 bool m_httpStatusCodeHasBeenSet = false;
224 bool m_httpMethodHasBeenSet = false;
225 bool m_serviceInitiatedHasBeenSet = false;
226 bool m_trafficStatsHasBeenSet = false;
227};
228
229} // namespace Model
230} // namespace CloudWatchOmni
231} // namespace Aws
AWS_CLOUDWATCHOMNI_API EdgeProperties()=default
AWS_CLOUDWATCHOMNI_API EdgeProperties(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
EdgeProperties & WithErrorCode(ErrorCodeT &&value)
EdgeProperties & WithSourcePort(SourcePortT &&value)
const Aws::String & GetHttpMethod() const
EdgeProperties & WithHttpMethod(HttpMethodT &&value)
const Aws::String & GetHttpStatusCode() const
AWS_CLOUDWATCHOMNI_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
void SetHttpStatusCode(HttpStatusCodeT &&value)
EdgeProperties & WithHttpStatusCode(HttpStatusCodeT &&value)
void SetDestinationPort(DestinationPortT &&value)
EdgeProperties & WithProtocol(ProtocolT &&value)
const EdgeTrafficStats & GetTrafficStats() const
const Aws::String & GetErrorCode() const
const Aws::String & GetSourcePort() const
EdgeProperties & WithDestinationPort(DestinationPortT &&value)
EdgeProperties & WithBlocked(bool value)
EdgeProperties & WithServiceInitiated(bool value)
void SetTrafficStats(TrafficStatsT &&value)
AWS_CLOUDWATCHOMNI_API EdgeProperties & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::String & GetDestinationPort() const
const Aws::String & GetProtocol() const
EdgeProperties & WithTrafficStats(TrafficStatsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String