AWS SDK for C++

AWS SDK for C++ Version 1.11.609

Loading...
Searching...
No Matches
OrganizationEntityAggregate.h
1
6#pragma once
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/core/utils/memory/stl/AWSVector.h>
11#include <aws/health/model/EntityStatusCode.h>
12#include <aws/health/model/AccountEntityAggregate.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Health
26{
27namespace Model
28{
29
38 {
39 public:
40 AWS_HEALTH_API OrganizationEntityAggregate() = default;
43 AWS_HEALTH_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
53 inline const Aws::String& GetEventArn() const { return m_eventArn; }
54 inline bool EventArnHasBeenSet() const { return m_eventArnHasBeenSet; }
55 template<typename EventArnT = Aws::String>
56 void SetEventArn(EventArnT&& value) { m_eventArnHasBeenSet = true; m_eventArn = std::forward<EventArnT>(value); }
57 template<typename EventArnT = Aws::String>
58 OrganizationEntityAggregate& WithEventArn(EventArnT&& value) { SetEventArn(std::forward<EventArnT>(value)); return *this;}
60
62
66 inline int GetCount() const { return m_count; }
67 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
68 inline void SetCount(int value) { m_countHasBeenSet = true; m_count = value; }
69 inline OrganizationEntityAggregate& WithCount(int value) { SetCount(value); return *this;}
71
73
76 inline const Aws::Map<EntityStatusCode, int>& GetStatuses() const { return m_statuses; }
77 inline bool StatusesHasBeenSet() const { return m_statusesHasBeenSet; }
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>>
81 OrganizationEntityAggregate& WithStatuses(StatusesT&& value) { SetStatuses(std::forward<StatusesT>(value)); return *this;}
83 m_statusesHasBeenSet = true; m_statuses.emplace(key, value); return *this;
84 }
86
88
94 inline const Aws::Vector<AccountEntityAggregate>& GetAccounts() const { return m_accounts; }
95 inline bool AccountsHasBeenSet() const { return m_accountsHasBeenSet; }
96 template<typename AccountsT = Aws::Vector<AccountEntityAggregate>>
97 void SetAccounts(AccountsT&& value) { m_accountsHasBeenSet = true; m_accounts = std::forward<AccountsT>(value); }
98 template<typename AccountsT = Aws::Vector<AccountEntityAggregate>>
99 OrganizationEntityAggregate& WithAccounts(AccountsT&& value) { SetAccounts(std::forward<AccountsT>(value)); return *this;}
100 template<typename AccountsT = AccountEntityAggregate>
101 OrganizationEntityAggregate& AddAccounts(AccountsT&& value) { m_accountsHasBeenSet = true; m_accounts.emplace_back(std::forward<AccountsT>(value)); return *this; }
103 private:
104
105 Aws::String m_eventArn;
106 bool m_eventArnHasBeenSet = false;
107
108 int m_count{0};
109 bool m_countHasBeenSet = false;
110
112 bool m_statusesHasBeenSet = false;
113
115 bool m_accountsHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace Health
120} // 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