AWS IoT Device SDK C++ v2: jobs/include/aws/iotjobs/IotJobsClient.h Source File

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
9#include <aws/iotjobs/Exports.h>
10
11#include <aws/crt/StlAllocator.h>
12#include <aws/crt/Types.h>
13
14#include <aws/crt/mqtt/MqttClient.h>
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
42 using OnSubscribeToUpdateJobExecutionAcceptedResponse =
43 std::function<void(Aws::Iotjobs::UpdateJobExecutionResponse *, int ioErr)>;
44
45 using OnSubscribeToGetPendingJobExecutionsRejectedResponse =
46 std::function<void(Aws::Iotjobs::RejectedError *, int ioErr)>;
47
48 using OnSubscribeToDescribeJobExecutionAcceptedResponse =
49 std::function<void(Aws::Iotjobs::DescribeJobExecutionResponse *, int ioErr)>;
50
51 using OnSubscribeToDescribeJobExecutionRejectedResponse =
52 std::function<void(Aws::Iotjobs::RejectedError *, int ioErr)>;
53
54 using OnSubscribeToUpdateJobExecutionRejectedResponse =
55 std::function<void(Aws::Iotjobs::RejectedError *, int ioErr)>;
56
57 using OnSubscribeToJobExecutionsChangedEventsResponse =
58 std::function<void(Aws::Iotjobs::JobExecutionsChangedEvent *, int ioErr)>;
59
60 using OnSubscribeToStartNextPendingJobExecutionRejectedResponse =
61 std::function<void(Aws::Iotjobs::RejectedError *, int ioErr)>;
62
63 using OnSubscribeToNextJobExecutionChangedEventsResponse =
64 std::function<void(Aws::Iotjobs::NextJobExecutionChangedEvent *, int ioErr)>;
65
66 using OnSubscribeToGetPendingJobExecutionsAcceptedResponse =
67 std::function<void(Aws::Iotjobs::GetPendingJobExecutionsResponse *, int ioErr)>;
68
69 using OnSubscribeToStartNextPendingJobExecutionAcceptedResponse =
70 std::function<void(Aws::Iotjobs::StartNextJobExecutionResponse *, int ioErr)>;
71
79 class AWS_IOTJOBS_API IotJobsClient final
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(
107 const Aws::Iotjobs::UpdateJobExecutionSubscriptionRequest &request,
108 Aws::Crt::Mqtt::QOS qos,
109 const OnSubscribeToUpdateJobExecutionAcceptedResponse &handler,
110 const OnSubscribeComplete &onSubAck);
111
131 bool SubscribeToGetPendingJobExecutionsRejected(
132 const Aws::Iotjobs::GetPendingJobExecutionsSubscriptionRequest &request,
133 Aws::Crt::Mqtt::QOS qos,
134 const OnSubscribeToGetPendingJobExecutionsRejectedResponse &handler,
135 const OnSubscribeComplete &onSubAck);
136
156 bool SubscribeToDescribeJobExecutionAccepted(
157 const Aws::Iotjobs::DescribeJobExecutionSubscriptionRequest &request,
158 Aws::Crt::Mqtt::QOS qos,
159 const OnSubscribeToDescribeJobExecutionAcceptedResponse &handler,
160 const OnSubscribeComplete &onSubAck);
161
181 bool SubscribeToDescribeJobExecutionRejected(
182 const Aws::Iotjobs::DescribeJobExecutionSubscriptionRequest &request,
183 Aws::Crt::Mqtt::QOS qos,
184 const OnSubscribeToDescribeJobExecutionRejectedResponse &handler,
185 const OnSubscribeComplete &onSubAck);
186
206 bool SubscribeToUpdateJobExecutionRejected(
207 const Aws::Iotjobs::UpdateJobExecutionSubscriptionRequest &request,
208 Aws::Crt::Mqtt::QOS qos,
209 const OnSubscribeToUpdateJobExecutionRejectedResponse &handler,
210 const OnSubscribeComplete &onSubAck);
211
231 bool SubscribeToJobExecutionsChangedEvents(
232 const Aws::Iotjobs::JobExecutionsChangedSubscriptionRequest &request,
233 Aws::Crt::Mqtt::QOS qos,
234 const OnSubscribeToJobExecutionsChangedEventsResponse &handler,
235 const OnSubscribeComplete &onSubAck);
236
256 bool SubscribeToStartNextPendingJobExecutionRejected(
257 const Aws::Iotjobs::StartNextPendingJobExecutionSubscriptionRequest &request,
258 Aws::Crt::Mqtt::QOS qos,
259 const OnSubscribeToStartNextPendingJobExecutionRejectedResponse &handler,
260 const OnSubscribeComplete &onSubAck);
261
281 bool SubscribeToNextJobExecutionChangedEvents(
282 const Aws::Iotjobs::NextJobExecutionChangedSubscriptionRequest &request,
283 Aws::Crt::Mqtt::QOS qos,
284 const OnSubscribeToNextJobExecutionChangedEventsResponse &handler,
285 const OnSubscribeComplete &onSubAck);
286
306 bool SubscribeToGetPendingJobExecutionsAccepted(
307 const Aws::Iotjobs::GetPendingJobExecutionsSubscriptionRequest &request,
308 Aws::Crt::Mqtt::QOS qos,
309 const OnSubscribeToGetPendingJobExecutionsAcceptedResponse &handler,
310 const OnSubscribeComplete &onSubAck);
311
331 bool SubscribeToStartNextPendingJobExecutionAccepted(
332 const Aws::Iotjobs::StartNextPendingJobExecutionSubscriptionRequest &request,
333 Aws::Crt::Mqtt::QOS qos,
334 const OnSubscribeToStartNextPendingJobExecutionAcceptedResponse &handler,
335 const OnSubscribeComplete &onSubAck);
336
355 bool PublishDescribeJobExecution(
356 const Aws::Iotjobs::DescribeJobExecutionRequest &request,
357 Aws::Crt::Mqtt::QOS qos,
358 const OnPublishComplete &onPubAck);
359
378 bool PublishGetPendingJobExecutions(
379 const Aws::Iotjobs::GetPendingJobExecutionsRequest &request,
380 Aws::Crt::Mqtt::QOS qos,
381 const OnPublishComplete &onPubAck);
382
403 bool PublishUpdateJobExecution(
404 const Aws::Iotjobs::UpdateJobExecutionRequest &request,
405 Aws::Crt::Mqtt::QOS qos,
406 const OnPublishComplete &onPubAck);
407
426 bool PublishStartNextPendingJobExecution(
427 const Aws::Iotjobs::StartNextPendingJobExecutionRequest &request,
428 Aws::Crt::Mqtt::QOS qos,
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
StlAllocator.h
Types.h
Aws::Iotjobs::DescribeJobExecutionRequest
Definition: DescribeJobExecutionRequest.h:24
Aws::Iotjobs::DescribeJobExecutionResponse
Definition: DescribeJobExecutionResponse.h:27
Aws::Iotjobs::DescribeJobExecutionSubscriptionRequest
Definition: DescribeJobExecutionSubscriptionRequest.h:24
Aws::Iotjobs::GetPendingJobExecutionsRequest
Definition: GetPendingJobExecutionsRequest.h:24
Aws::Iotjobs::GetPendingJobExecutionsResponse
Definition: GetPendingJobExecutionsResponse.h:27
Aws::Iotjobs::GetPendingJobExecutionsSubscriptionRequest
Definition: GetPendingJobExecutionsSubscriptionRequest.h:24
Aws::Iotjobs::IotJobsClient
Definition: IotJobsClient.h:80
Aws::Iotjobs::JobExecutionsChangedEvent
Definition: JobExecutionsChangedEvent.h:28
Aws::Iotjobs::JobExecutionsChangedSubscriptionRequest
Definition: JobExecutionsChangedSubscriptionRequest.h:24
Aws::Iotjobs::NextJobExecutionChangedEvent
Definition: NextJobExecutionChangedEvent.h:30
Aws::Iotjobs::NextJobExecutionChangedSubscriptionRequest
Definition: NextJobExecutionChangedSubscriptionRequest.h:24
Aws::Iotjobs::RejectedError
Definition: RejectedError.h:28
Aws::Iotjobs::StartNextJobExecutionResponse
Definition: StartNextJobExecutionResponse.h:27
Aws::Iotjobs::StartNextPendingJobExecutionRequest
Definition: StartNextPendingJobExecutionRequest.h:24
Aws::Iotjobs::StartNextPendingJobExecutionSubscriptionRequest
Definition: StartNextPendingJobExecutionSubscriptionRequest.h:24
Aws::Iotjobs::UpdateJobExecutionRequest
Definition: UpdateJobExecutionRequest.h:26
Aws::Iotjobs::UpdateJobExecutionResponse
Definition: UpdateJobExecutionResponse.h:28
Aws::Iotjobs::UpdateJobExecutionSubscriptionRequest
Definition: UpdateJobExecutionSubscriptionRequest.h:24
MqttClient.h
Exports.h
AWS_IOTJOBS_API
#define AWS_IOTJOBS_API
Definition: Exports.h:20
Aws::Crt::Mqtt::QOS
aws_mqtt_qos QOS
Definition: Types.h:42
Aws::Iotjobs::OnSubscribeToStartNextPendingJobExecutionAcceptedResponse
std::function< void(Aws::Iotjobs::StartNextJobExecutionResponse *, int ioErr)> OnSubscribeToStartNextPendingJobExecutionAcceptedResponse
Definition: IotJobsClient.h:70
Aws::Iotjobs::OnSubscribeComplete
std::function< void(int ioErr)> OnSubscribeComplete
Definition: IotJobsClient.h:39
Aws::Iotjobs::OnSubscribeToDescribeJobExecutionAcceptedResponse
std::function< void(Aws::Iotjobs::DescribeJobExecutionResponse *, int ioErr)> OnSubscribeToDescribeJobExecutionAcceptedResponse
Definition: IotJobsClient.h:49
Aws::Iotjobs::OnSubscribeToUpdateJobExecutionAcceptedResponse
std::function< void(Aws::Iotjobs::UpdateJobExecutionResponse *, int ioErr)> OnSubscribeToUpdateJobExecutionAcceptedResponse
Definition: IotJobsClient.h:43
Aws::Iotjobs::OnPublishComplete
std::function< void(int ioErr)> OnPublishComplete
Definition: IotJobsClient.h:40
Aws::Iotjobs::OnSubscribeToGetPendingJobExecutionsAcceptedResponse
std::function< void(Aws::Iotjobs::GetPendingJobExecutionsResponse *, int ioErr)> OnSubscribeToGetPendingJobExecutionsAcceptedResponse
Definition: IotJobsClient.h:67
Aws::Iotjobs::OnSubscribeToDescribeJobExecutionRejectedResponse
std::function< void(Aws::Iotjobs::RejectedError *, int ioErr)> OnSubscribeToDescribeJobExecutionRejectedResponse
Definition: IotJobsClient.h:52
Aws::Iotjobs::OnSubscribeToJobExecutionsChangedEventsResponse
std::function< void(Aws::Iotjobs::JobExecutionsChangedEvent *, int ioErr)> OnSubscribeToJobExecutionsChangedEventsResponse
Definition: IotJobsClient.h:58
Aws::Iotjobs::OnSubscribeToNextJobExecutionChangedEventsResponse
std::function< void(Aws::Iotjobs::NextJobExecutionChangedEvent *, int ioErr)> OnSubscribeToNextJobExecutionChangedEventsResponse
Definition: IotJobsClient.h:64
Aws::Iotjobs::OnSubscribeToGetPendingJobExecutionsRejectedResponse
std::function< void(Aws::Iotjobs::RejectedError *, int ioErr)> OnSubscribeToGetPendingJobExecutionsRejectedResponse
Definition: IotJobsClient.h:46
Aws::Iotjobs::OnSubscribeToUpdateJobExecutionRejectedResponse
std::function< void(Aws::Iotjobs::RejectedError *, int ioErr)> OnSubscribeToUpdateJobExecutionRejectedResponse
Definition: IotJobsClient.h:55
Aws::Iotjobs::OnSubscribeToStartNextPendingJobExecutionRejectedResponse
std::function< void(Aws::Iotjobs::RejectedError *, int ioErr)> OnSubscribeToStartNextPendingJobExecutionRejectedResponse
Definition: IotJobsClient.h:61
Aws
Definition: Api.h:17