AWS SDK for C++

AWS SDK for C++ Version 1.11.609

Loading...
Searching...
No Matches
EventAggregate.h
1
6#pragma once
7#include <aws/health/Health_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Health
22{
23namespace Model
24{
25
34 {
35 public:
36 AWS_HEALTH_API EventAggregate() = default;
37 AWS_HEALTH_API EventAggregate(Aws::Utils::Json::JsonView jsonValue);
39 AWS_HEALTH_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetAggregateValue() const { return m_aggregateValue; }
47 inline bool AggregateValueHasBeenSet() const { return m_aggregateValueHasBeenSet; }
48 template<typename AggregateValueT = Aws::String>
49 void SetAggregateValue(AggregateValueT&& value) { m_aggregateValueHasBeenSet = true; m_aggregateValue = std::forward<AggregateValueT>(value); }
50 template<typename AggregateValueT = Aws::String>
51 EventAggregate& WithAggregateValue(AggregateValueT&& value) { SetAggregateValue(std::forward<AggregateValueT>(value)); return *this;}
53
55
58 inline int GetCount() const { return m_count; }
59 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
60 inline void SetCount(int value) { m_countHasBeenSet = true; m_count = value; }
61 inline EventAggregate& WithCount(int value) { SetCount(value); return *this;}
63 private:
64
65 Aws::String m_aggregateValue;
66 bool m_aggregateValueHasBeenSet = false;
67
68 int m_count{0};
69 bool m_countHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace Health
74} // 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