AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
DiscoveredDeviceSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/iot-managed-integrations/IoTManagedIntegrations_EXPORTS.h>
11#include <aws/iot-managed-integrations/model/DiscoveryModification.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace IoTManagedIntegrations {
23namespace Model {
24
32 public:
33 AWS_IOTMANAGEDINTEGRATIONS_API DiscoveredDeviceSummary() = default;
34 AWS_IOTMANAGEDINTEGRATIONS_API DiscoveredDeviceSummary(Aws::Utils::Json::JsonView jsonValue);
35 AWS_IOTMANAGEDINTEGRATIONS_API DiscoveredDeviceSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_IOTMANAGEDINTEGRATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::String& GetConnectorDeviceId() const { return m_connectorDeviceId; }
44 inline bool ConnectorDeviceIdHasBeenSet() const { return m_connectorDeviceIdHasBeenSet; }
45 template <typename ConnectorDeviceIdT = Aws::String>
46 void SetConnectorDeviceId(ConnectorDeviceIdT&& value) {
47 m_connectorDeviceIdHasBeenSet = true;
48 m_connectorDeviceId = std::forward<ConnectorDeviceIdT>(value);
49 }
50 template <typename ConnectorDeviceIdT = Aws::String>
51 DiscoveredDeviceSummary& WithConnectorDeviceId(ConnectorDeviceIdT&& value) {
52 SetConnectorDeviceId(std::forward<ConnectorDeviceIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetConnectorDeviceName() const { return m_connectorDeviceName; }
62 inline bool ConnectorDeviceNameHasBeenSet() const { return m_connectorDeviceNameHasBeenSet; }
63 template <typename ConnectorDeviceNameT = Aws::String>
64 void SetConnectorDeviceName(ConnectorDeviceNameT&& value) {
65 m_connectorDeviceNameHasBeenSet = true;
66 m_connectorDeviceName = std::forward<ConnectorDeviceNameT>(value);
67 }
68 template <typename ConnectorDeviceNameT = Aws::String>
69 DiscoveredDeviceSummary& WithConnectorDeviceName(ConnectorDeviceNameT&& value) {
70 SetConnectorDeviceName(std::forward<ConnectorDeviceNameT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::Vector<Aws::String>& GetDeviceTypes() const { return m_deviceTypes; }
81 inline bool DeviceTypesHasBeenSet() const { return m_deviceTypesHasBeenSet; }
82 template <typename DeviceTypesT = Aws::Vector<Aws::String>>
83 void SetDeviceTypes(DeviceTypesT&& value) {
84 m_deviceTypesHasBeenSet = true;
85 m_deviceTypes = std::forward<DeviceTypesT>(value);
86 }
87 template <typename DeviceTypesT = Aws::Vector<Aws::String>>
89 SetDeviceTypes(std::forward<DeviceTypesT>(value));
90 return *this;
91 }
92 template <typename DeviceTypesT = Aws::String>
93 DiscoveredDeviceSummary& AddDeviceTypes(DeviceTypesT&& value) {
94 m_deviceTypesHasBeenSet = true;
95 m_deviceTypes.emplace_back(std::forward<DeviceTypesT>(value));
96 return *this;
97 }
99
101
105 inline const Aws::String& GetManagedThingId() const { return m_managedThingId; }
106 inline bool ManagedThingIdHasBeenSet() const { return m_managedThingIdHasBeenSet; }
107 template <typename ManagedThingIdT = Aws::String>
108 void SetManagedThingId(ManagedThingIdT&& value) {
109 m_managedThingIdHasBeenSet = true;
110 m_managedThingId = std::forward<ManagedThingIdT>(value);
111 }
112 template <typename ManagedThingIdT = Aws::String>
113 DiscoveredDeviceSummary& WithManagedThingId(ManagedThingIdT&& value) {
114 SetManagedThingId(std::forward<ManagedThingIdT>(value));
115 return *this;
116 }
118
120
124 inline DiscoveryModification GetModification() const { return m_modification; }
125 inline bool ModificationHasBeenSet() const { return m_modificationHasBeenSet; }
127 m_modificationHasBeenSet = true;
128 m_modification = value;
129 }
131 SetModification(value);
132 return *this;
133 }
135
137
140 inline const Aws::Utils::DateTime& GetDiscoveredAt() const { return m_discoveredAt; }
141 inline bool DiscoveredAtHasBeenSet() const { return m_discoveredAtHasBeenSet; }
142 template <typename DiscoveredAtT = Aws::Utils::DateTime>
143 void SetDiscoveredAt(DiscoveredAtT&& value) {
144 m_discoveredAtHasBeenSet = true;
145 m_discoveredAt = std::forward<DiscoveredAtT>(value);
146 }
147 template <typename DiscoveredAtT = Aws::Utils::DateTime>
149 SetDiscoveredAt(std::forward<DiscoveredAtT>(value));
150 return *this;
151 }
153
155
158 inline const Aws::String& GetBrand() const { return m_brand; }
159 inline bool BrandHasBeenSet() const { return m_brandHasBeenSet; }
160 template <typename BrandT = Aws::String>
161 void SetBrand(BrandT&& value) {
162 m_brandHasBeenSet = true;
163 m_brand = std::forward<BrandT>(value);
164 }
165 template <typename BrandT = Aws::String>
167 SetBrand(std::forward<BrandT>(value));
168 return *this;
169 }
171
173
176 inline const Aws::String& GetModel() const { return m_model; }
177 inline bool ModelHasBeenSet() const { return m_modelHasBeenSet; }
178 template <typename ModelT = Aws::String>
179 void SetModel(ModelT&& value) {
180 m_modelHasBeenSet = true;
181 m_model = std::forward<ModelT>(value);
182 }
183 template <typename ModelT = Aws::String>
185 SetModel(std::forward<ModelT>(value));
186 return *this;
187 }
189
191
195 inline const Aws::String& GetAuthenticationMaterial() const { return m_authenticationMaterial; }
196 inline bool AuthenticationMaterialHasBeenSet() const { return m_authenticationMaterialHasBeenSet; }
197 template <typename AuthenticationMaterialT = Aws::String>
198 void SetAuthenticationMaterial(AuthenticationMaterialT&& value) {
199 m_authenticationMaterialHasBeenSet = true;
200 m_authenticationMaterial = std::forward<AuthenticationMaterialT>(value);
201 }
202 template <typename AuthenticationMaterialT = Aws::String>
203 DiscoveredDeviceSummary& WithAuthenticationMaterial(AuthenticationMaterialT&& value) {
204 SetAuthenticationMaterial(std::forward<AuthenticationMaterialT>(value));
205 return *this;
206 }
208 private:
209 Aws::String m_connectorDeviceId;
210
211 Aws::String m_connectorDeviceName;
212
213 Aws::Vector<Aws::String> m_deviceTypes;
214
215 Aws::String m_managedThingId;
216
218
219 Aws::Utils::DateTime m_discoveredAt{};
220
221 Aws::String m_brand;
222
223 Aws::String m_model;
224
225 Aws::String m_authenticationMaterial;
226 bool m_connectorDeviceIdHasBeenSet = false;
227 bool m_connectorDeviceNameHasBeenSet = false;
228 bool m_deviceTypesHasBeenSet = false;
229 bool m_managedThingIdHasBeenSet = false;
230 bool m_modificationHasBeenSet = false;
231 bool m_discoveredAtHasBeenSet = false;
232 bool m_brandHasBeenSet = false;
233 bool m_modelHasBeenSet = false;
234 bool m_authenticationMaterialHasBeenSet = false;
235};
236
237} // namespace Model
238} // namespace IoTManagedIntegrations
239} // namespace Aws
DiscoveredDeviceSummary & WithConnectorDeviceName(ConnectorDeviceNameT &&value)
AWS_IOTMANAGEDINTEGRATIONS_API DiscoveredDeviceSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
DiscoveredDeviceSummary & WithModification(DiscoveryModification value)
AWS_IOTMANAGEDINTEGRATIONS_API DiscoveredDeviceSummary()=default
DiscoveredDeviceSummary & WithDeviceTypes(DeviceTypesT &&value)
AWS_IOTMANAGEDINTEGRATIONS_API DiscoveredDeviceSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTMANAGEDINTEGRATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
DiscoveredDeviceSummary & AddDeviceTypes(DeviceTypesT &&value)
DiscoveredDeviceSummary & WithManagedThingId(ManagedThingIdT &&value)
DiscoveredDeviceSummary & WithAuthenticationMaterial(AuthenticationMaterialT &&value)
DiscoveredDeviceSummary & WithConnectorDeviceId(ConnectorDeviceIdT &&value)
DiscoveredDeviceSummary & WithDiscoveredAt(DiscoveredAtT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue