AWS SDK for C++

AWS SDK for C++ Version 1.11.911

Loading...
Searching...
No Matches
EntityAggregate.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
33 public:
34 AWS_HEALTH_API EntityAggregate() = default;
35 AWS_HEALTH_API EntityAggregate(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_HEALTH_API EntityAggregate& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
37 AWS_HEALTH_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
38
40
48 inline const Aws::String& GetEventArn() const { return m_eventArn; }
49 inline bool EventArnHasBeenSet() const { return m_eventArnHasBeenSet; }
50 template <typename EventArnT = Aws::String>
51 void SetEventArn(EventArnT&& value) {
52 m_eventArnHasBeenSet = true;
53 m_eventArn = std::forward<EventArnT>(value);
54 }
55 template <typename EventArnT = Aws::String>
56 EntityAggregate& WithEventArn(EventArnT&& value) {
57 SetEventArn(std::forward<EventArnT>(value));
58 return *this;
59 }
61
63
66 inline int64_t GetCount() const { return m_count; }
67 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
68 inline void SetCount(int64_t value) {
69 m_countHasBeenSet = true;
70 m_count = value;
71 }
72 inline EntityAggregate& WithCount(int64_t value) {
73 SetCount(value);
74 return *this;
75 }
77
79
82 inline const Aws::Map<EntityStatusCode, int64_t>& GetStatuses() const { return m_statuses; }
83 inline bool StatusesHasBeenSet() const { return m_statusesHasBeenSet; }
84 template <typename StatusesT = Aws::Map<EntityStatusCode, int64_t>>
85 void SetStatuses(StatusesT&& value) {
86 m_statusesHasBeenSet = true;
87 m_statuses = std::forward<StatusesT>(value);
88 }
89 template <typename StatusesT = Aws::Map<EntityStatusCode, int64_t>>
90 EntityAggregate& WithStatuses(StatusesT&& value) {
91 SetStatuses(std::forward<StatusesT>(value));
92 return *this;
93 }
94 inline EntityAggregate& AddStatuses(EntityStatusCode key, int64_t value) {
95 m_statusesHasBeenSet = true;
96 m_statuses.emplace(key, value);
97 return *this;
98 }
100 private:
101 Aws::String m_eventArn;
102
103 int64_t m_count{0};
104
106 bool m_eventArnHasBeenSet = false;
107 bool m_countHasBeenSet = false;
108 bool m_statusesHasBeenSet = false;
109};
110
111} // namespace Model
112} // namespace Health
113} // namespace Aws
AWS_HEALTH_API EntityAggregate(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_HEALTH_API EntityAggregate()=default
const Aws::Map< EntityStatusCode, int64_t > & GetStatuses() const
EntityAggregate & WithEventArn(EventArnT &&value)
EntityAggregate & WithStatuses(StatusesT &&value)
const Aws::String & GetEventArn() const
void SetEventArn(EventArnT &&value)
AWS_HEALTH_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
EntityAggregate & WithCount(int64_t value)
void SetStatuses(StatusesT &&value)
EntityAggregate & AddStatuses(EntityStatusCode key, int64_t value)
AWS_HEALTH_API EntityAggregate & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
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