AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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
32 class Entity
33 {
34 public:
35 AWS_CLOUDWATCHLOGS_API Entity();
36 AWS_CLOUDWATCHLOGS_API Entity(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CLOUDWATCHLOGS_API Entity& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::Map<Aws::String, Aws::String>& GetKeyAttributes() const{ return m_keyAttributes; }
46 inline bool KeyAttributesHasBeenSet() const { return m_keyAttributesHasBeenSet; }
47 inline void SetKeyAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes = value; }
48 inline void SetKeyAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes = std::move(value); }
49 inline Entity& WithKeyAttributes(const Aws::Map<Aws::String, Aws::String>& value) { SetKeyAttributes(value); return *this;}
50 inline Entity& WithKeyAttributes(Aws::Map<Aws::String, Aws::String>&& value) { SetKeyAttributes(std::move(value)); return *this;}
51 inline Entity& AddKeyAttributes(const Aws::String& key, const Aws::String& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes.emplace(key, value); return *this; }
52 inline Entity& AddKeyAttributes(Aws::String&& key, const Aws::String& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes.emplace(std::move(key), value); return *this; }
53 inline Entity& AddKeyAttributes(const Aws::String& key, Aws::String&& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes.emplace(key, std::move(value)); return *this; }
54 inline Entity& AddKeyAttributes(Aws::String&& key, Aws::String&& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes.emplace(std::move(key), std::move(value)); return *this; }
55 inline Entity& AddKeyAttributes(const char* key, Aws::String&& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes.emplace(key, std::move(value)); return *this; }
56 inline Entity& AddKeyAttributes(Aws::String&& key, const char* value) { m_keyAttributesHasBeenSet = true; m_keyAttributes.emplace(std::move(key), value); return *this; }
57 inline Entity& AddKeyAttributes(const char* key, const char* value) { m_keyAttributesHasBeenSet = true; m_keyAttributes.emplace(key, value); return *this; }
59
61
64 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
65 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
66 inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
67 inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
68 inline Entity& WithAttributes(const Aws::Map<Aws::String, Aws::String>& value) { SetAttributes(value); return *this;}
69 inline Entity& WithAttributes(Aws::Map<Aws::String, Aws::String>&& value) { SetAttributes(std::move(value)); return *this;}
70 inline Entity& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
71 inline Entity& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
72 inline Entity& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
73 inline Entity& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
74 inline Entity& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
75 inline Entity& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
76 inline Entity& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
78 private:
79
81 bool m_keyAttributesHasBeenSet = false;
82
84 bool m_attributesHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace CloudWatchLogs
89} // namespace Aws
Entity & AddAttributes(Aws::String &&key, const Aws::String &value)
Definition Entity.h:71
Entity & AddAttributes(const Aws::String &key, const Aws::String &value)
Definition Entity.h:70
Entity & WithKeyAttributes(Aws::Map< Aws::String, Aws::String > &&value)
Definition Entity.h:50
AWS_CLOUDWATCHLOGS_API Entity & operator=(Aws::Utils::Json::JsonView jsonValue)
Entity & AddKeyAttributes(const char *key, const char *value)
Definition Entity.h:57
Entity & AddAttributes(Aws::String &&key, Aws::String &&value)
Definition Entity.h:73
Entity & AddKeyAttributes(const char *key, Aws::String &&value)
Definition Entity.h:55
bool KeyAttributesHasBeenSet() const
Definition Entity.h:46
Entity & AddKeyAttributes(Aws::String &&key, Aws::String &&value)
Definition Entity.h:54
Entity & WithKeyAttributes(const Aws::Map< Aws::String, Aws::String > &value)
Definition Entity.h:49
AWS_CLOUDWATCHLOGS_API Entity()
Entity & WithAttributes(Aws::Map< Aws::String, Aws::String > &&value)
Definition Entity.h:69
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
Definition Entity.h:64
void SetAttributes(Aws::Map< Aws::String, Aws::String > &&value)
Definition Entity.h:67
AWS_CLOUDWATCHLOGS_API Entity(Aws::Utils::Json::JsonView jsonValue)
Entity & WithAttributes(const Aws::Map< Aws::String, Aws::String > &value)
Definition Entity.h:68
void SetAttributes(const Aws::Map< Aws::String, Aws::String > &value)
Definition Entity.h:66
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetKeyAttributes(const Aws::Map< Aws::String, Aws::String > &value)
Definition Entity.h:47
void SetKeyAttributes(Aws::Map< Aws::String, Aws::String > &&value)
Definition Entity.h:48
const Aws::Map< Aws::String, Aws::String > & GetKeyAttributes() const
Definition Entity.h:45
Entity & AddKeyAttributes(const Aws::String &key, Aws::String &&value)
Definition Entity.h:53
Entity & AddKeyAttributes(const Aws::String &key, const Aws::String &value)
Definition Entity.h:51
Entity & AddKeyAttributes(Aws::String &&key, const char *value)
Definition Entity.h:56
Entity & AddAttributes(const Aws::String &key, Aws::String &&value)
Definition Entity.h:72
Entity & AddKeyAttributes(Aws::String &&key, const Aws::String &value)
Definition Entity.h:52
Entity & AddAttributes(const char *key, Aws::String &&value)
Definition Entity.h:74
Entity & AddAttributes(Aws::String &&key, const char *value)
Definition Entity.h:75
Entity & AddAttributes(const char *key, const char *value)
Definition Entity.h:76
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