AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PersonalizeRuntimeClient.h
1
6#pragma once
7#include <aws/personalize-runtime/PersonalizeRuntime_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/personalize-runtime/PersonalizeRuntimeServiceClientModel.h>
13
14namespace Aws
15{
16namespace PersonalizeRuntime
17{
21 class AWS_PERSONALIZERUNTIME_API PersonalizeRuntimeClient : public Aws::Client::AWSJsonClient, public Aws::Client::ClientWithAsyncTemplateMethods<PersonalizeRuntimeClient>
22 {
23 public:
25 static const char* GetServiceName();
26 static const char* GetAllocationTag();
27
30
36 std::shared_ptr<PersonalizeRuntimeEndpointProviderBase> endpointProvider = nullptr);
37
43 std::shared_ptr<PersonalizeRuntimeEndpointProviderBase> endpointProvider = nullptr,
45
50 PersonalizeRuntimeClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
51 std::shared_ptr<PersonalizeRuntimeEndpointProviderBase> endpointProvider = nullptr,
53
54
55 /* Legacy constructors due deprecation */
61
67 const Aws::Client::ClientConfiguration& clientConfiguration);
68
73 PersonalizeRuntimeClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
74 const Aws::Client::ClientConfiguration& clientConfiguration);
75
76 /* End of legacy constructors due deprecation */
78
93
97 template<typename GetActionRecommendationsRequestT = Model::GetActionRecommendationsRequest>
98 Model::GetActionRecommendationsOutcomeCallable GetActionRecommendationsCallable(const GetActionRecommendationsRequestT& request = {}) const
99 {
100 return SubmitCallable(&PersonalizeRuntimeClient::GetActionRecommendations, request);
101 }
102
106 template<typename GetActionRecommendationsRequestT = Model::GetActionRecommendationsRequest>
107 void GetActionRecommendationsAsync(const GetActionRecommendationsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr, const GetActionRecommendationsRequestT& request = {}) const
108 {
109 return SubmitAsync(&PersonalizeRuntimeClient::GetActionRecommendations, request, handler, context);
110 }
111
121
125 template<typename GetPersonalizedRankingRequestT = Model::GetPersonalizedRankingRequest>
126 Model::GetPersonalizedRankingOutcomeCallable GetPersonalizedRankingCallable(const GetPersonalizedRankingRequestT& request) const
127 {
128 return SubmitCallable(&PersonalizeRuntimeClient::GetPersonalizedRanking, request);
129 }
130
134 template<typename GetPersonalizedRankingRequestT = Model::GetPersonalizedRankingRequest>
135 void GetPersonalizedRankingAsync(const GetPersonalizedRankingRequestT& request, const GetPersonalizedRankingResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
136 {
137 return SubmitAsync(&PersonalizeRuntimeClient::GetPersonalizedRanking, request, handler, context);
138 }
139
158
162 template<typename GetRecommendationsRequestT = Model::GetRecommendationsRequest>
163 Model::GetRecommendationsOutcomeCallable GetRecommendationsCallable(const GetRecommendationsRequestT& request = {}) const
164 {
165 return SubmitCallable(&PersonalizeRuntimeClient::GetRecommendations, request);
166 }
167
171 template<typename GetRecommendationsRequestT = Model::GetRecommendationsRequest>
172 void GetRecommendationsAsync(const GetRecommendationsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr, const GetRecommendationsRequestT& request = {}) const
173 {
174 return SubmitAsync(&PersonalizeRuntimeClient::GetRecommendations, request, handler, context);
175 }
176
177
178 void OverrideEndpoint(const Aws::String& endpoint);
179 std::shared_ptr<PersonalizeRuntimeEndpointProviderBase>& accessEndpointProvider();
180 private:
182 void init(const PersonalizeRuntimeClientConfiguration& clientConfiguration);
183
184 PersonalizeRuntimeClientConfiguration m_clientConfiguration;
185 std::shared_ptr<PersonalizeRuntimeEndpointProviderBase> m_endpointProvider;
186 };
187
188} // namespace PersonalizeRuntime
189} // namespace Aws
void OverrideEndpoint(const Aws::String &endpoint)
virtual Model::GetRecommendationsOutcome GetRecommendations(const Model::GetRecommendationsRequest &request={}) const
PersonalizeRuntimeClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, const Aws::Client::ClientConfiguration &clientConfiguration)
Model::GetActionRecommendationsOutcomeCallable GetActionRecommendationsCallable(const GetActionRecommendationsRequestT &request={}) const
virtual Model::GetActionRecommendationsOutcome GetActionRecommendations(const Model::GetActionRecommendationsRequest &request={}) const
PersonalizeRuntimeClient(const Aws::Client::ClientConfiguration &clientConfiguration)
PersonalizeRuntimeClient(const Aws::Auth::AWSCredentials &credentials, const Aws::Client::ClientConfiguration &clientConfiguration)
PersonalizeRuntimeClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, std::shared_ptr< PersonalizeRuntimeEndpointProviderBase > endpointProvider=nullptr, const Aws::PersonalizeRuntime::PersonalizeRuntimeClientConfiguration &clientConfiguration=Aws::PersonalizeRuntime::PersonalizeRuntimeClientConfiguration())
PersonalizeRuntimeClient(const Aws::Auth::AWSCredentials &credentials, std::shared_ptr< PersonalizeRuntimeEndpointProviderBase > endpointProvider=nullptr, const Aws::PersonalizeRuntime::PersonalizeRuntimeClientConfiguration &clientConfiguration=Aws::PersonalizeRuntime::PersonalizeRuntimeClientConfiguration())
std::shared_ptr< PersonalizeRuntimeEndpointProviderBase > & accessEndpointProvider()
Model::GetRecommendationsOutcomeCallable GetRecommendationsCallable(const GetRecommendationsRequestT &request={}) const
PersonalizeRuntimeClient(const Aws::PersonalizeRuntime::PersonalizeRuntimeClientConfiguration &clientConfiguration=Aws::PersonalizeRuntime::PersonalizeRuntimeClientConfiguration(), std::shared_ptr< PersonalizeRuntimeEndpointProviderBase > endpointProvider=nullptr)
PersonalizeRuntimeClientConfiguration ClientConfigurationType
void GetPersonalizedRankingAsync(const GetPersonalizedRankingRequestT &request, const GetPersonalizedRankingResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Model::GetPersonalizedRankingOutcomeCallable GetPersonalizedRankingCallable(const GetPersonalizedRankingRequestT &request) const
void GetRecommendationsAsync(const GetRecommendationsResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr, const GetRecommendationsRequestT &request={}) const
void GetActionRecommendationsAsync(const GetActionRecommendationsResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr, const GetActionRecommendationsRequestT &request={}) const
virtual Model::GetPersonalizedRankingOutcome GetPersonalizedRanking(const Model::GetPersonalizedRankingRequest &request) const
std::future< GetRecommendationsOutcome > GetRecommendationsOutcomeCallable
std::future< GetActionRecommendationsOutcome > GetActionRecommendationsOutcomeCallable
std::future< GetPersonalizedRankingOutcome > GetPersonalizedRankingOutcomeCallable
std::function< void(const PersonalizeRuntimeClient *, const Model::GetRecommendationsRequest &, const Model::GetRecommendationsOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > GetRecommendationsResponseReceivedHandler
std::function< void(const PersonalizeRuntimeClient *, const Model::GetPersonalizedRankingRequest &, const Model::GetPersonalizedRankingOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > GetPersonalizedRankingResponseReceivedHandler
std::function< void(const PersonalizeRuntimeClient *, const Model::GetActionRecommendationsRequest &, const Model::GetActionRecommendationsOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > GetActionRecommendationsResponseReceivedHandler
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String