AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateManagedThingRequest.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/iot-managed-integrations/model/Role.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/iot-managed-integrations/model/AuthMaterialType.h>
12#include <aws/iot-managed-integrations/model/CapabilityReport.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <aws/iot-managed-integrations/model/CapabilitySchemaItem.h>
16#include <utility>
17#include <aws/core/utils/UUID.h>
18
19namespace Aws
20{
21namespace IoTManagedIntegrations
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_IOTMANAGEDINTEGRATIONS_API CreateManagedThingRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateManagedThing"; }
38
39 AWS_IOTMANAGEDINTEGRATIONS_API Aws::String SerializePayload() const override;
40
41
43
47 inline Role GetRole() const { return m_role; }
48 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
49 inline void SetRole(Role value) { m_roleHasBeenSet = true; m_role = value; }
50 inline CreateManagedThingRequest& WithRole(Role value) { SetRole(value); return *this;}
52
54
58 inline const Aws::String& GetOwner() const { return m_owner; }
59 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
60 template<typename OwnerT = Aws::String>
61 void SetOwner(OwnerT&& value) { m_ownerHasBeenSet = true; m_owner = std::forward<OwnerT>(value); }
62 template<typename OwnerT = Aws::String>
63 CreateManagedThingRequest& WithOwner(OwnerT&& value) { SetOwner(std::forward<OwnerT>(value)); return *this;}
65
67
70 inline const Aws::String& GetCredentialLockerId() const { return m_credentialLockerId; }
71 inline bool CredentialLockerIdHasBeenSet() const { return m_credentialLockerIdHasBeenSet; }
72 template<typename CredentialLockerIdT = Aws::String>
73 void SetCredentialLockerId(CredentialLockerIdT&& value) { m_credentialLockerIdHasBeenSet = true; m_credentialLockerId = std::forward<CredentialLockerIdT>(value); }
74 template<typename CredentialLockerIdT = Aws::String>
75 CreateManagedThingRequest& WithCredentialLockerId(CredentialLockerIdT&& value) { SetCredentialLockerId(std::forward<CredentialLockerIdT>(value)); return *this;}
77
79
83 inline const Aws::String& GetAuthenticationMaterial() const { return m_authenticationMaterial; }
84 inline bool AuthenticationMaterialHasBeenSet() const { return m_authenticationMaterialHasBeenSet; }
85 template<typename AuthenticationMaterialT = Aws::String>
86 void SetAuthenticationMaterial(AuthenticationMaterialT&& value) { m_authenticationMaterialHasBeenSet = true; m_authenticationMaterial = std::forward<AuthenticationMaterialT>(value); }
87 template<typename AuthenticationMaterialT = Aws::String>
88 CreateManagedThingRequest& WithAuthenticationMaterial(AuthenticationMaterialT&& value) { SetAuthenticationMaterial(std::forward<AuthenticationMaterialT>(value)); return *this;}
90
92
96 inline AuthMaterialType GetAuthenticationMaterialType() const { return m_authenticationMaterialType; }
97 inline bool AuthenticationMaterialTypeHasBeenSet() const { return m_authenticationMaterialTypeHasBeenSet; }
98 inline void SetAuthenticationMaterialType(AuthMaterialType value) { m_authenticationMaterialTypeHasBeenSet = true; m_authenticationMaterialType = value; }
101
103
106 inline const Aws::String& GetSerialNumber() const { return m_serialNumber; }
107 inline bool SerialNumberHasBeenSet() const { return m_serialNumberHasBeenSet; }
108 template<typename SerialNumberT = Aws::String>
109 void SetSerialNumber(SerialNumberT&& value) { m_serialNumberHasBeenSet = true; m_serialNumber = std::forward<SerialNumberT>(value); }
110 template<typename SerialNumberT = Aws::String>
111 CreateManagedThingRequest& WithSerialNumber(SerialNumberT&& value) { SetSerialNumber(std::forward<SerialNumberT>(value)); return *this;}
113
115
118 inline const Aws::String& GetBrand() const { return m_brand; }
119 inline bool BrandHasBeenSet() const { return m_brandHasBeenSet; }
120 template<typename BrandT = Aws::String>
121 void SetBrand(BrandT&& value) { m_brandHasBeenSet = true; m_brand = std::forward<BrandT>(value); }
122 template<typename BrandT = Aws::String>
123 CreateManagedThingRequest& WithBrand(BrandT&& value) { SetBrand(std::forward<BrandT>(value)); return *this;}
125
127
130 inline const Aws::String& GetModel() const { return m_model; }
131 inline bool ModelHasBeenSet() const { return m_modelHasBeenSet; }
132 template<typename ModelT = Aws::String>
133 void SetModel(ModelT&& value) { m_modelHasBeenSet = true; m_model = std::forward<ModelT>(value); }
134 template<typename ModelT = Aws::String>
135 CreateManagedThingRequest& WithModel(ModelT&& value) { SetModel(std::forward<ModelT>(value)); return *this;}
137
139
142 inline const Aws::String& GetName() const { return m_name; }
143 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
144 template<typename NameT = Aws::String>
145 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
146 template<typename NameT = Aws::String>
147 CreateManagedThingRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
149
151
154 inline const CapabilityReport& GetCapabilityReport() const { return m_capabilityReport; }
155 inline bool CapabilityReportHasBeenSet() const { return m_capabilityReportHasBeenSet; }
156 template<typename CapabilityReportT = CapabilityReport>
157 void SetCapabilityReport(CapabilityReportT&& value) { m_capabilityReportHasBeenSet = true; m_capabilityReport = std::forward<CapabilityReportT>(value); }
158 template<typename CapabilityReportT = CapabilityReport>
159 CreateManagedThingRequest& WithCapabilityReport(CapabilityReportT&& value) { SetCapabilityReport(std::forward<CapabilityReportT>(value)); return *this;}
161
163
168 inline const Aws::Vector<CapabilitySchemaItem>& GetCapabilitySchemas() const { return m_capabilitySchemas; }
169 inline bool CapabilitySchemasHasBeenSet() const { return m_capabilitySchemasHasBeenSet; }
170 template<typename CapabilitySchemasT = Aws::Vector<CapabilitySchemaItem>>
171 void SetCapabilitySchemas(CapabilitySchemasT&& value) { m_capabilitySchemasHasBeenSet = true; m_capabilitySchemas = std::forward<CapabilitySchemasT>(value); }
172 template<typename CapabilitySchemasT = Aws::Vector<CapabilitySchemaItem>>
173 CreateManagedThingRequest& WithCapabilitySchemas(CapabilitySchemasT&& value) { SetCapabilitySchemas(std::forward<CapabilitySchemasT>(value)); return *this;}
174 template<typename CapabilitySchemasT = CapabilitySchemaItem>
175 CreateManagedThingRequest& AddCapabilitySchemas(CapabilitySchemasT&& value) { m_capabilitySchemasHasBeenSet = true; m_capabilitySchemas.emplace_back(std::forward<CapabilitySchemasT>(value)); return *this; }
177
179
182 inline const Aws::String& GetCapabilities() const { return m_capabilities; }
183 inline bool CapabilitiesHasBeenSet() const { return m_capabilitiesHasBeenSet; }
184 template<typename CapabilitiesT = Aws::String>
185 void SetCapabilities(CapabilitiesT&& value) { m_capabilitiesHasBeenSet = true; m_capabilities = std::forward<CapabilitiesT>(value); }
186 template<typename CapabilitiesT = Aws::String>
187 CreateManagedThingRequest& WithCapabilities(CapabilitiesT&& value) { SetCapabilities(std::forward<CapabilitiesT>(value)); return *this;}
189
191
196 inline const Aws::String& GetClientToken() const { return m_clientToken; }
197 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
198 template<typename ClientTokenT = Aws::String>
199 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
200 template<typename ClientTokenT = Aws::String>
201 CreateManagedThingRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
203
205
208 inline const Aws::String& GetClassification() const { return m_classification; }
209 inline bool ClassificationHasBeenSet() const { return m_classificationHasBeenSet; }
210 template<typename ClassificationT = Aws::String>
211 void SetClassification(ClassificationT&& value) { m_classificationHasBeenSet = true; m_classification = std::forward<ClassificationT>(value); }
212 template<typename ClassificationT = Aws::String>
213 CreateManagedThingRequest& WithClassification(ClassificationT&& value) { SetClassification(std::forward<ClassificationT>(value)); return *this;}
215
217
220 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
221 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
222 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
223 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
224 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
225 CreateManagedThingRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
226 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
227 CreateManagedThingRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
228 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
229 }
231
233
241 inline const Aws::Map<Aws::String, Aws::String>& GetMetaData() const { return m_metaData; }
242 inline bool MetaDataHasBeenSet() const { return m_metaDataHasBeenSet; }
243 template<typename MetaDataT = Aws::Map<Aws::String, Aws::String>>
244 void SetMetaData(MetaDataT&& value) { m_metaDataHasBeenSet = true; m_metaData = std::forward<MetaDataT>(value); }
245 template<typename MetaDataT = Aws::Map<Aws::String, Aws::String>>
246 CreateManagedThingRequest& WithMetaData(MetaDataT&& value) { SetMetaData(std::forward<MetaDataT>(value)); return *this;}
247 template<typename MetaDataKeyT = Aws::String, typename MetaDataValueT = Aws::String>
248 CreateManagedThingRequest& AddMetaData(MetaDataKeyT&& key, MetaDataValueT&& value) {
249 m_metaDataHasBeenSet = true; m_metaData.emplace(std::forward<MetaDataKeyT>(key), std::forward<MetaDataValueT>(value)); return *this;
250 }
252 private:
253
254 Role m_role{Role::NOT_SET};
255 bool m_roleHasBeenSet = false;
256
257 Aws::String m_owner;
258 bool m_ownerHasBeenSet = false;
259
260 Aws::String m_credentialLockerId;
261 bool m_credentialLockerIdHasBeenSet = false;
262
263 Aws::String m_authenticationMaterial;
264 bool m_authenticationMaterialHasBeenSet = false;
265
266 AuthMaterialType m_authenticationMaterialType{AuthMaterialType::NOT_SET};
267 bool m_authenticationMaterialTypeHasBeenSet = false;
268
269 Aws::String m_serialNumber;
270 bool m_serialNumberHasBeenSet = false;
271
272 Aws::String m_brand;
273 bool m_brandHasBeenSet = false;
274
275 Aws::String m_model;
276 bool m_modelHasBeenSet = false;
277
278 Aws::String m_name;
279 bool m_nameHasBeenSet = false;
280
281 CapabilityReport m_capabilityReport;
282 bool m_capabilityReportHasBeenSet = false;
283
284 Aws::Vector<CapabilitySchemaItem> m_capabilitySchemas;
285 bool m_capabilitySchemasHasBeenSet = false;
286
287 Aws::String m_capabilities;
288 bool m_capabilitiesHasBeenSet = false;
289
291 bool m_clientTokenHasBeenSet = true;
292
293 Aws::String m_classification;
294 bool m_classificationHasBeenSet = false;
295
297 bool m_tagsHasBeenSet = false;
298
300 bool m_metaDataHasBeenSet = false;
301 };
302
303} // namespace Model
304} // namespace IoTManagedIntegrations
305} // namespace Aws
const Aws::Vector< CapabilitySchemaItem > & GetCapabilitySchemas() const
CreateManagedThingRequest & WithCredentialLockerId(CredentialLockerIdT &&value)
CreateManagedThingRequest & WithCapabilities(CapabilitiesT &&value)
CreateManagedThingRequest & WithCapabilityReport(CapabilityReportT &&value)
CreateManagedThingRequest & WithAuthenticationMaterial(AuthenticationMaterialT &&value)
CreateManagedThingRequest & WithCapabilitySchemas(CapabilitySchemasT &&value)
CreateManagedThingRequest & AddCapabilitySchemas(CapabilitySchemasT &&value)
const Aws::Map< Aws::String, Aws::String > & GetMetaData() const
CreateManagedThingRequest & WithSerialNumber(SerialNumberT &&value)
CreateManagedThingRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateManagedThingRequest & WithClassification(ClassificationT &&value)
AWS_IOTMANAGEDINTEGRATIONS_API Aws::String SerializePayload() const override
CreateManagedThingRequest & WithClientToken(ClientTokenT &&value)
CreateManagedThingRequest & WithAuthenticationMaterialType(AuthMaterialType value)
AWS_IOTMANAGEDINTEGRATIONS_API CreateManagedThingRequest()=default
CreateManagedThingRequest & AddMetaData(MetaDataKeyT &&key, MetaDataValueT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
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