AWS SDK for C++

AWS SDK for C++ Version 1.11.740

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/health/Health_EXPORTS.h>
11#include <aws/health/model/AccountEntityAggregate.h>
12#include <aws/health/model/EntityStatusCode.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Health {
24namespace Model {
25
34 public:
35 AWS_HEALTH_API OrganizationEntityAggregate() = default;
38 AWS_HEALTH_API Aws::Utils::Json::JsonValue Jsonize() 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 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 }
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>>
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 int 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)
OrganizationEntityAggregate & WithCount(int value)
AWS_HEALTH_API OrganizationEntityAggregate & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_HEALTH_API OrganizationEntityAggregate(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< EntityStatusCode, int > & GetStatuses() const
OrganizationEntityAggregate & AddAccounts(AccountsT &&value)
AWS_HEALTH_API Aws::Utils::Json::JsonValue Jsonize() const
OrganizationEntityAggregate & WithAccounts(AccountsT &&value)
OrganizationEntityAggregate & WithStatuses(StatusesT &&value)
const Aws::Vector< AccountEntityAggregate > & GetAccounts() const
OrganizationEntityAggregate & AddStatuses(EntityStatusCode key, int 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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue