AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EntityAggregate.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
37 {
38 public:
39 AWS_HEALTH_API EntityAggregate();
42 AWS_HEALTH_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
54 inline const Aws::String& GetEventArn() const{ return m_eventArn; }
55 inline bool EventArnHasBeenSet() const { return m_eventArnHasBeenSet; }
56 inline void SetEventArn(const Aws::String& value) { m_eventArnHasBeenSet = true; m_eventArn = value; }
57 inline void SetEventArn(Aws::String&& value) { m_eventArnHasBeenSet = true; m_eventArn = std::move(value); }
58 inline void SetEventArn(const char* value) { m_eventArnHasBeenSet = true; m_eventArn.assign(value); }
59 inline EntityAggregate& WithEventArn(const Aws::String& value) { SetEventArn(value); return *this;}
60 inline EntityAggregate& WithEventArn(Aws::String&& value) { SetEventArn(std::move(value)); return *this;}
61 inline EntityAggregate& WithEventArn(const char* value) { SetEventArn(value); return *this;}
63
65
68 inline int GetCount() const{ return m_count; }
69 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
70 inline void SetCount(int value) { m_countHasBeenSet = true; m_count = value; }
71 inline EntityAggregate& WithCount(int value) { SetCount(value); return *this;}
73
75
78 inline const Aws::Map<EntityStatusCode, int>& GetStatuses() const{ return m_statuses; }
79 inline bool StatusesHasBeenSet() const { return m_statusesHasBeenSet; }
80 inline void SetStatuses(const Aws::Map<EntityStatusCode, int>& value) { m_statusesHasBeenSet = true; m_statuses = value; }
81 inline void SetStatuses(Aws::Map<EntityStatusCode, int>&& value) { m_statusesHasBeenSet = true; m_statuses = std::move(value); }
82 inline EntityAggregate& WithStatuses(const Aws::Map<EntityStatusCode, int>& value) { SetStatuses(value); return *this;}
83 inline EntityAggregate& WithStatuses(Aws::Map<EntityStatusCode, int>&& value) { SetStatuses(std::move(value)); return *this;}
84 inline EntityAggregate& AddStatuses(const EntityStatusCode& key, int value) { m_statusesHasBeenSet = true; m_statuses.emplace(key, value); return *this; }
85 inline EntityAggregate& AddStatuses(EntityStatusCode&& key, int value) { m_statusesHasBeenSet = true; m_statuses.emplace(std::move(key), value); return *this; }
87 private:
88
89 Aws::String m_eventArn;
90 bool m_eventArnHasBeenSet = false;
91
92 int m_count;
93 bool m_countHasBeenSet = false;
94
96 bool m_statusesHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace Health
101} // namespace Aws
EntityAggregate & WithEventArn(const Aws::String &value)
AWS_HEALTH_API EntityAggregate(Aws::Utils::Json::JsonView jsonValue)
EntityAggregate & WithEventArn(Aws::String &&value)
EntityAggregate & AddStatuses(EntityStatusCode &&key, int value)
void SetStatuses(Aws::Map< EntityStatusCode, int > &&value)
EntityAggregate & WithStatuses(const Aws::Map< EntityStatusCode, int > &value)
EntityAggregate & WithStatuses(Aws::Map< EntityStatusCode, int > &&value)
const Aws::String & GetEventArn() const
void SetEventArn(Aws::String &&value)
void SetEventArn(const Aws::String &value)
AWS_HEALTH_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Map< EntityStatusCode, int > & GetStatuses() const
EntityAggregate & AddStatuses(const EntityStatusCode &key, int value)
void SetStatuses(const Aws::Map< EntityStatusCode, int > &value)
EntityAggregate & WithCount(int value)
AWS_HEALTH_API EntityAggregate & operator=(Aws::Utils::Json::JsonView jsonValue)
EntityAggregate & WithEventArn(const char *value)
void SetEventArn(const char *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