7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/crt/cbor/Cbor.h>
10#include <aws/health/Health_EXPORTS.h>
11#include <aws/health/model/EntityStatusCode.h>
35 AWS_HEALTH_API
EntityAggregate(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
37 AWS_HEALTH_API
void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder)
const;
50 template <
typename EventArnT = Aws::String>
52 m_eventArnHasBeenSet =
true;
53 m_eventArn = std::forward<EventArnT>(value);
55 template <
typename EventArnT = Aws::String>
66 inline int64_t
GetCount()
const {
return m_count; }
69 m_countHasBeenSet =
true;
84 template <
typename StatusesT = Aws::Map<EntityStatusCode,
int64_t>>
86 m_statusesHasBeenSet =
true;
87 m_statuses = std::forward<StatusesT>(value);
89 template <
typename StatusesT = Aws::Map<EntityStatusCode,
int64_t>>
95 m_statusesHasBeenSet =
true;
96 m_statuses.emplace(key, value);
106 bool m_eventArnHasBeenSet =
false;
107 bool m_countHasBeenSet =
false;
108 bool m_statusesHasBeenSet =
false;
void SetCount(int64_t value)
AWS_HEALTH_API EntityAggregate(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_HEALTH_API EntityAggregate()=default
const Aws::Map< EntityStatusCode, int64_t > & GetStatuses() const
bool EventArnHasBeenSet() const
EntityAggregate & WithEventArn(EventArnT &&value)
EntityAggregate & WithStatuses(StatusesT &&value)
const Aws::String & GetEventArn() const
void SetEventArn(EventArnT &&value)
AWS_HEALTH_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
bool CountHasBeenSet() const
bool StatusesHasBeenSet() const
EntityAggregate & WithCount(int64_t value)
void SetStatuses(StatusesT &&value)
EntityAggregate & AddStatuses(EntityStatusCode key, int64_t value)
AWS_HEALTH_API EntityAggregate & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
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