AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
EntityAggregate.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/health/Health_EXPORTS.h>
10#include <aws/health/model/EntityStatusCode.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Health {
22namespace Model {
23
33 public:
34 AWS_HEALTH_API EntityAggregate() = default;
37 AWS_HEALTH_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
48 inline const Aws::String& GetEventArn() const { return m_eventArn; }
49 inline bool EventArnHasBeenSet() const { return m_eventArnHasBeenSet; }
50 template <typename EventArnT = Aws::String>
51 void SetEventArn(EventArnT&& value) {
52 m_eventArnHasBeenSet = true;
53 m_eventArn = std::forward<EventArnT>(value);
54 }
55 template <typename EventArnT = Aws::String>
56 EntityAggregate& WithEventArn(EventArnT&& value) {
57 SetEventArn(std::forward<EventArnT>(value));
58 return *this;
59 }
61
63
66 inline int GetCount() const { return m_count; }
67 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
68 inline void SetCount(int value) {
69 m_countHasBeenSet = true;
70 m_count = value;
71 }
72 inline EntityAggregate& WithCount(int value) {
73 SetCount(value);
74 return *this;
75 }
77
79
82 inline const Aws::Map<EntityStatusCode, int>& GetStatuses() const { return m_statuses; }
83 inline bool StatusesHasBeenSet() const { return m_statusesHasBeenSet; }
84 template <typename StatusesT = Aws::Map<EntityStatusCode, int>>
85 void SetStatuses(StatusesT&& value) {
86 m_statusesHasBeenSet = true;
87 m_statuses = std::forward<StatusesT>(value);
88 }
89 template <typename StatusesT = Aws::Map<EntityStatusCode, int>>
90 EntityAggregate& WithStatuses(StatusesT&& value) {
91 SetStatuses(std::forward<StatusesT>(value));
92 return *this;
93 }
95 m_statusesHasBeenSet = true;
96 m_statuses.emplace(key, value);
97 return *this;
98 }
100 private:
101 Aws::String m_eventArn;
102
103 int m_count{0};
104
106 bool m_eventArnHasBeenSet = false;
107 bool m_countHasBeenSet = false;
108 bool m_statusesHasBeenSet = false;
109};
110
111} // namespace Model
112} // namespace Health
113} // 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