AWS SDK for C++

AWS SDK for C++ Version 1.11.900

Loading...
Searching...
No Matches
EdgeTrafficStats.h
1
6#pragma once
7#include <aws/cloudwatchomni/CloudWatchOmni_EXPORTS.h>
8#include <aws/crt/cbor/Cbor.h>
9
10namespace Aws {
11namespace Utils {
12namespace Cbor {
13class CborValue;
14} // namespace Cbor
15} // namespace Utils
16namespace CloudWatchOmni {
17namespace Model {
18
27 public:
28 AWS_CLOUDWATCHOMNI_API EdgeTrafficStats() = default;
29 AWS_CLOUDWATCHOMNI_API EdgeTrafficStats(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
30 AWS_CLOUDWATCHOMNI_API EdgeTrafficStats& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
31 AWS_CLOUDWATCHOMNI_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
32
34
37 inline long long GetBytes() const { return m_bytes; }
38 inline bool BytesHasBeenSet() const { return m_bytesHasBeenSet; }
39 inline void SetBytes(long long value) {
40 m_bytesHasBeenSet = true;
41 m_bytes = value;
42 }
43 inline EdgeTrafficStats& WithBytes(long long value) {
44 SetBytes(value);
45 return *this;
46 }
48
50
53 inline long long GetPackets() const { return m_packets; }
54 inline bool PacketsHasBeenSet() const { return m_packetsHasBeenSet; }
55 inline void SetPackets(long long value) {
56 m_packetsHasBeenSet = true;
57 m_packets = value;
58 }
59 inline EdgeTrafficStats& WithPackets(long long value) {
60 SetPackets(value);
61 return *this;
62 }
64
66
69 inline long long GetFlows() const { return m_flows; }
70 inline bool FlowsHasBeenSet() const { return m_flowsHasBeenSet; }
71 inline void SetFlows(long long value) {
72 m_flowsHasBeenSet = true;
73 m_flows = value;
74 }
75 inline EdgeTrafficStats& WithFlows(long long value) {
76 SetFlows(value);
77 return *this;
78 }
80
82
85 inline long long GetSentBytes() const { return m_sentBytes; }
86 inline bool SentBytesHasBeenSet() const { return m_sentBytesHasBeenSet; }
87 inline void SetSentBytes(long long value) {
88 m_sentBytesHasBeenSet = true;
89 m_sentBytes = value;
90 }
91 inline EdgeTrafficStats& WithSentBytes(long long value) {
92 SetSentBytes(value);
93 return *this;
94 }
96
98
101 inline long long GetReceivedBytes() const { return m_receivedBytes; }
102 inline bool ReceivedBytesHasBeenSet() const { return m_receivedBytesHasBeenSet; }
103 inline void SetReceivedBytes(long long value) {
104 m_receivedBytesHasBeenSet = true;
105 m_receivedBytes = value;
106 }
107 inline EdgeTrafficStats& WithReceivedBytes(long long value) {
108 SetReceivedBytes(value);
109 return *this;
110 }
112 private:
113 long long m_bytes{0};
114
115 long long m_packets{0};
116
117 long long m_flows{0};
118
119 long long m_sentBytes{0};
120
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;
127};
128
129} // namespace Model
130} // namespace CloudWatchOmni
131} // namespace Aws
AWS_CLOUDWATCHOMNI_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
EdgeTrafficStats & WithSentBytes(long long value)
EdgeTrafficStats & WithReceivedBytes(long long value)
AWS_CLOUDWATCHOMNI_API EdgeTrafficStats & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
EdgeTrafficStats & WithPackets(long long value)
EdgeTrafficStats & WithBytes(long long value)
EdgeTrafficStats & WithFlows(long long value)
AWS_CLOUDWATCHOMNI_API EdgeTrafficStats(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_CLOUDWATCHOMNI_API EdgeTrafficStats()=default