AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
MatterCluster.h
1
6#pragma once
7#include <aws/core/utils/Document.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/iot-managed-integrations/IoTManagedIntegrations_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace IoTManagedIntegrations {
22namespace Model {
23
31 public:
32 AWS_IOTMANAGEDINTEGRATIONS_API MatterCluster() = default;
33 AWS_IOTMANAGEDINTEGRATIONS_API MatterCluster(Aws::Utils::Json::JsonView jsonValue);
34 AWS_IOTMANAGEDINTEGRATIONS_API MatterCluster& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_IOTMANAGEDINTEGRATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetId() const { return m_id; }
42 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
43 template <typename IdT = Aws::String>
44 void SetId(IdT&& value) {
45 m_idHasBeenSet = true;
46 m_id = std::forward<IdT>(value);
47 }
48 template <typename IdT = Aws::String>
49 MatterCluster& WithId(IdT&& value) {
50 SetId(std::forward<IdT>(value));
51 return *this;
52 }
54
56
59 inline Aws::Utils::DocumentView GetAttributes() const { return m_attributes; }
60 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
61 template <typename AttributesT = Aws::Utils::Document>
62 void SetAttributes(AttributesT&& value) {
63 m_attributesHasBeenSet = true;
64 m_attributes = std::forward<AttributesT>(value);
65 }
66 template <typename AttributesT = Aws::Utils::Document>
67 MatterCluster& WithAttributes(AttributesT&& value) {
68 SetAttributes(std::forward<AttributesT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::Map<Aws::String, Aws::Utils::Document>& GetCommands() const { return m_commands; }
79 inline bool CommandsHasBeenSet() const { return m_commandsHasBeenSet; }
80 template <typename CommandsT = Aws::Map<Aws::String, Aws::Utils::Document>>
81 void SetCommands(CommandsT&& value) {
82 m_commandsHasBeenSet = true;
83 m_commands = std::forward<CommandsT>(value);
84 }
85 template <typename CommandsT = Aws::Map<Aws::String, Aws::Utils::Document>>
86 MatterCluster& WithCommands(CommandsT&& value) {
87 SetCommands(std::forward<CommandsT>(value));
88 return *this;
89 }
90 template <typename CommandsKeyT = Aws::String, typename CommandsValueT = Aws::Utils::Document>
91 MatterCluster& AddCommands(CommandsKeyT&& key, CommandsValueT&& value) {
92 m_commandsHasBeenSet = true;
93 m_commands.emplace(std::forward<CommandsKeyT>(key), std::forward<CommandsValueT>(value));
94 return *this;
95 }
97
99
103 inline const Aws::Map<Aws::String, Aws::Utils::Document>& GetEvents() const { return m_events; }
104 inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
105 template <typename EventsT = Aws::Map<Aws::String, Aws::Utils::Document>>
106 void SetEvents(EventsT&& value) {
107 m_eventsHasBeenSet = true;
108 m_events = std::forward<EventsT>(value);
109 }
110 template <typename EventsT = Aws::Map<Aws::String, Aws::Utils::Document>>
111 MatterCluster& WithEvents(EventsT&& value) {
112 SetEvents(std::forward<EventsT>(value));
113 return *this;
114 }
115 template <typename EventsKeyT = Aws::String, typename EventsValueT = Aws::Utils::Document>
116 MatterCluster& AddEvents(EventsKeyT&& key, EventsValueT&& value) {
117 m_eventsHasBeenSet = true;
118 m_events.emplace(std::forward<EventsKeyT>(key), std::forward<EventsValueT>(value));
119 return *this;
120 }
122 private:
123 Aws::String m_id;
124
125 Aws::Utils::Document m_attributes;
126
128
130 bool m_idHasBeenSet = false;
131 bool m_attributesHasBeenSet = false;
132 bool m_commandsHasBeenSet = false;
133 bool m_eventsHasBeenSet = false;
134};
135
136} // namespace Model
137} // namespace IoTManagedIntegrations
138} // namespace Aws
MatterCluster & WithEvents(EventsT &&value)
MatterCluster & AddEvents(EventsKeyT &&key, EventsValueT &&value)
Aws::Utils::DocumentView GetAttributes() const
const Aws::Map< Aws::String, Aws::Utils::Document > & GetEvents() const
const Aws::Map< Aws::String, Aws::Utils::Document > & GetCommands() const
AWS_IOTMANAGEDINTEGRATIONS_API MatterCluster(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTMANAGEDINTEGRATIONS_API MatterCluster()=default
MatterCluster & AddCommands(CommandsKeyT &&key, CommandsValueT &&value)
MatterCluster & WithAttributes(AttributesT &&value)
AWS_IOTMANAGEDINTEGRATIONS_API MatterCluster & operator=(Aws::Utils::Json::JsonView jsonValue)
MatterCluster & WithCommands(CommandsT &&value)
AWS_IOTMANAGEDINTEGRATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
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