AWS SDK for C++

AWS SDK for C++ Version 1.11.912

Loading...
Searching...
No Matches
EventAggregate.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/health/Health_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace Health {
20namespace Model {
21
30 public:
31 AWS_HEALTH_API EventAggregate() = default;
32 AWS_HEALTH_API EventAggregate(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_HEALTH_API EventAggregate& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_HEALTH_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
35
37
40 inline const Aws::String& GetAggregateValue() const { return m_aggregateValue; }
41 inline bool AggregateValueHasBeenSet() const { return m_aggregateValueHasBeenSet; }
42 template <typename AggregateValueT = Aws::String>
43 void SetAggregateValue(AggregateValueT&& value) {
44 m_aggregateValueHasBeenSet = true;
45 m_aggregateValue = std::forward<AggregateValueT>(value);
46 }
47 template <typename AggregateValueT = Aws::String>
48 EventAggregate& WithAggregateValue(AggregateValueT&& value) {
49 SetAggregateValue(std::forward<AggregateValueT>(value));
50 return *this;
51 }
53
55
58 inline int64_t GetCount() const { return m_count; }
59 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
60 inline void SetCount(int64_t value) {
61 m_countHasBeenSet = true;
62 m_count = value;
63 }
64 inline EventAggregate& WithCount(int64_t value) {
65 SetCount(value);
66 return *this;
67 }
69 private:
70 Aws::String m_aggregateValue;
71
72 int64_t m_count{0};
73 bool m_aggregateValueHasBeenSet = false;
74 bool m_countHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace Health
79} // namespace Aws
void SetAggregateValue(AggregateValueT &&value)
AWS_HEALTH_API EventAggregate(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
EventAggregate & WithAggregateValue(AggregateValueT &&value)
AWS_HEALTH_API EventAggregate()=default
AWS_HEALTH_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
EventAggregate & WithCount(int64_t value)
const Aws::String & GetAggregateValue() const
AWS_HEALTH_API EventAggregate & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String