AWS IoT Device SDK C++ v2 1.14.0
AWS IoT Device SDK C++ v2
IotJobsClient.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
15
16namespace Aws
17{
18 namespace Iotjobs
19 {
20
21 class DescribeJobExecutionRequest;
22 class DescribeJobExecutionResponse;
23 class DescribeJobExecutionSubscriptionRequest;
24 class GetPendingJobExecutionsRequest;
25 class GetPendingJobExecutionsResponse;
26 class GetPendingJobExecutionsSubscriptionRequest;
27 class JobExecutionsChangedEvent;
28 class JobExecutionsChangedSubscriptionRequest;
29 class NextJobExecutionChangedEvent;
30 class NextJobExecutionChangedSubscriptionRequest;
31 class RejectedError;
32 class StartNextJobExecutionResponse;
33 class StartNextPendingJobExecutionRequest;
34 class StartNextPendingJobExecutionSubscriptionRequest;
35 class UpdateJobExecutionRequest;
36 class UpdateJobExecutionResponse;
37 class UpdateJobExecutionSubscriptionRequest;
38
39 using OnSubscribeComplete = std::function<void(int ioErr)>;
40 using OnPublishComplete = std::function<void(int ioErr)>;
41
43 std::function<void(Aws::Iotjobs::UpdateJobExecutionResponse *, int ioErr)>;
44
46 std::function<void(Aws::Iotjobs::RejectedError *, int ioErr)>;
47
49 std::function<void(Aws::Iotjobs::DescribeJobExecutionResponse *, int ioErr)>;
50
52 std::function<void(Aws::Iotjobs::RejectedError *, int ioErr)>;
53
55 std::function<void(Aws::Iotjobs::RejectedError *, int ioErr)>;
56
58 std::function<void(Aws::Iotjobs::JobExecutionsChangedEvent *, int ioErr)>;
59
61 std::function<void(Aws::Iotjobs::RejectedError *, int ioErr)>;
62
64 std::function<void(Aws::Iotjobs::NextJobExecutionChangedEvent *, int ioErr)>;
65
67 std::function<void(Aws::Iotjobs::GetPendingJobExecutionsResponse *, int ioErr)>;
68
70 std::function<void(Aws::Iotjobs::StartNextJobExecutionResponse *, int ioErr)>;
71
80 {
81 public:
82 IotJobsClient(const std::shared_ptr<Aws::Crt::Mqtt::MqttConnection> &connection);
83
84 operator bool() const noexcept;
85 int GetLastError() const noexcept;
86
106 bool SubscribeToUpdateJobExecutionAccepted(
110 const OnSubscribeComplete &onSubAck);
111
131 bool SubscribeToGetPendingJobExecutionsRejected(
135 const OnSubscribeComplete &onSubAck);
136
156 bool SubscribeToDescribeJobExecutionAccepted(
160 const OnSubscribeComplete &onSubAck);
161
181 bool SubscribeToDescribeJobExecutionRejected(
185 const OnSubscribeComplete &onSubAck);
186
206 bool SubscribeToUpdateJobExecutionRejected(
210 const OnSubscribeComplete &onSubAck);
211
231 bool SubscribeToJobExecutionsChangedEvents(
235 const OnSubscribeComplete &onSubAck);
236
256 bool SubscribeToStartNextPendingJobExecutionRejected(
260 const OnSubscribeComplete &onSubAck);
261
281 bool SubscribeToNextJobExecutionChangedEvents(
285 const OnSubscribeComplete &onSubAck);
286
306 bool SubscribeToGetPendingJobExecutionsAccepted(
310 const OnSubscribeComplete &onSubAck);
311
331 bool SubscribeToStartNextPendingJobExecutionAccepted(
335 const OnSubscribeComplete &onSubAck);
336
355 bool PublishDescribeJobExecution(
358 const OnPublishComplete &onPubAck);
359
378 bool PublishGetPendingJobExecutions(
381 const OnPublishComplete &onPubAck);
382
403 bool PublishUpdateJobExecution(
406 const OnPublishComplete &onPubAck);
407
426 bool PublishStartNextPendingJobExecution(
429 const OnPublishComplete &onPubAck);
430
431 private:
432 std::shared_ptr<Aws::Crt::Mqtt::MqttConnection> m_connection;
433 };
434
435 } // namespace Iotjobs
436
437} // namespace Aws
Definition: DescribeJobExecutionRequest.h:24
Definition: DescribeJobExecutionResponse.h:27
Definition: DescribeJobExecutionSubscriptionRequest.h:24
Definition: GetPendingJobExecutionsRequest.h:24
Definition: GetPendingJobExecutionsResponse.h:27
Definition: GetPendingJobExecutionsSubscriptionRequest.h:24
Definition: IotJobsClient.h:80
Definition: JobExecutionsChangedEvent.h:28
Definition: JobExecutionsChangedSubscriptionRequest.h:24
Definition: NextJobExecutionChangedEvent.h:30
Definition: NextJobExecutionChangedSubscriptionRequest.h:24
Definition: RejectedError.h:28
Definition: StartNextJobExecutionResponse.h:27
Definition: StartNextPendingJobExecutionRequest.h:24
Definition: StartNextPendingJobExecutionSubscriptionRequest.h:24
Definition: UpdateJobExecutionRequest.h:26
Definition: UpdateJobExecutionResponse.h:28
Definition: UpdateJobExecutionSubscriptionRequest.h:24
#define AWS_IOTJOBS_API
Definition: Exports.h:20
aws_mqtt_qos QOS
Definition: Types.h:42
std::function< void(Aws::Iotjobs::StartNextJobExecutionResponse *, int ioErr)> OnSubscribeToStartNextPendingJobExecutionAcceptedResponse
Definition: IotJobsClient.h:70
std::function< void(int ioErr)> OnSubscribeComplete
Definition: IotJobsClient.h:39
std::function< void(Aws::Iotjobs::DescribeJobExecutionResponse *, int ioErr)> OnSubscribeToDescribeJobExecutionAcceptedResponse
Definition: IotJobsClient.h:49
std::function< void(Aws::Iotjobs::UpdateJobExecutionResponse *, int ioErr)> OnSubscribeToUpdateJobExecutionAcceptedResponse
Definition: IotJobsClient.h:43
std::function< void(int ioErr)> OnPublishComplete
Definition: IotJobsClient.h:40
std::function< void(Aws::Iotjobs::GetPendingJobExecutionsResponse *, int ioErr)> OnSubscribeToGetPendingJobExecutionsAcceptedResponse
Definition: IotJobsClient.h:67
std::function< void(Aws::Iotjobs::RejectedError *, int ioErr)> OnSubscribeToDescribeJobExecutionRejectedResponse
Definition: IotJobsClient.h:52
std::function< void(Aws::Iotjobs::JobExecutionsChangedEvent *, int ioErr)> OnSubscribeToJobExecutionsChangedEventsResponse
Definition: IotJobsClient.h:58
std::function< void(Aws::Iotjobs::NextJobExecutionChangedEvent *, int ioErr)> OnSubscribeToNextJobExecutionChangedEventsResponse
Definition: IotJobsClient.h:64
std::function< void(Aws::Iotjobs::RejectedError *, int ioErr)> OnSubscribeToGetPendingJobExecutionsRejectedResponse
Definition: IotJobsClient.h:46
std::function< void(Aws::Iotjobs::RejectedError *, int ioErr)> OnSubscribeToUpdateJobExecutionRejectedResponse
Definition: IotJobsClient.h:55
std::function< void(Aws::Iotjobs::RejectedError *, int ioErr)> OnSubscribeToStartNextPendingJobExecutionRejectedResponse
Definition: IotJobsClient.h:61
Definition: Api.h:17