AWS SDK for C++

AWS SDK for C++ Version 1.11.912

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/crt/cbor/Cbor.h>
10#include <aws/health/Health_EXPORTS.h>
11#include <aws/health/model/EntityStatusCode.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Cbor {
18class CborValue;
19} // namespace Cbor
20} // namespace Utils
21namespace Health {
22namespace Model {
23
31 public:
32 AWS_HEALTH_API AccountEntityAggregate() = default;
33 AWS_HEALTH_API AccountEntityAggregate(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_HEALTH_API AccountEntityAggregate& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_HEALTH_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) 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 int64_t GetCount() const { return m_count; }
62 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
63 inline void SetCount(int64_t value) {
64 m_countHasBeenSet = true;
65 m_count = value;
66 }
67 inline AccountEntityAggregate& WithCount(int64_t value) {
68 SetCount(value);
69 return *this;
70 }
72
74
77 inline const Aws::Map<EntityStatusCode, int64_t>& GetStatuses() const { return m_statuses; }
78 inline bool StatusesHasBeenSet() const { return m_statusesHasBeenSet; }
79 template <typename StatusesT = Aws::Map<EntityStatusCode, int64_t>>
80 void SetStatuses(StatusesT&& value) {
81 m_statusesHasBeenSet = true;
82 m_statuses = std::forward<StatusesT>(value);
83 }
84 template <typename StatusesT = Aws::Map<EntityStatusCode, int64_t>>
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 int64_t 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)
AccountEntityAggregate & AddStatuses(EntityStatusCode key, int64_t value)
const Aws::Map< EntityStatusCode, int64_t > & GetStatuses() const
AWS_HEALTH_API AccountEntityAggregate & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AccountEntityAggregate & WithStatuses(StatusesT &&value)
AWS_HEALTH_API AccountEntityAggregate()=default
AWS_HEALTH_API AccountEntityAggregate(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_HEALTH_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AccountEntityAggregate & WithCount(int64_t 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