AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
51 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
52 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
53 inline AccountEntityAggregate& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
54 inline AccountEntityAggregate& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
55 inline AccountEntityAggregate& WithAccountId(const char* value) { SetAccountId(value); return *this;}
57
59
63 inline int GetCount() const{ return m_count; }
64 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
65 inline void SetCount(int value) { m_countHasBeenSet = true; m_count = value; }
66 inline AccountEntityAggregate& WithCount(int value) { SetCount(value); return *this;}
68
70
73 inline const Aws::Map<EntityStatusCode, int>& GetStatuses() const{ return m_statuses; }
74 inline bool StatusesHasBeenSet() const { return m_statusesHasBeenSet; }
75 inline void SetStatuses(const Aws::Map<EntityStatusCode, int>& value) { m_statusesHasBeenSet = true; m_statuses = value; }
76 inline void SetStatuses(Aws::Map<EntityStatusCode, int>&& value) { m_statusesHasBeenSet = true; m_statuses = std::move(value); }
78 inline AccountEntityAggregate& WithStatuses(Aws::Map<EntityStatusCode, int>&& value) { SetStatuses(std::move(value)); return *this;}
79 inline AccountEntityAggregate& AddStatuses(const EntityStatusCode& key, int value) { m_statusesHasBeenSet = true; m_statuses.emplace(key, value); return *this; }
80 inline AccountEntityAggregate& AddStatuses(EntityStatusCode&& key, int value) { m_statusesHasBeenSet = true; m_statuses.emplace(std::move(key), value); return *this; }
82 private:
83
84 Aws::String m_accountId;
85 bool m_accountIdHasBeenSet = false;
86
87 int m_count;
88 bool m_countHasBeenSet = false;
89
91 bool m_statusesHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace Health
96} // namespace Aws
AccountEntityAggregate & WithStatuses(Aws::Map< EntityStatusCode, int > &&value)
AWS_HEALTH_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_HEALTH_API AccountEntityAggregate(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< EntityStatusCode, int > & GetStatuses() const
AccountEntityAggregate & WithStatuses(const Aws::Map< EntityStatusCode, int > &value)
AccountEntityAggregate & WithCount(int value)
AccountEntityAggregate & AddStatuses(EntityStatusCode &&key, int value)
AccountEntityAggregate & AddStatuses(const EntityStatusCode &key, int value)
void SetStatuses(const Aws::Map< EntityStatusCode, int > &value)
AWS_HEALTH_API AccountEntityAggregate & operator=(Aws::Utils::Json::JsonView jsonValue)
AccountEntityAggregate & WithAccountId(const Aws::String &value)
void SetStatuses(Aws::Map< EntityStatusCode, int > &&value)
AccountEntityAggregate & WithAccountId(const char *value)
AccountEntityAggregate & WithAccountId(Aws::String &&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
Aws::Utils::Json::JsonValue JsonValue