AWS SDK for C++  1.9.108
AWS SDK for C++
IoTJobsDataPlaneClient.h
Go to the documentation of this file.
1 
6 #pragma once
20 #include <future>
21 #include <functional>
22 
23 namespace Aws
24 {
25 
26 namespace Http
27 {
28  class HttpClient;
29  class HttpClientFactory;
30 } // namespace Http
31 
32 namespace Utils
33 {
34  template< typename R, typename E> class Outcome;
35 namespace Threading
36 {
37  class Executor;
38 } // namespace Threading
39 } // namespace Utils
40 
41 namespace Auth
42 {
43  class AWSCredentials;
44  class AWSCredentialsProvider;
45 } // namespace Auth
46 
47 namespace Client
48 {
49  class RetryStrategy;
50 } // namespace Client
51 
52 namespace IoTJobsDataPlane
53 {
54 
55 namespace Model
56 {
61 
66 
67  typedef std::future<DescribeJobExecutionOutcome> DescribeJobExecutionOutcomeCallable;
68  typedef std::future<GetPendingJobExecutionsOutcome> GetPendingJobExecutionsOutcomeCallable;
69  typedef std::future<StartNextPendingJobExecutionOutcome> StartNextPendingJobExecutionOutcomeCallable;
70  typedef std::future<UpdateJobExecutionOutcome> UpdateJobExecutionOutcomeCallable;
71 } // namespace Model
72 
74 
75  typedef std::function<void(const IoTJobsDataPlaneClient*, const Model::DescribeJobExecutionRequest&, const Model::DescribeJobExecutionOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DescribeJobExecutionResponseReceivedHandler;
76  typedef std::function<void(const IoTJobsDataPlaneClient*, const Model::GetPendingJobExecutionsRequest&, const Model::GetPendingJobExecutionsOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > GetPendingJobExecutionsResponseReceivedHandler;
77  typedef std::function<void(const IoTJobsDataPlaneClient*, const Model::StartNextPendingJobExecutionRequest&, const Model::StartNextPendingJobExecutionOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > StartNextPendingJobExecutionResponseReceivedHandler;
78  typedef std::function<void(const IoTJobsDataPlaneClient*, const Model::UpdateJobExecutionRequest&, const Model::UpdateJobExecutionOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > UpdateJobExecutionResponseReceivedHandler;
79 
96  {
97  public:
99 
105 
111 
116  IoTJobsDataPlaneClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
118 
120 
121 
128 
137 
145  virtual void DescribeJobExecutionAsync(const Model::DescribeJobExecutionRequest& request, const DescribeJobExecutionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
146 
154 
164 
173  virtual void GetPendingJobExecutionsAsync(const Model::GetPendingJobExecutionsRequest& request, const GetPendingJobExecutionsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
174 
182 
192 
201  virtual void StartNextPendingJobExecutionAsync(const Model::StartNextPendingJobExecutionRequest& request, const StartNextPendingJobExecutionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
202 
209 
218 
226  virtual void UpdateJobExecutionAsync(const Model::UpdateJobExecutionRequest& request, const UpdateJobExecutionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
227 
228 
229  void OverrideEndpoint(const Aws::String& endpoint);
230  private:
231  void init(const Aws::Client::ClientConfiguration& clientConfiguration);
232  void DescribeJobExecutionAsyncHelper(const Model::DescribeJobExecutionRequest& request, const DescribeJobExecutionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
233  void GetPendingJobExecutionsAsyncHelper(const Model::GetPendingJobExecutionsRequest& request, const GetPendingJobExecutionsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
234  void StartNextPendingJobExecutionAsyncHelper(const Model::StartNextPendingJobExecutionRequest& request, const StartNextPendingJobExecutionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
235  void UpdateJobExecutionAsyncHelper(const Model::UpdateJobExecutionRequest& request, const UpdateJobExecutionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
236 
237  Aws::String m_uri;
238  Aws::String m_configScheme;
239  std::shared_ptr<Aws::Utils::Threading::Executor> m_executor;
240  };
241 
242 } // namespace IoTJobsDataPlane
243 } // namespace Aws
Aws::IoTJobsDataPlane::IoTJobsDataPlaneClient::UpdateJobExecutionAsync
virtual void UpdateJobExecutionAsync(const Model::UpdateJobExecutionRequest &request, const UpdateJobExecutionResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Aws::DirectoryService::Model::LDAPSType::NOT_SET
@ NOT_SET
Aws::IoTJobsDataPlane::Model::UpdateJobExecutionRequest
Definition: UpdateJobExecutionRequest.h:24
AWSError.h
IoTJobsDataPlaneErrors.h
Aws::IoTJobsDataPlane::IoTJobsDataPlaneClient::StartNextPendingJobExecutionCallable
virtual Model::StartNextPendingJobExecutionOutcomeCallable StartNextPendingJobExecutionCallable(const Model::StartNextPendingJobExecutionRequest &request) const
Aws::IoTJobsDataPlane::StartNextPendingJobExecutionResponseReceivedHandler
std::function< void(const IoTJobsDataPlaneClient *, const Model::StartNextPendingJobExecutionRequest &, const Model::StartNextPendingJobExecutionOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > StartNextPendingJobExecutionResponseReceivedHandler
Definition: IoTJobsDataPlaneClient.h:77
Aws::IoTJobsDataPlane::Model::GetPendingJobExecutionsOutcome
Aws::Utils::Outcome< GetPendingJobExecutionsResult, IoTJobsDataPlaneError > GetPendingJobExecutionsOutcome
Definition: IoTJobsDataPlaneClient.h:63
Aws::IoTJobsDataPlane::IoTJobsDataPlaneClient::IoTJobsDataPlaneClient
IoTJobsDataPlaneClient(const Aws::Client::ClientConfiguration &clientConfiguration=Aws::Client::ClientConfiguration())
Aws::IoTJobsDataPlane::IoTJobsDataPlaneClient::StartNextPendingJobExecution
virtual Model::StartNextPendingJobExecutionOutcome StartNextPendingJobExecution(const Model::StartNextPendingJobExecutionRequest &request) const
Aws::IoTJobsDataPlane::GetPendingJobExecutionsResponseReceivedHandler
std::function< void(const IoTJobsDataPlaneClient *, const Model::GetPendingJobExecutionsRequest &, const Model::GetPendingJobExecutionsOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > GetPendingJobExecutionsResponseReceivedHandler
Definition: IoTJobsDataPlaneClient.h:76
Aws::IoTJobsDataPlane::IoTJobsDataPlaneClient::GetPendingJobExecutions
virtual Model::GetPendingJobExecutionsOutcome GetPendingJobExecutions(const Model::GetPendingJobExecutionsRequest &request) const
Aws::IoTJobsDataPlane::Model::GetPendingJobExecutionsRequest
Definition: GetPendingJobExecutionsRequest.h:22
Aws::IoTJobsDataPlane::Model::DescribeJobExecutionOutcome
Aws::Utils::Outcome< DescribeJobExecutionResult, IoTJobsDataPlaneError > DescribeJobExecutionOutcome
Definition: IoTJobsDataPlaneClient.h:60
AsyncCallerContext.h
Aws::IoTJobsDataPlane::IoTJobsDataPlaneClient::UpdateJobExecution
virtual Model::UpdateJobExecutionOutcome UpdateJobExecution(const Model::UpdateJobExecutionRequest &request) const
Aws::IoTJobsDataPlane::UpdateJobExecutionResponseReceivedHandler
std::function< void(const IoTJobsDataPlaneClient *, const Model::UpdateJobExecutionRequest &, const Model::UpdateJobExecutionOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > UpdateJobExecutionResponseReceivedHandler
Definition: IoTJobsDataPlaneClient.h:78
Aws::IoTJobsDataPlane::Model::UpdateJobExecutionOutcomeCallable
std::future< UpdateJobExecutionOutcome > UpdateJobExecutionOutcomeCallable
Definition: IoTJobsDataPlaneClient.h:70
Aws::IoTJobsDataPlane::Model::UpdateJobExecutionOutcome
Aws::Utils::Outcome< UpdateJobExecutionResult, IoTJobsDataPlaneError > UpdateJobExecutionOutcome
Definition: IoTJobsDataPlaneClient.h:65
Aws::IoTJobsDataPlane::DescribeJobExecutionResponseReceivedHandler
std::function< void(const IoTJobsDataPlaneClient *, const Model::DescribeJobExecutionRequest &, const Model::DescribeJobExecutionOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > DescribeJobExecutionResponseReceivedHandler
Definition: IoTJobsDataPlaneClient.h:73
Aws::IoTJobsDataPlane::Model::StartNextPendingJobExecutionOutcomeCallable
std::future< StartNextPendingJobExecutionOutcome > StartNextPendingJobExecutionOutcomeCallable
Definition: IoTJobsDataPlaneClient.h:69
Aws::Client::ClientConfiguration
Definition: ClientConfiguration.h:53
Aws::IoTJobsDataPlane::Model::StartNextPendingJobExecutionOutcome
Aws::Utils::Outcome< StartNextPendingJobExecutionResult, IoTJobsDataPlaneError > StartNextPendingJobExecutionOutcome
Definition: IoTJobsDataPlaneClient.h:64
Aws::IoTJobsDataPlane::IoTJobsDataPlaneClient::StartNextPendingJobExecutionAsync
virtual void StartNextPendingJobExecutionAsync(const Model::StartNextPendingJobExecutionRequest &request, const StartNextPendingJobExecutionResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Aws::IoTJobsDataPlane::IoTJobsDataPlaneClient::GetPendingJobExecutionsAsync
virtual void GetPendingJobExecutionsAsync(const Model::GetPendingJobExecutionsRequest &request, const GetPendingJobExecutionsResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Aws::IoTJobsDataPlane::IoTJobsDataPlaneClient::~IoTJobsDataPlaneClient
virtual ~IoTJobsDataPlaneClient()
Aws::Auth::AWSCredentials
Definition: AWSCredentials.h:19
AWSString.h
Aws::IoTJobsDataPlane::Model::GetPendingJobExecutionsOutcomeCallable
std::future< GetPendingJobExecutionsOutcome > GetPendingJobExecutionsOutcomeCallable
Definition: IoTJobsDataPlaneClient.h:68
Aws::IoTJobsDataPlane::Model::DescribeJobExecutionRequest
Definition: DescribeJobExecutionRequest.h:26
Aws::Client::AWSJsonClient
Definition: AWSClient.h:338
Aws::IoTJobsDataPlane::IoTJobsDataPlaneClient::IoTJobsDataPlaneClient
IoTJobsDataPlaneClient(const Aws::Auth::AWSCredentials &credentials, const Aws::Client::ClientConfiguration &clientConfiguration=Aws::Client::ClientConfiguration())
UpdateJobExecutionResult.h
Aws::IoTJobsDataPlane::Model::DescribeJobExecutionOutcomeCallable
std::future< DescribeJobExecutionOutcome > DescribeJobExecutionOutcomeCallable
Definition: IoTJobsDataPlaneClient.h:67
Aws::IoTJobsDataPlane::IoTJobsDataPlaneClient::DescribeJobExecutionCallable
virtual Model::DescribeJobExecutionOutcomeCallable DescribeJobExecutionCallable(const Model::DescribeJobExecutionRequest &request) const
Aws::IoTJobsDataPlane::IoTJobsDataPlaneClient::BASECLASS
Aws::Client::AWSJsonClient BASECLASS
Definition: IoTJobsDataPlaneClient.h:98
ClientConfiguration.h
DescribeJobExecutionResult.h
Aws
Definition: AccessManagementClient.h:15
HttpTypes.h
AWS_IOTJOBSDATAPLANE_API
#define AWS_IOTJOBSDATAPLANE_API
Definition: IoTJobsDataPlane_EXPORTS.h:28
Aws::IoTJobsDataPlane::IoTJobsDataPlaneClient::IoTJobsDataPlaneClient
IoTJobsDataPlaneClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, const Aws::Client::ClientConfiguration &clientConfiguration=Aws::Client::ClientConfiguration())
Aws::IoTJobsDataPlane::IoTJobsDataPlaneClient::OverrideEndpoint
void OverrideEndpoint(const Aws::String &endpoint)
Aws::Utils::Outcome
Definition: Outcome.h:26
Aws::IoTJobsDataPlane::IoTJobsDataPlaneClient::DescribeJobExecutionAsync
virtual void DescribeJobExecutionAsync(const Model::DescribeJobExecutionRequest &request, const DescribeJobExecutionResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
GetPendingJobExecutionsResult.h
AWSClient.h
Aws::IoTJobsDataPlane::IoTJobsDataPlaneClient
Definition: IoTJobsDataPlaneClient.h:96
IoTJobsDataPlane_EXPORTS.h
Aws::IoTJobsDataPlane::IoTJobsDataPlaneClient::UpdateJobExecutionCallable
virtual Model::UpdateJobExecutionOutcomeCallable UpdateJobExecutionCallable(const Model::UpdateJobExecutionRequest &request) const
Aws::IoTJobsDataPlane::IoTJobsDataPlaneClient::DescribeJobExecution
virtual Model::DescribeJobExecutionOutcome DescribeJobExecution(const Model::DescribeJobExecutionRequest &request) const
Aws::IoTJobsDataPlane::IoTJobsDataPlaneClient::GetPendingJobExecutionsCallable
virtual Model::GetPendingJobExecutionsOutcomeCallable GetPendingJobExecutionsCallable(const Model::GetPendingJobExecutionsRequest &request) const
StartNextPendingJobExecutionResult.h
JsonSerializer.h
Aws::IoTJobsDataPlane::Model::StartNextPendingJobExecutionRequest
Definition: StartNextPendingJobExecutionRequest.h:23