AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAggregateValue(const Aws::String& value) { m_aggregateValueHasBeenSet = true; m_aggregateValue = value; }
49 inline void SetAggregateValue(Aws::String&& value) { m_aggregateValueHasBeenSet = true; m_aggregateValue = std::move(value); }
50 inline void SetAggregateValue(const char* value) { m_aggregateValueHasBeenSet = true; m_aggregateValue.assign(value); }
51 inline EventAggregate& WithAggregateValue(const Aws::String& value) { SetAggregateValue(value); return *this;}
52 inline EventAggregate& WithAggregateValue(Aws::String&& value) { SetAggregateValue(std::move(value)); return *this;}
53 inline EventAggregate& WithAggregateValue(const char* value) { SetAggregateValue(value); return *this;}
55
57
60 inline int GetCount() const{ return m_count; }
61 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
62 inline void SetCount(int value) { m_countHasBeenSet = true; m_count = value; }
63 inline EventAggregate& WithCount(int value) { SetCount(value); return *this;}
65 private:
66
67 Aws::String m_aggregateValue;
68 bool m_aggregateValueHasBeenSet = false;
69
70 int m_count;
71 bool m_countHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace Health
76} // namespace Aws
EventAggregate & WithCount(int value)
EventAggregate & WithAggregateValue(Aws::String &&value)
AWS_HEALTH_API EventAggregate & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAggregateValue(const Aws::String &value)
EventAggregate & WithAggregateValue(const Aws::String &value)
EventAggregate & WithAggregateValue(const char *value)
void SetAggregateValue(Aws::String &&value)
const Aws::String & GetAggregateValue() const
AWS_HEALTH_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_HEALTH_API EventAggregate(Aws::Utils::Json::JsonView jsonValue)
void SetAggregateValue(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue