7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/crt/cbor/Cbor.h>
11#include <aws/health/Health_EXPORTS.h>
12#include <aws/health/model/AccountEntityAggregate.h>
13#include <aws/health/model/EntityStatusCode.h>
38 AWS_HEALTH_API
void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder)
const;
49 template <
typename EventArnT = Aws::String>
51 m_eventArnHasBeenSet =
true;
52 m_eventArn = std::forward<EventArnT>(value);
54 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);
110 template <
typename AccountsT = Aws::Vector<AccountEntityAggregate>>
112 m_accountsHasBeenSet =
true;
113 m_accounts = std::forward<AccountsT>(value);
115 template <
typename AccountsT = Aws::Vector<AccountEntityAggregate>>
120 template <
typename AccountsT = AccountEntityAggregate>
122 m_accountsHasBeenSet =
true;
123 m_accounts.emplace_back(std::forward<AccountsT>(value));
135 bool m_eventArnHasBeenSet =
false;
136 bool m_countHasBeenSet =
false;
137 bool m_statusesHasBeenSet =
false;
138 bool m_accountsHasBeenSet =
false;
void SetStatuses(StatusesT &&value)
AWS_HEALTH_API OrganizationEntityAggregate()=default
bool CountHasBeenSet() const
bool StatusesHasBeenSet() const
void SetEventArn(EventArnT &&value)
OrganizationEntityAggregate & WithEventArn(EventArnT &&value)
const Aws::String & GetEventArn() const
const Aws::Map< EntityStatusCode, int64_t > & GetStatuses() const
OrganizationEntityAggregate & AddStatuses(EntityStatusCode key, int64_t value)
bool AccountsHasBeenSet() const
AWS_HEALTH_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
OrganizationEntityAggregate & AddAccounts(AccountsT &&value)
OrganizationEntityAggregate & WithCount(int64_t value)
void SetCount(int64_t value)
AWS_HEALTH_API OrganizationEntityAggregate(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetAccounts(AccountsT &&value)
OrganizationEntityAggregate & WithAccounts(AccountsT &&value)
OrganizationEntityAggregate & WithStatuses(StatusesT &&value)
AWS_HEALTH_API OrganizationEntityAggregate & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::Vector< AccountEntityAggregate > & GetAccounts() const
bool EventArnHasBeenSet() const
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
std::vector< T, Aws::Allocator< T > > Vector