7#include <aws/cloudwatchomni/CloudWatchOmni_EXPORTS.h>
8#include <aws/crt/cbor/Cbor.h>
16namespace CloudWatchOmni {
29 AWS_CLOUDWATCHOMNI_API
EdgeTrafficStats(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
31 AWS_CLOUDWATCHOMNI_API
void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder)
const;
37 inline long long GetBytes()
const {
return m_bytes; }
40 m_bytesHasBeenSet =
true;
53 inline long long GetPackets()
const {
return m_packets; }
56 m_packetsHasBeenSet =
true;
69 inline long long GetFlows()
const {
return m_flows; }
72 m_flowsHasBeenSet =
true;
88 m_sentBytesHasBeenSet =
true;
104 m_receivedBytesHasBeenSet =
true;
105 m_receivedBytes = value;
113 long long m_bytes{0};
115 long long m_packets{0};
117 long long m_flows{0};
119 long long m_sentBytes{0};
121 long long m_receivedBytes{0};
122 bool m_bytesHasBeenSet =
false;
123 bool m_packetsHasBeenSet =
false;
124 bool m_flowsHasBeenSet =
false;
125 bool m_sentBytesHasBeenSet =
false;
126 bool m_receivedBytesHasBeenSet =
false;
AWS_CLOUDWATCHOMNI_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
EdgeTrafficStats & WithSentBytes(long long value)
void SetReceivedBytes(long long value)
EdgeTrafficStats & WithReceivedBytes(long long value)
AWS_CLOUDWATCHOMNI_API EdgeTrafficStats & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
bool BytesHasBeenSet() const
EdgeTrafficStats & WithPackets(long long value)
EdgeTrafficStats & WithBytes(long long value)
long long GetFlows() const
void SetPackets(long long value)
void SetSentBytes(long long value)
void SetFlows(long long value)
EdgeTrafficStats & WithFlows(long long value)
bool ReceivedBytesHasBeenSet() const
AWS_CLOUDWATCHOMNI_API EdgeTrafficStats(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
long long GetPackets() const
void SetBytes(long long value)
long long GetSentBytes() const
long long GetBytes() const
long long GetReceivedBytes() const
AWS_CLOUDWATCHOMNI_API EdgeTrafficStats()=default
bool FlowsHasBeenSet() const
bool PacketsHasBeenSet() const
bool SentBytesHasBeenSet() const