AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Entity.h
1
6#pragma once
7#include <aws/monitoring/CloudWatch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace CloudWatch
23{
24namespace Model
25{
26
36 class Entity
37 {
38 public:
39 AWS_CLOUDWATCH_API Entity() = default;
40 AWS_CLOUDWATCH_API Entity(const Aws::Utils::Xml::XmlNode& xmlNode);
41 AWS_CLOUDWATCH_API Entity& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
42
43 AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44 AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
45
46
48
61 inline const Aws::Map<Aws::String, Aws::String>& GetKeyAttributes() const { return m_keyAttributes; }
62 inline bool KeyAttributesHasBeenSet() const { return m_keyAttributesHasBeenSet; }
63 template<typename KeyAttributesT = Aws::Map<Aws::String, Aws::String>>
64 void SetKeyAttributes(KeyAttributesT&& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes = std::forward<KeyAttributesT>(value); }
65 template<typename KeyAttributesT = Aws::Map<Aws::String, Aws::String>>
66 Entity& WithKeyAttributes(KeyAttributesT&& value) { SetKeyAttributes(std::forward<KeyAttributesT>(value)); return *this;}
67 template<typename KeyAttributesKeyT = Aws::String, typename KeyAttributesValueT = Aws::String>
68 Entity& AddKeyAttributes(KeyAttributesKeyT&& key, KeyAttributesValueT&& value) {
69 m_keyAttributesHasBeenSet = true; m_keyAttributes.emplace(std::forward<KeyAttributesKeyT>(key), std::forward<KeyAttributesValueT>(value)); return *this;
70 }
72
74
82 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const { return m_attributes; }
83 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
84 template<typename AttributesT = Aws::Map<Aws::String, Aws::String>>
85 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes = std::forward<AttributesT>(value); }
86 template<typename AttributesT = Aws::Map<Aws::String, Aws::String>>
87 Entity& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
88 template<typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
89 Entity& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
90 m_attributesHasBeenSet = true; m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value)); return *this;
91 }
93 private:
94
96 bool m_keyAttributesHasBeenSet = false;
97
99 bool m_attributesHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace CloudWatch
104} // namespace Aws
Entity & AddAttributes(AttributesKeyT &&key, AttributesValueT &&value)
Definition Entity.h:89
Entity & WithKeyAttributes(KeyAttributesT &&value)
Definition Entity.h:66
bool KeyAttributesHasBeenSet() const
Definition Entity.h:62
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_CLOUDWATCH_API Entity & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetKeyAttributes(KeyAttributesT &&value)
Definition Entity.h:64
const Aws::Map< Aws::String, Aws::String > & GetKeyAttributes() const
Definition Entity.h:61
bool AttributesHasBeenSet() const
Definition Entity.h:83
void SetAttributes(AttributesT &&value)
Definition Entity.h:85
AWS_CLOUDWATCH_API Entity()=default
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
Definition Entity.h:82
AWS_CLOUDWATCH_API Entity(const Aws::Utils::Xml::XmlNode &xmlNode)
Entity & WithAttributes(AttributesT &&value)
Definition Entity.h:87
Entity & AddKeyAttributes(KeyAttributesKeyT &&key, KeyAttributesValueT &&value)
Definition Entity.h:68
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_ostream< char, std::char_traits< char > > OStream