AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
EventAggregate.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/health/Health_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Health {
20namespace Model {
21
30 public:
31 AWS_HEALTH_API EventAggregate() = default;
32 AWS_HEALTH_API EventAggregate(Aws::Utils::Json::JsonView jsonValue);
34 AWS_HEALTH_API Aws::Utils::Json::JsonValue Jsonize() 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 int GetCount() const { return m_count; }
59 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
60 inline void SetCount(int value) {
61 m_countHasBeenSet = true;
62 m_count = value;
63 }
64 inline EventAggregate& WithCount(int value) {
65 SetCount(value);
66 return *this;
67 }
69 private:
70 Aws::String m_aggregateValue;
71
72 int m_count{0};
73 bool m_aggregateValueHasBeenSet = false;
74 bool m_countHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace Health
79} // namespace Aws
EventAggregate & WithCount(int value)
void SetAggregateValue(AggregateValueT &&value)
AWS_HEALTH_API EventAggregate & operator=(Aws::Utils::Json::JsonView jsonValue)
EventAggregate & WithAggregateValue(AggregateValueT &&value)
AWS_HEALTH_API EventAggregate()=default
const Aws::String & GetAggregateValue() const
AWS_HEALTH_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_HEALTH_API EventAggregate(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue