AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
UpdateManagedThingRequest.h
1
6#pragma once
7#include <aws/iot-managed-integrations/IoTManagedIntegrations_EXPORTS.h>
8#include <aws/iot-managed-integrations/IoTManagedIntegrationsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/iot-managed-integrations/model/CapabilityReport.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/iot-managed-integrations/model/HubNetworkMode.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/iot-managed-integrations/model/CapabilitySchemaItem.h>
15#include <utility>
16
17namespace Aws
18{
19namespace IoTManagedIntegrations
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_IOTMANAGEDINTEGRATIONS_API UpdateManagedThingRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "UpdateManagedThing"; }
36
37 AWS_IOTMANAGEDINTEGRATIONS_API Aws::String SerializePayload() const override;
38
39
41
44 inline const Aws::String& GetIdentifier() const { return m_identifier; }
45 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
46 template<typename IdentifierT = Aws::String>
47 void SetIdentifier(IdentifierT&& value) { m_identifierHasBeenSet = true; m_identifier = std::forward<IdentifierT>(value); }
48 template<typename IdentifierT = Aws::String>
49 UpdateManagedThingRequest& WithIdentifier(IdentifierT&& value) { SetIdentifier(std::forward<IdentifierT>(value)); return *this;}
51
53
57 inline const Aws::String& GetOwner() const { return m_owner; }
58 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
59 template<typename OwnerT = Aws::String>
60 void SetOwner(OwnerT&& value) { m_ownerHasBeenSet = true; m_owner = std::forward<OwnerT>(value); }
61 template<typename OwnerT = Aws::String>
62 UpdateManagedThingRequest& WithOwner(OwnerT&& value) { SetOwner(std::forward<OwnerT>(value)); return *this;}
64
66
69 inline const Aws::String& GetCredentialLockerId() const { return m_credentialLockerId; }
70 inline bool CredentialLockerIdHasBeenSet() const { return m_credentialLockerIdHasBeenSet; }
71 template<typename CredentialLockerIdT = Aws::String>
72 void SetCredentialLockerId(CredentialLockerIdT&& value) { m_credentialLockerIdHasBeenSet = true; m_credentialLockerId = std::forward<CredentialLockerIdT>(value); }
73 template<typename CredentialLockerIdT = Aws::String>
74 UpdateManagedThingRequest& WithCredentialLockerId(CredentialLockerIdT&& value) { SetCredentialLockerId(std::forward<CredentialLockerIdT>(value)); return *this;}
76
78
81 inline const Aws::String& GetSerialNumber() const { return m_serialNumber; }
82 inline bool SerialNumberHasBeenSet() const { return m_serialNumberHasBeenSet; }
83 template<typename SerialNumberT = Aws::String>
84 void SetSerialNumber(SerialNumberT&& value) { m_serialNumberHasBeenSet = true; m_serialNumber = std::forward<SerialNumberT>(value); }
85 template<typename SerialNumberT = Aws::String>
86 UpdateManagedThingRequest& WithSerialNumber(SerialNumberT&& value) { SetSerialNumber(std::forward<SerialNumberT>(value)); return *this;}
88
90
93 inline const Aws::String& GetBrand() const { return m_brand; }
94 inline bool BrandHasBeenSet() const { return m_brandHasBeenSet; }
95 template<typename BrandT = Aws::String>
96 void SetBrand(BrandT&& value) { m_brandHasBeenSet = true; m_brand = std::forward<BrandT>(value); }
97 template<typename BrandT = Aws::String>
98 UpdateManagedThingRequest& WithBrand(BrandT&& value) { SetBrand(std::forward<BrandT>(value)); return *this;}
100
102
105 inline const Aws::String& GetModel() const { return m_model; }
106 inline bool ModelHasBeenSet() const { return m_modelHasBeenSet; }
107 template<typename ModelT = Aws::String>
108 void SetModel(ModelT&& value) { m_modelHasBeenSet = true; m_model = std::forward<ModelT>(value); }
109 template<typename ModelT = Aws::String>
110 UpdateManagedThingRequest& WithModel(ModelT&& value) { SetModel(std::forward<ModelT>(value)); return *this;}
112
114
117 inline const Aws::String& GetName() const { return m_name; }
118 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
119 template<typename NameT = Aws::String>
120 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
121 template<typename NameT = Aws::String>
122 UpdateManagedThingRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
124
126
129 inline const CapabilityReport& GetCapabilityReport() const { return m_capabilityReport; }
130 inline bool CapabilityReportHasBeenSet() const { return m_capabilityReportHasBeenSet; }
131 template<typename CapabilityReportT = CapabilityReport>
132 void SetCapabilityReport(CapabilityReportT&& value) { m_capabilityReportHasBeenSet = true; m_capabilityReport = std::forward<CapabilityReportT>(value); }
133 template<typename CapabilityReportT = CapabilityReport>
134 UpdateManagedThingRequest& WithCapabilityReport(CapabilityReportT&& value) { SetCapabilityReport(std::forward<CapabilityReportT>(value)); return *this;}
136
138
142 inline const Aws::Vector<CapabilitySchemaItem>& GetCapabilitySchemas() const { return m_capabilitySchemas; }
143 inline bool CapabilitySchemasHasBeenSet() const { return m_capabilitySchemasHasBeenSet; }
144 template<typename CapabilitySchemasT = Aws::Vector<CapabilitySchemaItem>>
145 void SetCapabilitySchemas(CapabilitySchemasT&& value) { m_capabilitySchemasHasBeenSet = true; m_capabilitySchemas = std::forward<CapabilitySchemasT>(value); }
146 template<typename CapabilitySchemasT = Aws::Vector<CapabilitySchemaItem>>
147 UpdateManagedThingRequest& WithCapabilitySchemas(CapabilitySchemasT&& value) { SetCapabilitySchemas(std::forward<CapabilitySchemasT>(value)); return *this;}
148 template<typename CapabilitySchemasT = CapabilitySchemaItem>
149 UpdateManagedThingRequest& AddCapabilitySchemas(CapabilitySchemasT&& value) { m_capabilitySchemasHasBeenSet = true; m_capabilitySchemas.emplace_back(std::forward<CapabilitySchemasT>(value)); return *this; }
151
153
156 inline const Aws::String& GetCapabilities() const { return m_capabilities; }
157 inline bool CapabilitiesHasBeenSet() const { return m_capabilitiesHasBeenSet; }
158 template<typename CapabilitiesT = Aws::String>
159 void SetCapabilities(CapabilitiesT&& value) { m_capabilitiesHasBeenSet = true; m_capabilities = std::forward<CapabilitiesT>(value); }
160 template<typename CapabilitiesT = Aws::String>
161 UpdateManagedThingRequest& WithCapabilities(CapabilitiesT&& value) { SetCapabilities(std::forward<CapabilitiesT>(value)); return *this;}
163
165
168 inline const Aws::String& GetClassification() const { return m_classification; }
169 inline bool ClassificationHasBeenSet() const { return m_classificationHasBeenSet; }
170 template<typename ClassificationT = Aws::String>
171 void SetClassification(ClassificationT&& value) { m_classificationHasBeenSet = true; m_classification = std::forward<ClassificationT>(value); }
172 template<typename ClassificationT = Aws::String>
173 UpdateManagedThingRequest& WithClassification(ClassificationT&& value) { SetClassification(std::forward<ClassificationT>(value)); return *this;}
175
177
180 inline HubNetworkMode GetHubNetworkMode() const { return m_hubNetworkMode; }
181 inline bool HubNetworkModeHasBeenSet() const { return m_hubNetworkModeHasBeenSet; }
182 inline void SetHubNetworkMode(HubNetworkMode value) { m_hubNetworkModeHasBeenSet = true; m_hubNetworkMode = value; }
185
187
190 inline const Aws::Map<Aws::String, Aws::String>& GetMetaData() const { return m_metaData; }
191 inline bool MetaDataHasBeenSet() const { return m_metaDataHasBeenSet; }
192 template<typename MetaDataT = Aws::Map<Aws::String, Aws::String>>
193 void SetMetaData(MetaDataT&& value) { m_metaDataHasBeenSet = true; m_metaData = std::forward<MetaDataT>(value); }
194 template<typename MetaDataT = Aws::Map<Aws::String, Aws::String>>
195 UpdateManagedThingRequest& WithMetaData(MetaDataT&& value) { SetMetaData(std::forward<MetaDataT>(value)); return *this;}
196 template<typename MetaDataKeyT = Aws::String, typename MetaDataValueT = Aws::String>
197 UpdateManagedThingRequest& AddMetaData(MetaDataKeyT&& key, MetaDataValueT&& value) {
198 m_metaDataHasBeenSet = true; m_metaData.emplace(std::forward<MetaDataKeyT>(key), std::forward<MetaDataValueT>(value)); return *this;
199 }
201 private:
202
203 Aws::String m_identifier;
204 bool m_identifierHasBeenSet = false;
205
206 Aws::String m_owner;
207 bool m_ownerHasBeenSet = false;
208
209 Aws::String m_credentialLockerId;
210 bool m_credentialLockerIdHasBeenSet = false;
211
212 Aws::String m_serialNumber;
213 bool m_serialNumberHasBeenSet = false;
214
215 Aws::String m_brand;
216 bool m_brandHasBeenSet = false;
217
218 Aws::String m_model;
219 bool m_modelHasBeenSet = false;
220
221 Aws::String m_name;
222 bool m_nameHasBeenSet = false;
223
224 CapabilityReport m_capabilityReport;
225 bool m_capabilityReportHasBeenSet = false;
226
227 Aws::Vector<CapabilitySchemaItem> m_capabilitySchemas;
228 bool m_capabilitySchemasHasBeenSet = false;
229
230 Aws::String m_capabilities;
231 bool m_capabilitiesHasBeenSet = false;
232
233 Aws::String m_classification;
234 bool m_classificationHasBeenSet = false;
235
236 HubNetworkMode m_hubNetworkMode{HubNetworkMode::NOT_SET};
237 bool m_hubNetworkModeHasBeenSet = false;
238
240 bool m_metaDataHasBeenSet = false;
241 };
242
243} // namespace Model
244} // namespace IoTManagedIntegrations
245} // 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)
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
UpdateManagedThingRequest & WithCapabilities(CapabilitiesT &&value)
UpdateManagedThingRequest & AddCapabilitySchemas(CapabilitySchemasT &&value)
UpdateManagedThingRequest & WithSerialNumber(SerialNumberT &&value)
UpdateManagedThingRequest & WithIdentifier(IdentifierT &&value)
UpdateManagedThingRequest & WithCapabilityReport(CapabilityReportT &&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