AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
Hits.h
1
6#pragma once
7#include <aws/crt/cbor/Cbor.h>
8#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
9
10namespace Aws {
11namespace Utils {
12namespace Cbor {
13class CborValue;
14} // namespace Cbor
15} // namespace Utils
16namespace NetworkFirewall {
17namespace Model {
18
24class Hits {
25 public:
26 AWS_NETWORKFIREWALL_API Hits() = default;
27 AWS_NETWORKFIREWALL_API Hits(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
28 AWS_NETWORKFIREWALL_API Hits& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
29 AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
30
32
35 inline int64_t GetCount() const { return m_count; }
36 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
37 inline void SetCount(int64_t value) {
38 m_countHasBeenSet = true;
39 m_count = value;
40 }
41 inline Hits& WithCount(int64_t value) {
42 SetCount(value);
43 return *this;
44 }
46 private:
47 int64_t m_count{0};
48 bool m_countHasBeenSet = false;
49};
50
51} // namespace Model
52} // namespace NetworkFirewall
53} // namespace Aws
AWS_NETWORKFIREWALL_API Hits & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
void SetCount(int64_t value)
Definition Hits.h:37
AWS_NETWORKFIREWALL_API Hits()=default
Hits & WithCount(int64_t value)
Definition Hits.h:41
int64_t GetCount() const
Definition Hits.h:35
AWS_NETWORKFIREWALL_API Hits(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)