AWS SDK for C++

AWS SDK for C++ Version 1.11.609

Loading...
Searching...
No Matches
AccountEntityAggregate.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/health/model/EntityStatusCode.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Health
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_HEALTH_API AccountEntityAggregate() = default;
40 AWS_HEALTH_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::String& GetAccountId() const { return m_accountId; }
49 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
50 template<typename AccountIdT = Aws::String>
51 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
52 template<typename AccountIdT = Aws::String>
53 AccountEntityAggregate& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
55
57
61 inline int GetCount() const { return m_count; }
62 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
63 inline void SetCount(int value) { m_countHasBeenSet = true; m_count = value; }
64 inline AccountEntityAggregate& WithCount(int value) { SetCount(value); return *this;}
66
68
71 inline const Aws::Map<EntityStatusCode, int>& GetStatuses() const { return m_statuses; }
72 inline bool StatusesHasBeenSet() const { return m_statusesHasBeenSet; }
73 template<typename StatusesT = Aws::Map<EntityStatusCode, int>>
74 void SetStatuses(StatusesT&& value) { m_statusesHasBeenSet = true; m_statuses = std::forward<StatusesT>(value); }
75 template<typename StatusesT = Aws::Map<EntityStatusCode, int>>
76 AccountEntityAggregate& WithStatuses(StatusesT&& value) { SetStatuses(std::forward<StatusesT>(value)); return *this;}
78 m_statusesHasBeenSet = true; m_statuses.emplace(key, value); return *this;
79 }
81 private:
82
83 Aws::String m_accountId;
84 bool m_accountIdHasBeenSet = false;
85
86 int m_count{0};
87 bool m_countHasBeenSet = false;
88
90 bool m_statusesHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace Health
95} // 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