AWS SDK for C++

AWS SDK for C++ Version 1.11.912

Loading...
Searching...
No Matches
OrganizationEntityAggregate.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/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>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Cbor {
20class CborValue;
21} // namespace Cbor
22} // namespace Utils
23namespace Health {
24namespace Model {
25
34 public:
35 AWS_HEALTH_API OrganizationEntityAggregate() = default;
36 AWS_HEALTH_API OrganizationEntityAggregate(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
37 AWS_HEALTH_API OrganizationEntityAggregate& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
38 AWS_HEALTH_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
39
41
47 inline const Aws::String& GetEventArn() const { return m_eventArn; }
48 inline bool EventArnHasBeenSet() const { return m_eventArnHasBeenSet; }
49 template <typename EventArnT = Aws::String>
50 void SetEventArn(EventArnT&& value) {
51 m_eventArnHasBeenSet = true;
52 m_eventArn = std::forward<EventArnT>(value);
53 }
54 template <typename EventArnT = Aws::String>
56 SetEventArn(std::forward<EventArnT>(value));
57 return *this;
58 }
60
62
66 inline int64_t GetCount() const { return m_count; }
67 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
68 inline void SetCount(int64_t value) {
69 m_countHasBeenSet = true;
70 m_count = value;
71 }
72 inline OrganizationEntityAggregate& WithCount(int64_t value) {
73 SetCount(value);
74 return *this;
75 }
77
79
82 inline const Aws::Map<EntityStatusCode, int64_t>& GetStatuses() const { return m_statuses; }
83 inline bool StatusesHasBeenSet() const { return m_statusesHasBeenSet; }
84 template <typename StatusesT = Aws::Map<EntityStatusCode, int64_t>>
85 void SetStatuses(StatusesT&& value) {
86 m_statusesHasBeenSet = true;
87 m_statuses = std::forward<StatusesT>(value);
88 }
89 template <typename StatusesT = Aws::Map<EntityStatusCode, int64_t>>
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
102
108 inline const Aws::Vector<AccountEntityAggregate>& GetAccounts() const { return m_accounts; }
109 inline bool AccountsHasBeenSet() const { return m_accountsHasBeenSet; }
110 template <typename AccountsT = Aws::Vector<AccountEntityAggregate>>
111 void SetAccounts(AccountsT&& value) {
112 m_accountsHasBeenSet = true;
113 m_accounts = std::forward<AccountsT>(value);
114 }
115 template <typename AccountsT = Aws::Vector<AccountEntityAggregate>>
117 SetAccounts(std::forward<AccountsT>(value));
118 return *this;
119 }
120 template <typename AccountsT = AccountEntityAggregate>
122 m_accountsHasBeenSet = true;
123 m_accounts.emplace_back(std::forward<AccountsT>(value));
124 return *this;
125 }
127 private:
128 Aws::String m_eventArn;
129
130 int64_t m_count{0};
131
133
135 bool m_eventArnHasBeenSet = false;
136 bool m_countHasBeenSet = false;
137 bool m_statusesHasBeenSet = false;
138 bool m_accountsHasBeenSet = false;
139};
140
141} // namespace Model
142} // namespace Health
143} // namespace Aws
AWS_HEALTH_API OrganizationEntityAggregate()=default
OrganizationEntityAggregate & WithEventArn(EventArnT &&value)
const Aws::Map< EntityStatusCode, int64_t > & GetStatuses() const
OrganizationEntityAggregate & AddStatuses(EntityStatusCode key, int64_t value)
AWS_HEALTH_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
OrganizationEntityAggregate & AddAccounts(AccountsT &&value)
OrganizationEntityAggregate & WithCount(int64_t value)
AWS_HEALTH_API OrganizationEntityAggregate(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
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
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