AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
Entity.h
1
6#pragma once
7#include <aws/logs/CloudWatchLogs_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CloudWatchLogs
23{
24namespace Model
25{
26
33 class Entity
34 {
35 public:
36 AWS_CLOUDWATCHLOGS_API Entity() = default;
37 AWS_CLOUDWATCHLOGS_API Entity(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CLOUDWATCHLOGS_API Entity& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
54 inline const Aws::Map<Aws::String, Aws::String>& GetKeyAttributes() const { return m_keyAttributes; }
55 inline bool KeyAttributesHasBeenSet() const { return m_keyAttributesHasBeenSet; }
56 template<typename KeyAttributesT = Aws::Map<Aws::String, Aws::String>>
57 void SetKeyAttributes(KeyAttributesT&& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes = std::forward<KeyAttributesT>(value); }
58 template<typename KeyAttributesT = Aws::Map<Aws::String, Aws::String>>
59 Entity& WithKeyAttributes(KeyAttributesT&& value) { SetKeyAttributes(std::forward<KeyAttributesT>(value)); return *this;}
60 template<typename KeyAttributesKeyT = Aws::String, typename KeyAttributesValueT = Aws::String>
61 Entity& AddKeyAttributes(KeyAttributesKeyT&& key, KeyAttributesValueT&& value) {
62 m_keyAttributesHasBeenSet = true; m_keyAttributes.emplace(std::forward<KeyAttributesKeyT>(key), std::forward<KeyAttributesValueT>(value)); return *this;
63 }
65
67
75 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const { return m_attributes; }
76 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
77 template<typename AttributesT = Aws::Map<Aws::String, Aws::String>>
78 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes = std::forward<AttributesT>(value); }
79 template<typename AttributesT = Aws::Map<Aws::String, Aws::String>>
80 Entity& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
81 template<typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
82 Entity& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
83 m_attributesHasBeenSet = true; m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value)); return *this;
84 }
86 private:
87
89 bool m_keyAttributesHasBeenSet = false;
90
92 bool m_attributesHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace CloudWatchLogs
97} // namespace Aws
Entity & AddAttributes(AttributesKeyT &&key, AttributesValueT &&value)
Definition Entity.h:82
AWS_CLOUDWATCHLOGS_API Entity & operator=(Aws::Utils::Json::JsonView jsonValue)
bool KeyAttributesHasBeenSet() const
Definition Entity.h:55
Entity & WithKeyAttributes(KeyAttributesT &&value)
Definition Entity.h:59
AWS_CLOUDWATCHLOGS_API Entity()=default
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
Definition Entity.h:75
AWS_CLOUDWATCHLOGS_API Entity(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
Entity & AddKeyAttributes(KeyAttributesKeyT &&key, KeyAttributesValueT &&value)
Definition Entity.h:61
void SetKeyAttributes(KeyAttributesT &&value)
Definition Entity.h:57
Entity & WithAttributes(AttributesT &&value)
Definition Entity.h:80
const Aws::Map< Aws::String, Aws::String > & GetKeyAttributes() const
Definition Entity.h:54
void SetAttributes(AttributesT &&value)
Definition Entity.h:78
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue