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>
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>
66 inline int GetCount()
const {
return m_count; }
68 inline void SetCount(
int value) { m_countHasBeenSet =
true; m_count = value; }
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>>
83 m_statusesHasBeenSet =
true; m_statuses.emplace(key, value);
return *
this;
89 bool m_eventArnHasBeenSet =
false;
92 bool m_countHasBeenSet =
false;
95 bool m_statusesHasBeenSet =
false;
EntityAggregate & AddStatuses(EntityStatusCode key, int value)
AWS_HEALTH_API EntityAggregate()=default
bool EventArnHasBeenSet() const
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)
bool CountHasBeenSet() const
bool StatusesHasBeenSet() const
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