AWS SDK for C++

AWS SDK for C++ Version 1.11.637

Loading...
Searching...
No Matches
IoTDataPlaneClient.h
1
6#pragma once
7#include <aws/iot-data/IoTDataPlane_EXPORTS.h>
8#include <aws/core/client/ClientConfiguration.h>
9#include <aws/core/client/AWSClient.h>
10#include <aws/core/client/AWSClientAsyncCRTP.h>
11#include <aws/core/utils/json/JsonSerializer.h>
12#include <aws/iot-data/IoTDataPlaneServiceClientModel.h>
13
14namespace Aws
15{
16namespace IoTDataPlane
17{
32 class AWS_IOTDATAPLANE_API IoTDataPlaneClient : public Aws::Client::AWSJsonClient, public Aws::Client::ClientWithAsyncTemplateMethods<IoTDataPlaneClient>
33 {
34 public:
36 static const char* GetServiceName();
37 static const char* GetAllocationTag();
38
41
47 std::shared_ptr<IoTDataPlaneEndpointProviderBase> endpointProvider = nullptr);
48
54 std::shared_ptr<IoTDataPlaneEndpointProviderBase> endpointProvider = nullptr,
56
61 IoTDataPlaneClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
62 std::shared_ptr<IoTDataPlaneEndpointProviderBase> endpointProvider = nullptr,
64
65
66 /* Legacy constructors due deprecation */
72
78 const Aws::Client::ClientConfiguration& clientConfiguration);
79
84 IoTDataPlaneClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
85 const Aws::Client::ClientConfiguration& clientConfiguration);
86
87 /* End of legacy constructors due deprecation */
89
99
103 template<typename DeleteConnectionRequestT = Model::DeleteConnectionRequest>
104 Model::DeleteConnectionOutcomeCallable DeleteConnectionCallable(const DeleteConnectionRequestT& request) const
105 {
106 return SubmitCallable(&IoTDataPlaneClient::DeleteConnection, request);
107 }
108
112 template<typename DeleteConnectionRequestT = Model::DeleteConnectionRequest>
113 void DeleteConnectionAsync(const DeleteConnectionRequestT& request, const DeleteConnectionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
114 {
115 return SubmitAsync(&IoTDataPlaneClient::DeleteConnection, request, handler, context);
116 }
117
129
133 template<typename DeleteThingShadowRequestT = Model::DeleteThingShadowRequest>
134 Model::DeleteThingShadowOutcomeCallable DeleteThingShadowCallable(const DeleteThingShadowRequestT& request) const
135 {
136 return SubmitCallable(&IoTDataPlaneClient::DeleteThingShadow, request);
137 }
138
142 template<typename DeleteThingShadowRequestT = Model::DeleteThingShadowRequest>
143 void DeleteThingShadowAsync(const DeleteThingShadowRequestT& request, const DeleteThingShadowResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
144 {
145 return SubmitAsync(&IoTDataPlaneClient::DeleteThingShadow, request, handler, context);
146 }
147
163
167 template<typename GetRetainedMessageRequestT = Model::GetRetainedMessageRequest>
168 Model::GetRetainedMessageOutcomeCallable GetRetainedMessageCallable(const GetRetainedMessageRequestT& request) const
169 {
170 return SubmitCallable(&IoTDataPlaneClient::GetRetainedMessage, request);
171 }
172
176 template<typename GetRetainedMessageRequestT = Model::GetRetainedMessageRequest>
177 void GetRetainedMessageAsync(const GetRetainedMessageRequestT& request, const GetRetainedMessageResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
178 {
179 return SubmitAsync(&IoTDataPlaneClient::GetRetainedMessage, request, handler, context);
180 }
181
193
197 template<typename GetThingShadowRequestT = Model::GetThingShadowRequest>
198 Model::GetThingShadowOutcomeCallable GetThingShadowCallable(const GetThingShadowRequestT& request) const
199 {
200 return SubmitCallable(&IoTDataPlaneClient::GetThingShadow, request);
201 }
202
206 template<typename GetThingShadowRequestT = Model::GetThingShadowRequest>
207 void GetThingShadowAsync(const GetThingShadowRequestT& request, const GetThingShadowResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
208 {
209 return SubmitAsync(&IoTDataPlaneClient::GetThingShadow, request, handler, context);
210 }
211
221
225 template<typename ListNamedShadowsForThingRequestT = Model::ListNamedShadowsForThingRequest>
226 Model::ListNamedShadowsForThingOutcomeCallable ListNamedShadowsForThingCallable(const ListNamedShadowsForThingRequestT& request) const
227 {
228 return SubmitCallable(&IoTDataPlaneClient::ListNamedShadowsForThing, request);
229 }
230
234 template<typename ListNamedShadowsForThingRequestT = Model::ListNamedShadowsForThingRequest>
235 void ListNamedShadowsForThingAsync(const ListNamedShadowsForThingRequestT& request, const ListNamedShadowsForThingResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
236 {
237 return SubmitAsync(&IoTDataPlaneClient::ListNamedShadowsForThing, request, handler, context);
238 }
239
257
261 template<typename ListRetainedMessagesRequestT = Model::ListRetainedMessagesRequest>
262 Model::ListRetainedMessagesOutcomeCallable ListRetainedMessagesCallable(const ListRetainedMessagesRequestT& request = {}) const
263 {
264 return SubmitCallable(&IoTDataPlaneClient::ListRetainedMessages, request);
265 }
266
270 template<typename ListRetainedMessagesRequestT = Model::ListRetainedMessagesRequest>
271 void ListRetainedMessagesAsync(const ListRetainedMessagesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr, const ListRetainedMessagesRequestT& request = {}) const
272 {
273 return SubmitAsync(&IoTDataPlaneClient::ListRetainedMessages, request, handler, context);
274 }
275
289
293 template<typename PublishRequestT = Model::PublishRequest>
294 Model::PublishOutcomeCallable PublishCallable(const PublishRequestT& request) const
295 {
296 return SubmitCallable(&IoTDataPlaneClient::Publish, request);
297 }
298
302 template<typename PublishRequestT = Model::PublishRequest>
303 void PublishAsync(const PublishRequestT& request, const PublishResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
304 {
305 return SubmitAsync(&IoTDataPlaneClient::Publish, request, handler, context);
306 }
307
319
323 template<typename UpdateThingShadowRequestT = Model::UpdateThingShadowRequest>
324 Model::UpdateThingShadowOutcomeCallable UpdateThingShadowCallable(const UpdateThingShadowRequestT& request) const
325 {
326 return SubmitCallable(&IoTDataPlaneClient::UpdateThingShadow, request);
327 }
328
332 template<typename UpdateThingShadowRequestT = Model::UpdateThingShadowRequest>
333 void UpdateThingShadowAsync(const UpdateThingShadowRequestT& request, const UpdateThingShadowResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
334 {
335 return SubmitAsync(&IoTDataPlaneClient::UpdateThingShadow, request, handler, context);
336 }
337
338
339 void OverrideEndpoint(const Aws::String& endpoint);
340 std::shared_ptr<IoTDataPlaneEndpointProviderBase>& accessEndpointProvider();
341 private:
343 void init(const IoTDataPlaneClientConfiguration& clientConfiguration);
344
345 IoTDataPlaneClientConfiguration m_clientConfiguration;
346 std::shared_ptr<IoTDataPlaneEndpointProviderBase> m_endpointProvider;
347 };
348
349} // namespace IoTDataPlane
350} // namespace Aws
void ListRetainedMessagesAsync(const ListRetainedMessagesResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr, const ListRetainedMessagesRequestT &request={}) const
void ListNamedShadowsForThingAsync(const ListNamedShadowsForThingRequestT &request, const ListNamedShadowsForThingResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
virtual Model::ListRetainedMessagesOutcome ListRetainedMessages(const Model::ListRetainedMessagesRequest &request={}) const
IoTDataPlaneEndpointProvider EndpointProviderType
virtual Model::GetThingShadowOutcome GetThingShadow(const Model::GetThingShadowRequest &request) const
Model::ListRetainedMessagesOutcomeCallable ListRetainedMessagesCallable(const ListRetainedMessagesRequestT &request={}) const
static const char * GetAllocationTag()
Model::ListNamedShadowsForThingOutcomeCallable ListNamedShadowsForThingCallable(const ListNamedShadowsForThingRequestT &request) const
IoTDataPlaneClient(const Aws::Auth::AWSCredentials &credentials, std::shared_ptr< IoTDataPlaneEndpointProviderBase > endpointProvider=nullptr, const Aws::IoTDataPlane::IoTDataPlaneClientConfiguration &clientConfiguration=Aws::IoTDataPlane::IoTDataPlaneClientConfiguration())
IoTDataPlaneClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, std::shared_ptr< IoTDataPlaneEndpointProviderBase > endpointProvider=nullptr, const Aws::IoTDataPlane::IoTDataPlaneClientConfiguration &clientConfiguration=Aws::IoTDataPlane::IoTDataPlaneClientConfiguration())
Model::UpdateThingShadowOutcomeCallable UpdateThingShadowCallable(const UpdateThingShadowRequestT &request) const
virtual Model::DeleteThingShadowOutcome DeleteThingShadow(const Model::DeleteThingShadowRequest &request) const
virtual Model::UpdateThingShadowOutcome UpdateThingShadow(const Model::UpdateThingShadowRequest &request) const
void GetThingShadowAsync(const GetThingShadowRequestT &request, const GetThingShadowResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Model::DeleteThingShadowOutcomeCallable DeleteThingShadowCallable(const DeleteThingShadowRequestT &request) const
IoTDataPlaneClient(const Aws::Auth::AWSCredentials &credentials, const Aws::Client::ClientConfiguration &clientConfiguration)
virtual Model::DeleteConnectionOutcome DeleteConnection(const Model::DeleteConnectionRequest &request) const
void UpdateThingShadowAsync(const UpdateThingShadowRequestT &request, const UpdateThingShadowResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
void DeleteConnectionAsync(const DeleteConnectionRequestT &request, const DeleteConnectionResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
IoTDataPlaneClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, const Aws::Client::ClientConfiguration &clientConfiguration)
virtual Model::ListNamedShadowsForThingOutcome ListNamedShadowsForThing(const Model::ListNamedShadowsForThingRequest &request) const
static const char * GetServiceName()
void DeleteThingShadowAsync(const DeleteThingShadowRequestT &request, const DeleteThingShadowResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
void OverrideEndpoint(const Aws::String &endpoint)
IoTDataPlaneClientConfiguration ClientConfigurationType
IoTDataPlaneClient(const Aws::Client::ClientConfiguration &clientConfiguration)
Model::PublishOutcomeCallable PublishCallable(const PublishRequestT &request) const
void GetRetainedMessageAsync(const GetRetainedMessageRequestT &request, const GetRetainedMessageResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
std::shared_ptr< IoTDataPlaneEndpointProviderBase > & accessEndpointProvider()
Model::DeleteConnectionOutcomeCallable DeleteConnectionCallable(const DeleteConnectionRequestT &request) const
virtual Model::PublishOutcome Publish(const Model::PublishRequest &request) const
IoTDataPlaneClient(const Aws::IoTDataPlane::IoTDataPlaneClientConfiguration &clientConfiguration=Aws::IoTDataPlane::IoTDataPlaneClientConfiguration(), std::shared_ptr< IoTDataPlaneEndpointProviderBase > endpointProvider=nullptr)
void PublishAsync(const PublishRequestT &request, const PublishResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Model::GetRetainedMessageOutcomeCallable GetRetainedMessageCallable(const GetRetainedMessageRequestT &request) const
Model::GetThingShadowOutcomeCallable GetThingShadowCallable(const GetThingShadowRequestT &request) const
virtual Model::GetRetainedMessageOutcome GetRetainedMessage(const Model::GetRetainedMessageRequest &request) const
std::future< DeleteThingShadowOutcome > DeleteThingShadowOutcomeCallable
std::future< ListRetainedMessagesOutcome > ListRetainedMessagesOutcomeCallable
std::future< UpdateThingShadowOutcome > UpdateThingShadowOutcomeCallable
std::future< GetThingShadowOutcome > GetThingShadowOutcomeCallable
std::future< PublishOutcome > PublishOutcomeCallable
std::future< DeleteConnectionOutcome > DeleteConnectionOutcomeCallable
std::future< GetRetainedMessageOutcome > GetRetainedMessageOutcomeCallable
std::future< ListNamedShadowsForThingOutcome > ListNamedShadowsForThingOutcomeCallable
std::function< void(const IoTDataPlaneClient *, const Model::GetRetainedMessageRequest &, const Model::GetRetainedMessageOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > GetRetainedMessageResponseReceivedHandler
std::function< void(const IoTDataPlaneClient *, const Model::ListRetainedMessagesRequest &, const Model::ListRetainedMessagesOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > ListRetainedMessagesResponseReceivedHandler
std::function< void(const IoTDataPlaneClient *, const Model::GetThingShadowRequest &, Model::GetThingShadowOutcome, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > GetThingShadowResponseReceivedHandler
std::function< void(const IoTDataPlaneClient *, const Model::PublishRequest &, const Model::PublishOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > PublishResponseReceivedHandler
std::function< void(const IoTDataPlaneClient *, const Model::UpdateThingShadowRequest &, Model::UpdateThingShadowOutcome, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > UpdateThingShadowResponseReceivedHandler
std::function< void(const IoTDataPlaneClient *, const Model::ListNamedShadowsForThingRequest &, const Model::ListNamedShadowsForThingOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > ListNamedShadowsForThingResponseReceivedHandler
std::function< void(const IoTDataPlaneClient *, const Model::DeleteConnectionRequest &, const Model::DeleteConnectionOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > DeleteConnectionResponseReceivedHandler
std::function< void(const IoTDataPlaneClient *, const Model::DeleteThingShadowRequest &, Model::DeleteThingShadowOutcome, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > DeleteThingShadowResponseReceivedHandler
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String