AWS SDK for C++

AWS SDK for C++ Version 1.11.609

Loading...
Searching...
No Matches
EntityAggregate.h
1
6#pragma once
7#include <aws/health/Health_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/health/model/EntityStatusCode.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Health
24{
25namespace Model
26{
27
37 {
38 public:
39 AWS_HEALTH_API EntityAggregate() = default;
42 AWS_HEALTH_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
54 inline const Aws::String& GetEventArn() const { return m_eventArn; }
55 inline bool EventArnHasBeenSet() const { return m_eventArnHasBeenSet; }
56 template<typename EventArnT = Aws::String>
57 void SetEventArn(EventArnT&& value) { m_eventArnHasBeenSet = true; m_eventArn = std::forward<EventArnT>(value); }
58 template<typename EventArnT = Aws::String>
59 EntityAggregate& WithEventArn(EventArnT&& value) { SetEventArn(std::forward<EventArnT>(value)); return *this;}
61
63
66 inline int GetCount() const { return m_count; }
67 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
68 inline void SetCount(int value) { m_countHasBeenSet = true; m_count = value; }
69 inline EntityAggregate& WithCount(int value) { SetCount(value); return *this;}
71
73
76 inline const Aws::Map<EntityStatusCode, int>& GetStatuses() const { return m_statuses; }
77 inline bool StatusesHasBeenSet() const { return m_statusesHasBeenSet; }
78 template<typename StatusesT = Aws::Map<EntityStatusCode, int>>
79 void SetStatuses(StatusesT&& value) { m_statusesHasBeenSet = true; m_statuses = std::forward<StatusesT>(value); }
80 template<typename StatusesT = Aws::Map<EntityStatusCode, int>>
81 EntityAggregate& WithStatuses(StatusesT&& value) { SetStatuses(std::forward<StatusesT>(value)); return *this;}
83 m_statusesHasBeenSet = true; m_statuses.emplace(key, value); return *this;
84 }
86 private:
87
88 Aws::String m_eventArn;
89 bool m_eventArnHasBeenSet = false;
90
91 int m_count{0};
92 bool m_countHasBeenSet = false;
93
95 bool m_statusesHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace Health
100} // namespace Aws
EntityAggregate & AddStatuses(EntityStatusCode key, int value)
AWS_HEALTH_API EntityAggregate()=default
AWS_HEALTH_API EntityAggregate(Aws::Utils::Json::JsonView jsonValue)
EntityAggregate & WithEventArn(EventArnT &&value)
EntityAggregate & WithStatuses(StatusesT &&value)
const Aws::String & GetEventArn() const
AWS_HEALTH_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Map< EntityStatusCode, int > & GetStatuses() const
void SetEventArn(EventArnT &&value)
EntityAggregate & WithCount(int value)
AWS_HEALTH_API EntityAggregate & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStatuses(StatusesT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue