AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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
101
105 template<typename DeleteThingShadowRequestT = Model::DeleteThingShadowRequest>
106 Model::DeleteThingShadowOutcomeCallable DeleteThingShadowCallable(const DeleteThingShadowRequestT& request) const
107 {
108 return SubmitCallable(&IoTDataPlaneClient::DeleteThingShadow, request);
109 }
110
114 template<typename DeleteThingShadowRequestT = Model::DeleteThingShadowRequest>
115 void DeleteThingShadowAsync(const DeleteThingShadowRequestT& request, const DeleteThingShadowResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
116 {
117 return SubmitAsync(&IoTDataPlaneClient::DeleteThingShadow, request, handler, context);
118 }
119
135
139 template<typename GetRetainedMessageRequestT = Model::GetRetainedMessageRequest>
140 Model::GetRetainedMessageOutcomeCallable GetRetainedMessageCallable(const GetRetainedMessageRequestT& request) const
141 {
142 return SubmitCallable(&IoTDataPlaneClient::GetRetainedMessage, request);
143 }
144
148 template<typename GetRetainedMessageRequestT = Model::GetRetainedMessageRequest>
149 void GetRetainedMessageAsync(const GetRetainedMessageRequestT& request, const GetRetainedMessageResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
150 {
151 return SubmitAsync(&IoTDataPlaneClient::GetRetainedMessage, request, handler, context);
152 }
153
165
169 template<typename GetThingShadowRequestT = Model::GetThingShadowRequest>
170 Model::GetThingShadowOutcomeCallable GetThingShadowCallable(const GetThingShadowRequestT& request) const
171 {
172 return SubmitCallable(&IoTDataPlaneClient::GetThingShadow, request);
173 }
174
178 template<typename GetThingShadowRequestT = Model::GetThingShadowRequest>
179 void GetThingShadowAsync(const GetThingShadowRequestT& request, const GetThingShadowResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
180 {
181 return SubmitAsync(&IoTDataPlaneClient::GetThingShadow, request, handler, context);
182 }
183
193
197 template<typename ListNamedShadowsForThingRequestT = Model::ListNamedShadowsForThingRequest>
198 Model::ListNamedShadowsForThingOutcomeCallable ListNamedShadowsForThingCallable(const ListNamedShadowsForThingRequestT& request) const
199 {
200 return SubmitCallable(&IoTDataPlaneClient::ListNamedShadowsForThing, request);
201 }
202
206 template<typename ListNamedShadowsForThingRequestT = Model::ListNamedShadowsForThingRequest>
207 void ListNamedShadowsForThingAsync(const ListNamedShadowsForThingRequestT& request, const ListNamedShadowsForThingResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
208 {
209 return SubmitAsync(&IoTDataPlaneClient::ListNamedShadowsForThing, request, handler, context);
210 }
211
229
233 template<typename ListRetainedMessagesRequestT = Model::ListRetainedMessagesRequest>
234 Model::ListRetainedMessagesOutcomeCallable ListRetainedMessagesCallable(const ListRetainedMessagesRequestT& request = {}) const
235 {
236 return SubmitCallable(&IoTDataPlaneClient::ListRetainedMessages, request);
237 }
238
242 template<typename ListRetainedMessagesRequestT = Model::ListRetainedMessagesRequest>
243 void ListRetainedMessagesAsync(const ListRetainedMessagesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr, const ListRetainedMessagesRequestT& request = {}) const
244 {
245 return SubmitAsync(&IoTDataPlaneClient::ListRetainedMessages, request, handler, context);
246 }
247
261
265 template<typename PublishRequestT = Model::PublishRequest>
266 Model::PublishOutcomeCallable PublishCallable(const PublishRequestT& request) const
267 {
268 return SubmitCallable(&IoTDataPlaneClient::Publish, request);
269 }
270
274 template<typename PublishRequestT = Model::PublishRequest>
275 void PublishAsync(const PublishRequestT& request, const PublishResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
276 {
277 return SubmitAsync(&IoTDataPlaneClient::Publish, request, handler, context);
278 }
279
291
295 template<typename UpdateThingShadowRequestT = Model::UpdateThingShadowRequest>
296 Model::UpdateThingShadowOutcomeCallable UpdateThingShadowCallable(const UpdateThingShadowRequestT& request) const
297 {
298 return SubmitCallable(&IoTDataPlaneClient::UpdateThingShadow, request);
299 }
300
304 template<typename UpdateThingShadowRequestT = Model::UpdateThingShadowRequest>
305 void UpdateThingShadowAsync(const UpdateThingShadowRequestT& request, const UpdateThingShadowResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
306 {
307 return SubmitAsync(&IoTDataPlaneClient::UpdateThingShadow, request, handler, context);
308 }
309
310
311 void OverrideEndpoint(const Aws::String& endpoint);
312 std::shared_ptr<IoTDataPlaneEndpointProviderBase>& accessEndpointProvider();
313 private:
315 void init(const IoTDataPlaneClientConfiguration& clientConfiguration);
316
317 IoTDataPlaneClientConfiguration m_clientConfiguration;
318 std::shared_ptr<IoTDataPlaneEndpointProviderBase> m_endpointProvider;
319 };
320
321} // namespace IoTDataPlane
322} // 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)
void UpdateThingShadowAsync(const UpdateThingShadowRequestT &request, const UpdateThingShadowResponseReceivedHandler &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()
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< 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::DeleteThingShadowRequest &, Model::DeleteThingShadowOutcome, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > DeleteThingShadowResponseReceivedHandler
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String