AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
UpdateManagedThingRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.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/IoTManagedIntegrationsRequest.h>
11#include <aws/iot-managed-integrations/IoTManagedIntegrations_EXPORTS.h>
12#include <aws/iot-managed-integrations/model/CapabilityReport.h>
13#include <aws/iot-managed-integrations/model/CapabilitySchemaItem.h>
14#include <aws/iot-managed-integrations/model/HubNetworkMode.h>
15#include <aws/iot-managed-integrations/model/WiFiSimpleSetupConfiguration.h>
16
17#include <utility>
18
19namespace Aws {
20namespace IoTManagedIntegrations {
21namespace Model {
22
26 public:
27 AWS_IOTMANAGEDINTEGRATIONS_API UpdateManagedThingRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateManagedThing"; }
34
35 AWS_IOTMANAGEDINTEGRATIONS_API Aws::String SerializePayload() const override;
36
38
41 inline const Aws::String& GetIdentifier() const { return m_identifier; }
42 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
43 template <typename IdentifierT = Aws::String>
44 void SetIdentifier(IdentifierT&& value) {
45 m_identifierHasBeenSet = true;
46 m_identifier = std::forward<IdentifierT>(value);
47 }
48 template <typename IdentifierT = Aws::String>
50 SetIdentifier(std::forward<IdentifierT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetOwner() const { return m_owner; }
61 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
62 template <typename OwnerT = Aws::String>
63 void SetOwner(OwnerT&& value) {
64 m_ownerHasBeenSet = true;
65 m_owner = std::forward<OwnerT>(value);
66 }
67 template <typename OwnerT = Aws::String>
69 SetOwner(std::forward<OwnerT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetCredentialLockerId() const { return m_credentialLockerId; }
79 inline bool CredentialLockerIdHasBeenSet() const { return m_credentialLockerIdHasBeenSet; }
80 template <typename CredentialLockerIdT = Aws::String>
81 void SetCredentialLockerId(CredentialLockerIdT&& value) {
82 m_credentialLockerIdHasBeenSet = true;
83 m_credentialLockerId = std::forward<CredentialLockerIdT>(value);
84 }
85 template <typename CredentialLockerIdT = Aws::String>
86 UpdateManagedThingRequest& WithCredentialLockerId(CredentialLockerIdT&& value) {
87 SetCredentialLockerId(std::forward<CredentialLockerIdT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetSerialNumber() const { return m_serialNumber; }
97 inline bool SerialNumberHasBeenSet() const { return m_serialNumberHasBeenSet; }
98 template <typename SerialNumberT = Aws::String>
99 void SetSerialNumber(SerialNumberT&& value) {
100 m_serialNumberHasBeenSet = true;
101 m_serialNumber = std::forward<SerialNumberT>(value);
102 }
103 template <typename SerialNumberT = Aws::String>
105 SetSerialNumber(std::forward<SerialNumberT>(value));
106 return *this;
107 }
109
111
115 inline const WiFiSimpleSetupConfiguration& GetWiFiSimpleSetupConfiguration() const { return m_wiFiSimpleSetupConfiguration; }
116 inline bool WiFiSimpleSetupConfigurationHasBeenSet() const { return m_wiFiSimpleSetupConfigurationHasBeenSet; }
117 template <typename WiFiSimpleSetupConfigurationT = WiFiSimpleSetupConfiguration>
118 void SetWiFiSimpleSetupConfiguration(WiFiSimpleSetupConfigurationT&& value) {
119 m_wiFiSimpleSetupConfigurationHasBeenSet = true;
120 m_wiFiSimpleSetupConfiguration = std::forward<WiFiSimpleSetupConfigurationT>(value);
121 }
122 template <typename WiFiSimpleSetupConfigurationT = WiFiSimpleSetupConfiguration>
123 UpdateManagedThingRequest& WithWiFiSimpleSetupConfiguration(WiFiSimpleSetupConfigurationT&& value) {
124 SetWiFiSimpleSetupConfiguration(std::forward<WiFiSimpleSetupConfigurationT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::String& GetBrand() const { return m_brand; }
134 inline bool BrandHasBeenSet() const { return m_brandHasBeenSet; }
135 template <typename BrandT = Aws::String>
136 void SetBrand(BrandT&& value) {
137 m_brandHasBeenSet = true;
138 m_brand = std::forward<BrandT>(value);
139 }
140 template <typename BrandT = Aws::String>
142 SetBrand(std::forward<BrandT>(value));
143 return *this;
144 }
146
148
151 inline const Aws::String& GetModel() const { return m_model; }
152 inline bool ModelHasBeenSet() const { return m_modelHasBeenSet; }
153 template <typename ModelT = Aws::String>
154 void SetModel(ModelT&& value) {
155 m_modelHasBeenSet = true;
156 m_model = std::forward<ModelT>(value);
157 }
158 template <typename ModelT = Aws::String>
160 SetModel(std::forward<ModelT>(value));
161 return *this;
162 }
164
166
169 inline const Aws::String& GetName() const { return m_name; }
170 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
171 template <typename NameT = Aws::String>
172 void SetName(NameT&& value) {
173 m_nameHasBeenSet = true;
174 m_name = std::forward<NameT>(value);
175 }
176 template <typename NameT = Aws::String>
178 SetName(std::forward<NameT>(value));
179 return *this;
180 }
182
184
187 inline const CapabilityReport& GetCapabilityReport() const { return m_capabilityReport; }
188 inline bool CapabilityReportHasBeenSet() const { return m_capabilityReportHasBeenSet; }
189 template <typename CapabilityReportT = CapabilityReport>
190 void SetCapabilityReport(CapabilityReportT&& value) {
191 m_capabilityReportHasBeenSet = true;
192 m_capabilityReport = std::forward<CapabilityReportT>(value);
193 }
194 template <typename CapabilityReportT = CapabilityReport>
196 SetCapabilityReport(std::forward<CapabilityReportT>(value));
197 return *this;
198 }
200
202
206 inline const Aws::Vector<CapabilitySchemaItem>& GetCapabilitySchemas() const { return m_capabilitySchemas; }
207 inline bool CapabilitySchemasHasBeenSet() const { return m_capabilitySchemasHasBeenSet; }
208 template <typename CapabilitySchemasT = Aws::Vector<CapabilitySchemaItem>>
209 void SetCapabilitySchemas(CapabilitySchemasT&& value) {
210 m_capabilitySchemasHasBeenSet = true;
211 m_capabilitySchemas = std::forward<CapabilitySchemasT>(value);
212 }
213 template <typename CapabilitySchemasT = Aws::Vector<CapabilitySchemaItem>>
215 SetCapabilitySchemas(std::forward<CapabilitySchemasT>(value));
216 return *this;
217 }
218 template <typename CapabilitySchemasT = CapabilitySchemaItem>
219 UpdateManagedThingRequest& AddCapabilitySchemas(CapabilitySchemasT&& value) {
220 m_capabilitySchemasHasBeenSet = true;
221 m_capabilitySchemas.emplace_back(std::forward<CapabilitySchemasT>(value));
222 return *this;
223 }
225
227
230 inline const Aws::String& GetClassification() const { return m_classification; }
231 inline bool ClassificationHasBeenSet() const { return m_classificationHasBeenSet; }
232 template <typename ClassificationT = Aws::String>
233 void SetClassification(ClassificationT&& value) {
234 m_classificationHasBeenSet = true;
235 m_classification = std::forward<ClassificationT>(value);
236 }
237 template <typename ClassificationT = Aws::String>
239 SetClassification(std::forward<ClassificationT>(value));
240 return *this;
241 }
243
245
248 inline HubNetworkMode GetHubNetworkMode() const { return m_hubNetworkMode; }
249 inline bool HubNetworkModeHasBeenSet() const { return m_hubNetworkModeHasBeenSet; }
251 m_hubNetworkModeHasBeenSet = true;
252 m_hubNetworkMode = value;
253 }
255 SetHubNetworkMode(value);
256 return *this;
257 }
259
261
264 inline const Aws::Map<Aws::String, Aws::String>& GetMetaData() const { return m_metaData; }
265 inline bool MetaDataHasBeenSet() const { return m_metaDataHasBeenSet; }
266 template <typename MetaDataT = Aws::Map<Aws::String, Aws::String>>
267 void SetMetaData(MetaDataT&& value) {
268 m_metaDataHasBeenSet = true;
269 m_metaData = std::forward<MetaDataT>(value);
270 }
271 template <typename MetaDataT = Aws::Map<Aws::String, Aws::String>>
273 SetMetaData(std::forward<MetaDataT>(value));
274 return *this;
275 }
276 template <typename MetaDataKeyT = Aws::String, typename MetaDataValueT = Aws::String>
277 UpdateManagedThingRequest& AddMetaData(MetaDataKeyT&& key, MetaDataValueT&& value) {
278 m_metaDataHasBeenSet = true;
279 m_metaData.emplace(std::forward<MetaDataKeyT>(key), std::forward<MetaDataValueT>(value));
280 return *this;
281 }
283 private:
284 Aws::String m_identifier;
285
286 Aws::String m_owner;
287
288 Aws::String m_credentialLockerId;
289
290 Aws::String m_serialNumber;
291
292 WiFiSimpleSetupConfiguration m_wiFiSimpleSetupConfiguration;
293
294 Aws::String m_brand;
295
296 Aws::String m_model;
297
298 Aws::String m_name;
299
300 CapabilityReport m_capabilityReport;
301
302 Aws::Vector<CapabilitySchemaItem> m_capabilitySchemas;
303
304 Aws::String m_classification;
305
306 HubNetworkMode m_hubNetworkMode{HubNetworkMode::NOT_SET};
307
309 bool m_identifierHasBeenSet = false;
310 bool m_ownerHasBeenSet = false;
311 bool m_credentialLockerIdHasBeenSet = false;
312 bool m_serialNumberHasBeenSet = false;
313 bool m_wiFiSimpleSetupConfigurationHasBeenSet = false;
314 bool m_brandHasBeenSet = false;
315 bool m_modelHasBeenSet = false;
316 bool m_nameHasBeenSet = false;
317 bool m_capabilityReportHasBeenSet = false;
318 bool m_capabilitySchemasHasBeenSet = false;
319 bool m_classificationHasBeenSet = false;
320 bool m_hubNetworkModeHasBeenSet = false;
321 bool m_metaDataHasBeenSet = false;
322};
323
324} // namespace Model
325} // namespace IoTManagedIntegrations
326} // namespace Aws
UpdateManagedThingRequest & WithCredentialLockerId(CredentialLockerIdT &&value)
UpdateManagedThingRequest & AddMetaData(MetaDataKeyT &&key, MetaDataValueT &&value)
UpdateManagedThingRequest & WithClassification(ClassificationT &&value)
const Aws::Vector< CapabilitySchemaItem > & GetCapabilitySchemas() const
UpdateManagedThingRequest & WithHubNetworkMode(HubNetworkMode value)
const WiFiSimpleSetupConfiguration & GetWiFiSimpleSetupConfiguration() const
UpdateManagedThingRequest & WithCapabilitySchemas(CapabilitySchemasT &&value)
AWS_IOTMANAGEDINTEGRATIONS_API Aws::String SerializePayload() const override
AWS_IOTMANAGEDINTEGRATIONS_API UpdateManagedThingRequest()=default
const Aws::Map< Aws::String, Aws::String > & GetMetaData() const
void SetWiFiSimpleSetupConfiguration(WiFiSimpleSetupConfigurationT &&value)
UpdateManagedThingRequest & AddCapabilitySchemas(CapabilitySchemasT &&value)
UpdateManagedThingRequest & WithSerialNumber(SerialNumberT &&value)
UpdateManagedThingRequest & WithIdentifier(IdentifierT &&value)
UpdateManagedThingRequest & WithCapabilityReport(CapabilityReportT &&value)
UpdateManagedThingRequest & WithWiFiSimpleSetupConfiguration(WiFiSimpleSetupConfigurationT &&value)
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
std::vector< T, Aws::Allocator< T > > Vector