AWS IoT Device SDK C++ v2 1.44.2
AWS IoT Device SDK C++ v2
Loading...
Searching...
No Matches
IotIdentityClient.h
Go to the documentation of this file.
1#pragma once
2
3/* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4 * SPDX-License-Identifier: Apache-2.0.
5 *
6 * This file is generated
7 */
8
10
12#include <aws/crt/Types.h>
13
16
17namespace Aws
18{
19 namespace Iotidentity
20 {
21
28 class ErrorResponse;
32
33 using OnSubscribeComplete = std::function<void(int ioErr)>;
34 using OnPublishComplete = std::function<void(int ioErr)>;
35
37 std::function<void(Aws::Iotidentity::CreateCertificateFromCsrResponse *, int ioErr)>;
38
40 std::function<void(Aws::Iotidentity::ErrorResponse *, int ioErr)>;
41
43 std::function<void(Aws::Iotidentity::CreateKeysAndCertificateResponse *, int ioErr)>;
44
46 std::function<void(Aws::Iotidentity::ErrorResponse *, int ioErr)>;
47
49 std::function<void(Aws::Iotidentity::RegisterThingResponse *, int ioErr)>;
50
52 std::function<void(Aws::Iotidentity::ErrorResponse *, int ioErr)>;
53
61 {
62 public:
63 IotIdentityClient(const std::shared_ptr<Aws::Crt::Mqtt::MqttConnection> &connection);
64 IotIdentityClient(const std::shared_ptr<Aws::Crt::Mqtt5::Mqtt5Client> &mqtt5Client);
65
66 operator bool() const noexcept;
67 int GetLastError() const noexcept;
68
92 const OnSubscribeComplete &onSubAck);
93
117 const OnSubscribeComplete &onSubAck);
118
142 const OnSubscribeComplete &onSubAck);
143
167 const OnSubscribeComplete &onSubAck);
168
192 const OnSubscribeComplete &onSubAck);
193
217 const OnSubscribeComplete &onSubAck);
218
243 const OnPublishComplete &onPubAck);
244
269 const OnPublishComplete &onPubAck);
270
292 const OnPublishComplete &onPubAck);
293
294 private:
295 std::shared_ptr<Aws::Crt::Mqtt::MqttConnection> m_connection;
296 };
297
298 } // namespace Iotidentity
299
300} // namespace Aws
Definition CreateCertificateFromCsrRequest.h:24
Definition CreateCertificateFromCsrResponse.h:24
Definition CreateCertificateFromCsrSubscriptionRequest.h:24
Definition CreateKeysAndCertificateRequest.h:24
Definition CreateKeysAndCertificateResponse.h:24
Definition CreateKeysAndCertificateSubscriptionRequest.h:24
Definition ErrorResponse.h:24
bool SubscribeToCreateCertificateFromCsrAccepted(const Aws::Iotidentity::CreateCertificateFromCsrSubscriptionRequest &request, Aws::Crt::Mqtt::QOS qos, const OnSubscribeToCreateCertificateFromCsrAcceptedResponse &handler, const OnSubscribeComplete &onSubAck)
Definition IotIdentityClient.cpp:44
bool PublishRegisterThing(const Aws::Iotidentity::RegisterThingRequest &request, Aws::Crt::Mqtt::QOS qos, const OnPublishComplete &onPubAck)
Definition IotIdentityClient.cpp:362
bool SubscribeToCreateCertificateFromCsrRejected(const Aws::Iotidentity::CreateCertificateFromCsrSubscriptionRequest &request, Aws::Crt::Mqtt::QOS qos, const OnSubscribeToCreateCertificateFromCsrRejectedResponse &handler, const OnSubscribeComplete &onSubAck)
Definition IotIdentityClient.cpp:89
IotIdentityClient(const std::shared_ptr< Aws::Crt::Mqtt::MqttConnection > &connection)
Definition IotIdentityClient.cpp:24
bool SubscribeToRegisterThingAccepted(const Aws::Iotidentity::RegisterThingSubscriptionRequest &request, Aws::Crt::Mqtt::QOS qos, const OnSubscribeToRegisterThingAcceptedResponse &handler, const OnSubscribeComplete &onSubAck)
Definition IotIdentityClient.cpp:224
bool SubscribeToCreateKeysAndCertificateRejected(const Aws::Iotidentity::CreateKeysAndCertificateSubscriptionRequest &request, Aws::Crt::Mqtt::QOS qos, const OnSubscribeToCreateKeysAndCertificateRejectedResponse &handler, const OnSubscribeComplete &onSubAck)
Definition IotIdentityClient.cpp:179
bool SubscribeToCreateKeysAndCertificateAccepted(const Aws::Iotidentity::CreateKeysAndCertificateSubscriptionRequest &request, Aws::Crt::Mqtt::QOS qos, const OnSubscribeToCreateKeysAndCertificateAcceptedResponse &handler, const OnSubscribeComplete &onSubAck)
Definition IotIdentityClient.cpp:134
bool PublishCreateKeysAndCertificate(const Aws::Iotidentity::CreateKeysAndCertificateRequest &request, Aws::Crt::Mqtt::QOS qos, const OnPublishComplete &onPubAck)
Definition IotIdentityClient.cpp:338
bool SubscribeToRegisterThingRejected(const Aws::Iotidentity::RegisterThingSubscriptionRequest &request, Aws::Crt::Mqtt::QOS qos, const OnSubscribeToRegisterThingRejectedResponse &handler, const OnSubscribeComplete &onSubAck)
Definition IotIdentityClient.cpp:269
int GetLastError() const noexcept
Definition IotIdentityClient.cpp:39
bool PublishCreateCertificateFromCsr(const Aws::Iotidentity::CreateCertificateFromCsrRequest &request, Aws::Crt::Mqtt::QOS qos, const OnPublishComplete &onPubAck)
Definition IotIdentityClient.cpp:314
Definition RegisterThingRequest.h:24
Definition RegisterThingResponse.h:24
Definition RegisterThingSubscriptionRequest.h:24
#define AWS_IOTIDENTITY_API
Definition Exports.h:20
aws_mqtt_qos QOS
Definition Types.h:40
Definition CreateCertificateFromCsrRequest.h:17
std::function< void(Aws::Iotidentity::CreateKeysAndCertificateResponse *, int ioErr)> OnSubscribeToCreateKeysAndCertificateAcceptedResponse
Definition IotIdentityClient.h:42
std::function< void(Aws::Iotidentity::ErrorResponse *, int ioErr)> OnSubscribeToCreateCertificateFromCsrRejectedResponse
Definition IotIdentityClient.h:39
std::function< void(Aws::Iotidentity::CreateCertificateFromCsrResponse *, int ioErr)> OnSubscribeToCreateCertificateFromCsrAcceptedResponse
Definition IotIdentityClient.h:36
std::function< void(Aws::Iotidentity::ErrorResponse *, int ioErr)> OnSubscribeToRegisterThingRejectedResponse
Definition IotIdentityClient.h:51
std::function< void(int ioErr)> OnSubscribeComplete
Definition IotIdentityClient.h:33
std::function< void(int ioErr)> OnPublishComplete
Definition IotIdentityClient.h:34
std::function< void(Aws::Iotidentity::ErrorResponse *, int ioErr)> OnSubscribeToCreateKeysAndCertificateRejectedResponse
Definition IotIdentityClient.h:45
std::function< void(Aws::Iotidentity::RegisterThingResponse *, int ioErr)> OnSubscribeToRegisterThingAcceptedResponse
Definition IotIdentityClient.h:48
Definition Allocator.h:11