AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
MatterEndpoint.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/iot-managed-integrations/IoTManagedIntegrations_EXPORTS.h>
10#include <aws/iot-managed-integrations/model/MatterCluster.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
30 public:
31 AWS_IOTMANAGEDINTEGRATIONS_API MatterEndpoint() = default;
32 AWS_IOTMANAGEDINTEGRATIONS_API MatterEndpoint(Aws::Utils::Json::JsonView jsonValue);
33 AWS_IOTMANAGEDINTEGRATIONS_API MatterEndpoint& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_IOTMANAGEDINTEGRATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetId() const { return m_id; }
41 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
42 template <typename IdT = Aws::String>
43 void SetId(IdT&& value) {
44 m_idHasBeenSet = true;
45 m_id = std::forward<IdT>(value);
46 }
47 template <typename IdT = Aws::String>
48 MatterEndpoint& WithId(IdT&& value) {
49 SetId(std::forward<IdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Vector<MatterCluster>& GetClusters() const { return m_clusters; }
59 inline bool ClustersHasBeenSet() const { return m_clustersHasBeenSet; }
60 template <typename ClustersT = Aws::Vector<MatterCluster>>
61 void SetClusters(ClustersT&& value) {
62 m_clustersHasBeenSet = true;
63 m_clusters = std::forward<ClustersT>(value);
64 }
65 template <typename ClustersT = Aws::Vector<MatterCluster>>
66 MatterEndpoint& WithClusters(ClustersT&& value) {
67 SetClusters(std::forward<ClustersT>(value));
68 return *this;
69 }
70 template <typename ClustersT = MatterCluster>
71 MatterEndpoint& AddClusters(ClustersT&& value) {
72 m_clustersHasBeenSet = true;
73 m_clusters.emplace_back(std::forward<ClustersT>(value));
74 return *this;
75 }
77 private:
78 Aws::String m_id;
79
81 bool m_idHasBeenSet = false;
82 bool m_clustersHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace IoTManagedIntegrations
87} // namespace Aws
MatterEndpoint & AddClusters(ClustersT &&value)
AWS_IOTMANAGEDINTEGRATIONS_API MatterEndpoint & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< MatterCluster > & GetClusters() const
AWS_IOTMANAGEDINTEGRATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
MatterEndpoint & WithClusters(ClustersT &&value)
AWS_IOTMANAGEDINTEGRATIONS_API MatterEndpoint(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTMANAGEDINTEGRATIONS_API MatterEndpoint()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue