AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetEventArn(const Aws::String& value) { m_eventArnHasBeenSet = true; m_eventArn = value; }
56 inline void SetEventArn(Aws::String&& value) { m_eventArnHasBeenSet = true; m_eventArn = std::move(value); }
57 inline void SetEventArn(const char* value) { m_eventArnHasBeenSet = true; m_eventArn.assign(value); }
58 inline OrganizationEntityAggregate& WithEventArn(const Aws::String& value) { SetEventArn(value); return *this;}
59 inline OrganizationEntityAggregate& WithEventArn(Aws::String&& value) { SetEventArn(std::move(value)); return *this;}
60 inline OrganizationEntityAggregate& WithEventArn(const char* value) { SetEventArn(value); return *this;}
62
64
68 inline int GetCount() const{ return m_count; }
69 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
70 inline void SetCount(int value) { m_countHasBeenSet = true; m_count = value; }
71 inline OrganizationEntityAggregate& WithCount(int value) { SetCount(value); return *this;}
73
75
78 inline const Aws::Map<EntityStatusCode, int>& GetStatuses() const{ return m_statuses; }
79 inline bool StatusesHasBeenSet() const { return m_statusesHasBeenSet; }
80 inline void SetStatuses(const Aws::Map<EntityStatusCode, int>& value) { m_statusesHasBeenSet = true; m_statuses = value; }
81 inline void SetStatuses(Aws::Map<EntityStatusCode, int>&& value) { m_statusesHasBeenSet = true; m_statuses = std::move(value); }
83 inline OrganizationEntityAggregate& WithStatuses(Aws::Map<EntityStatusCode, int>&& value) { SetStatuses(std::move(value)); return *this;}
84 inline OrganizationEntityAggregate& AddStatuses(const EntityStatusCode& key, int value) { m_statusesHasBeenSet = true; m_statuses.emplace(key, value); return *this; }
85 inline OrganizationEntityAggregate& AddStatuses(EntityStatusCode&& key, int value) { m_statusesHasBeenSet = true; m_statuses.emplace(std::move(key), value); return *this; }
87
89
95 inline const Aws::Vector<AccountEntityAggregate>& GetAccounts() const{ return m_accounts; }
96 inline bool AccountsHasBeenSet() const { return m_accountsHasBeenSet; }
97 inline void SetAccounts(const Aws::Vector<AccountEntityAggregate>& value) { m_accountsHasBeenSet = true; m_accounts = value; }
98 inline void SetAccounts(Aws::Vector<AccountEntityAggregate>&& value) { m_accountsHasBeenSet = true; m_accounts = std::move(value); }
101 inline OrganizationEntityAggregate& AddAccounts(const AccountEntityAggregate& value) { m_accountsHasBeenSet = true; m_accounts.push_back(value); return *this; }
102 inline OrganizationEntityAggregate& AddAccounts(AccountEntityAggregate&& value) { m_accountsHasBeenSet = true; m_accounts.push_back(std::move(value)); return *this; }
104 private:
105
106 Aws::String m_eventArn;
107 bool m_eventArnHasBeenSet = false;
108
109 int m_count;
110 bool m_countHasBeenSet = false;
111
113 bool m_statusesHasBeenSet = false;
114
116 bool m_accountsHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace Health
121} // namespace Aws
void SetAccounts(Aws::Vector< AccountEntityAggregate > &&value)
OrganizationEntityAggregate & WithStatuses(const Aws::Map< EntityStatusCode, int > &value)
void SetStatuses(const Aws::Map< EntityStatusCode, int > &value)
OrganizationEntityAggregate & AddStatuses(EntityStatusCode &&key, int value)
OrganizationEntityAggregate & AddAccounts(const AccountEntityAggregate &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 & WithAccounts(Aws::Vector< AccountEntityAggregate > &&value)
OrganizationEntityAggregate & WithEventArn(const Aws::String &value)
AWS_HEALTH_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStatuses(Aws::Map< EntityStatusCode, int > &&value)
OrganizationEntityAggregate & WithStatuses(Aws::Map< EntityStatusCode, int > &&value)
OrganizationEntityAggregate & WithEventArn(Aws::String &&value)
void SetAccounts(const Aws::Vector< AccountEntityAggregate > &value)
const Aws::Vector< AccountEntityAggregate > & GetAccounts() const
OrganizationEntityAggregate & AddAccounts(AccountEntityAggregate &&value)
OrganizationEntityAggregate & WithAccounts(const Aws::Vector< AccountEntityAggregate > &value)
OrganizationEntityAggregate & AddStatuses(const EntityStatusCode &key, int value)
OrganizationEntityAggregate & WithEventArn(const char *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