AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
UniqueSources.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
26 public:
27 AWS_NETWORKFIREWALL_API UniqueSources() = default;
28 AWS_NETWORKFIREWALL_API UniqueSources(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
29 AWS_NETWORKFIREWALL_API UniqueSources& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
30 AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
31
33
36 inline int64_t GetCount() const { return m_count; }
37 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
38 inline void SetCount(int64_t value) {
39 m_countHasBeenSet = true;
40 m_count = value;
41 }
42 inline UniqueSources& WithCount(int64_t value) {
43 SetCount(value);
44 return *this;
45 }
47 private:
48 int64_t m_count{0};
49 bool m_countHasBeenSet = false;
50};
51
52} // namespace Model
53} // namespace NetworkFirewall
54} // namespace Aws
AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
UniqueSources & WithCount(int64_t value)
AWS_NETWORKFIREWALL_API UniqueSources(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_NETWORKFIREWALL_API UniqueSources & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_NETWORKFIREWALL_API UniqueSources()=default