AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
AccountEntityAggregate.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/health/Health_EXPORTS.h>
10#include <aws/health/model/EntityStatusCode.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Health {
22namespace Model {
23
31 public:
32 AWS_HEALTH_API AccountEntityAggregate() = default;
35 AWS_HEALTH_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::String& GetAccountId() const { return m_accountId; }
43 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
44 template <typename AccountIdT = Aws::String>
45 void SetAccountId(AccountIdT&& value) {
46 m_accountIdHasBeenSet = true;
47 m_accountId = std::forward<AccountIdT>(value);
48 }
49 template <typename AccountIdT = Aws::String>
51 SetAccountId(std::forward<AccountIdT>(value));
52 return *this;
53 }
55
57
61 inline int GetCount() const { return m_count; }
62 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
63 inline void SetCount(int value) {
64 m_countHasBeenSet = true;
65 m_count = value;
66 }
67 inline AccountEntityAggregate& WithCount(int value) {
68 SetCount(value);
69 return *this;
70 }
72
74
77 inline const Aws::Map<EntityStatusCode, int>& GetStatuses() const { return m_statuses; }
78 inline bool StatusesHasBeenSet() const { return m_statusesHasBeenSet; }
79 template <typename StatusesT = Aws::Map<EntityStatusCode, int>>
80 void SetStatuses(StatusesT&& value) {
81 m_statusesHasBeenSet = true;
82 m_statuses = std::forward<StatusesT>(value);
83 }
84 template <typename StatusesT = Aws::Map<EntityStatusCode, int>>
86 SetStatuses(std::forward<StatusesT>(value));
87 return *this;
88 }
90 m_statusesHasBeenSet = true;
91 m_statuses.emplace(key, value);
92 return *this;
93 }
95 private:
96 Aws::String m_accountId;
97
98 int m_count{0};
99
101 bool m_accountIdHasBeenSet = false;
102 bool m_countHasBeenSet = false;
103 bool m_statusesHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace Health
108} // namespace Aws
AccountEntityAggregate & WithAccountId(AccountIdT &&value)
AWS_HEALTH_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_HEALTH_API AccountEntityAggregate(Aws::Utils::Json::JsonView jsonValue)
AccountEntityAggregate & WithStatuses(StatusesT &&value)
const Aws::Map< EntityStatusCode, int > & GetStatuses() const
AccountEntityAggregate & WithCount(int value)
AWS_HEALTH_API AccountEntityAggregate()=default
AccountEntityAggregate & AddStatuses(EntityStatusCode key, int value)
AWS_HEALTH_API AccountEntityAggregate & operator=(Aws::Utils::Json::JsonView jsonValue)
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
Aws::Utils::Json::JsonValue JsonValue