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>
20namespace CloudWatchOmni {
33 AWS_CLOUDWATCHOMNI_API
EdgeProperties(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_CLOUDWATCHOMNI_API
void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder)
const;
44 template <
typename ProtocolT = Aws::String>
46 m_protocolHasBeenSet =
true;
47 m_protocol = std::forward<ProtocolT>(value);
49 template <
typename ProtocolT = Aws::String>
63 template <
typename SourcePortT = Aws::String>
65 m_sourcePortHasBeenSet =
true;
66 m_sourcePort = std::forward<SourcePortT>(value);
68 template <
typename SourcePortT = Aws::String>
82 template <
typename DestinationPortT = Aws::String>
84 m_destinationPortHasBeenSet =
true;
85 m_destinationPort = std::forward<DestinationPortT>(value);
87 template <
typename DestinationPortT = Aws::String>
102 m_blockedHasBeenSet =
true;
118 template <
typename ErrorCodeT = Aws::String>
120 m_errorCodeHasBeenSet =
true;
121 m_errorCode = std::forward<ErrorCodeT>(value);
123 template <
typename ErrorCodeT = Aws::String>
136 template <
typename HttpStatusCodeT = Aws::String>
138 m_httpStatusCodeHasBeenSet =
true;
139 m_httpStatusCode = std::forward<HttpStatusCodeT>(value);
141 template <
typename HttpStatusCodeT = Aws::String>
154 template <
typename HttpMethodT = Aws::String>
156 m_httpMethodHasBeenSet =
true;
157 m_httpMethod = std::forward<HttpMethodT>(value);
159 template <
typename HttpMethodT = Aws::String>
174 m_serviceInitiatedHasBeenSet =
true;
175 m_serviceInitiated = value;
189 template <
typename TrafficStatsT = EdgeTrafficStats>
191 m_trafficStatsHasBeenSet =
true;
192 m_trafficStats = std::forward<TrafficStatsT>(value);
194 template <
typename TrafficStatsT = EdgeTrafficStats>
207 bool m_blocked{
false};
215 bool m_serviceInitiated{
false};
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;
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)
void SetHttpMethod(HttpMethodT &&value)
const Aws::String & GetHttpMethod() const
bool ServiceInitiatedHasBeenSet() 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)
bool GetServiceInitiated() const
void SetDestinationPort(DestinationPortT &&value)
EdgeProperties & WithProtocol(ProtocolT &&value)
bool ErrorCodeHasBeenSet() const
const EdgeTrafficStats & GetTrafficStats() const
void SetProtocol(ProtocolT &&value)
const Aws::String & GetErrorCode() const
const Aws::String & GetSourcePort() const
void SetErrorCode(ErrorCodeT &&value)
bool HttpStatusCodeHasBeenSet() const
bool SourcePortHasBeenSet() const
bool HttpMethodHasBeenSet() const
EdgeProperties & WithDestinationPort(DestinationPortT &&value)
EdgeProperties & WithBlocked(bool value)
EdgeProperties & WithServiceInitiated(bool value)
void SetBlocked(bool value)
void SetTrafficStats(TrafficStatsT &&value)
void SetSourcePort(SourcePortT &&value)
AWS_CLOUDWATCHOMNI_API EdgeProperties & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::String & GetDestinationPort() const
bool BlockedHasBeenSet() const
const Aws::String & GetProtocol() const
bool DestinationPortHasBeenSet() const
void SetServiceInitiated(bool value)
bool TrafficStatsHasBeenSet() const
EdgeProperties & WithTrafficStats(TrafficStatsT &&value)
bool ProtocolHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String