AWS SDK for C++  1.9.131
AWS SDK for C++
SagemakerEdgeManagerClient.h
Go to the documentation of this file.
1 
6 #pragma once
15 #include <aws/core/NoResult.h>
18 #include <future>
19 #include <functional>
20 
21 namespace Aws
22 {
23 
24 namespace Http
25 {
26  class HttpClient;
27  class HttpClientFactory;
28 } // namespace Http
29 
30 namespace Utils
31 {
32  template< typename R, typename E> class Outcome;
33 namespace Threading
34 {
35  class Executor;
36 } // namespace Threading
37 } // namespace Utils
38 
39 namespace Auth
40 {
41  class AWSCredentials;
42  class AWSCredentialsProvider;
43 } // namespace Auth
44 
45 namespace Client
46 {
47  class RetryStrategy;
48 } // namespace Client
49 
50 namespace SagemakerEdgeManager
51 {
52 
53 namespace Model
54 {
55  class GetDeviceRegistrationRequest;
56  class SendHeartbeatRequest;
57 
60 
61  typedef std::future<GetDeviceRegistrationOutcome> GetDeviceRegistrationOutcomeCallable;
62  typedef std::future<SendHeartbeatOutcome> SendHeartbeatOutcomeCallable;
63 } // namespace Model
64 
66 
67  typedef std::function<void(const SagemakerEdgeManagerClient*, const Model::GetDeviceRegistrationRequest&, const Model::GetDeviceRegistrationOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > GetDeviceRegistrationResponseReceivedHandler;
68  typedef std::function<void(const SagemakerEdgeManagerClient*, const Model::SendHeartbeatRequest&, const Model::SendHeartbeatOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > SendHeartbeatResponseReceivedHandler;
69 
75  {
76  public:
78 
84 
90 
95  SagemakerEdgeManagerClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
97 
99 
100 
108 
118 
127  virtual void GetDeviceRegistrationAsync(const Model::GetDeviceRegistrationRequest& request, const GetDeviceRegistrationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
128 
136 
146 
155  virtual void SendHeartbeatAsync(const Model::SendHeartbeatRequest& request, const SendHeartbeatResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
156 
157 
158  void OverrideEndpoint(const Aws::String& endpoint);
159  private:
160  void init(const Aws::Client::ClientConfiguration& clientConfiguration);
161  void GetDeviceRegistrationAsyncHelper(const Model::GetDeviceRegistrationRequest& request, const GetDeviceRegistrationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
162  void SendHeartbeatAsyncHelper(const Model::SendHeartbeatRequest& request, const SendHeartbeatResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
163 
164  Aws::String m_uri;
165  Aws::String m_configScheme;
166  std::shared_ptr<Aws::Utils::Threading::Executor> m_executor;
167  };
168 
169 } // namespace SagemakerEdgeManager
170 } // namespace Aws
Aws::SagemakerEdgeManager::SagemakerEdgeManagerClient
Definition: SagemakerEdgeManagerClient.h:75
Aws::DirectoryService::Model::LDAPSType::NOT_SET
@ NOT_SET
Aws::SagemakerEdgeManager::SagemakerEdgeManagerClient::SagemakerEdgeManagerClient
SagemakerEdgeManagerClient(const Aws::Auth::AWSCredentials &credentials, const Aws::Client::ClientConfiguration &clientConfiguration=Aws::Client::ClientConfiguration())
Aws::SagemakerEdgeManager::Model::GetDeviceRegistrationRequest
Definition: GetDeviceRegistrationRequest.h:22
Aws::SagemakerEdgeManager::SendHeartbeatResponseReceivedHandler
std::function< void(const SagemakerEdgeManagerClient *, const Model::SendHeartbeatRequest &, const Model::SendHeartbeatOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > SendHeartbeatResponseReceivedHandler
Definition: SagemakerEdgeManagerClient.h:68
Aws::SagemakerEdgeManager::Model::GetDeviceRegistrationOutcomeCallable
std::future< GetDeviceRegistrationOutcome > GetDeviceRegistrationOutcomeCallable
Definition: SagemakerEdgeManagerClient.h:61
AWSError.h
Aws::SagemakerEdgeManager::Model::SendHeartbeatOutcome
Aws::Utils::Outcome< Aws::NoResult, SagemakerEdgeManagerError > SendHeartbeatOutcome
Definition: SagemakerEdgeManagerClient.h:59
GetDeviceRegistrationResult.h
SagemakerEdgeManagerErrors.h
Aws::SagemakerEdgeManager::Model::SendHeartbeatOutcomeCallable
std::future< SendHeartbeatOutcome > SendHeartbeatOutcomeCallable
Definition: SagemakerEdgeManagerClient.h:62
Aws::SagemakerEdgeManager::SagemakerEdgeManagerClient::GetDeviceRegistration
virtual Model::GetDeviceRegistrationOutcome GetDeviceRegistration(const Model::GetDeviceRegistrationRequest &request) const
Aws::SagemakerEdgeManager::GetDeviceRegistrationResponseReceivedHandler
std::function< void(const SagemakerEdgeManagerClient *, const Model::GetDeviceRegistrationRequest &, const Model::GetDeviceRegistrationOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > GetDeviceRegistrationResponseReceivedHandler
Definition: SagemakerEdgeManagerClient.h:65
Aws::SagemakerEdgeManager::SagemakerEdgeManagerClient::GetDeviceRegistrationAsync
virtual void GetDeviceRegistrationAsync(const Model::GetDeviceRegistrationRequest &request, const GetDeviceRegistrationResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Aws::SagemakerEdgeManager::SagemakerEdgeManagerClient::BASECLASS
Aws::Client::AWSJsonClient BASECLASS
Definition: SagemakerEdgeManagerClient.h:77
AsyncCallerContext.h
Aws::SagemakerEdgeManager::SagemakerEdgeManagerClient::SagemakerEdgeManagerClient
SagemakerEdgeManagerClient(const Aws::Client::ClientConfiguration &clientConfiguration=Aws::Client::ClientConfiguration())
NoResult.h
Aws::Client::ClientConfiguration
Definition: ClientConfiguration.h:53
Aws::SagemakerEdgeManager::Model::GetDeviceRegistrationOutcome
Aws::Utils::Outcome< GetDeviceRegistrationResult, SagemakerEdgeManagerError > GetDeviceRegistrationOutcome
Definition: SagemakerEdgeManagerClient.h:56
Aws::SagemakerEdgeManager::SagemakerEdgeManagerClient::SendHeartbeatAsync
virtual void SendHeartbeatAsync(const Model::SendHeartbeatRequest &request, const SendHeartbeatResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Aws::SagemakerEdgeManager::Model::SendHeartbeatRequest
Definition: SendHeartbeatRequest.h:25
Aws::SagemakerEdgeManager::SagemakerEdgeManagerClient::GetDeviceRegistrationCallable
virtual Model::GetDeviceRegistrationOutcomeCallable GetDeviceRegistrationCallable(const Model::GetDeviceRegistrationRequest &request) const
Aws::Auth::AWSCredentials
Definition: AWSCredentials.h:19
Aws::SagemakerEdgeManager::SagemakerEdgeManagerClient::OverrideEndpoint
void OverrideEndpoint(const Aws::String &endpoint)
AWSString.h
Aws::Client::AWSJsonClient
Definition: AWSClient.h:338
SagemakerEdgeManager_EXPORTS.h
AWS_SAGEMAKEREDGEMANAGER_API
#define AWS_SAGEMAKEREDGEMANAGER_API
Definition: SagemakerEdgeManager_EXPORTS.h:28
Aws::SagemakerEdgeManager::SagemakerEdgeManagerClient::~SagemakerEdgeManagerClient
virtual ~SagemakerEdgeManagerClient()
ClientConfiguration.h
Aws
Definition: AccessManagementClient.h:15
HttpTypes.h
Aws::Utils::Outcome
Definition: Outcome.h:26
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AWSClient.h
Aws::SagemakerEdgeManager::SagemakerEdgeManagerClient::SendHeartbeatCallable
virtual Model::SendHeartbeatOutcomeCallable SendHeartbeatCallable(const Model::SendHeartbeatRequest &request) const
Aws::SagemakerEdgeManager::SagemakerEdgeManagerClient::SendHeartbeat
virtual Model::SendHeartbeatOutcome SendHeartbeat(const Model::SendHeartbeatRequest &request) const
Aws::SagemakerEdgeManager::SagemakerEdgeManagerClient::SagemakerEdgeManagerClient
SagemakerEdgeManagerClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, const Aws::Client::ClientConfiguration &clientConfiguration=Aws::Client::ClientConfiguration())
JsonSerializer.h