AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
PersonalizeRuntimeClient.h
1
6#pragma once
7#include <aws/core/client/AWSClient.h>
8#include <aws/core/client/AWSClientAsyncCRTP.h>
9#include <aws/core/client/ClientConfiguration.h>
10#include <aws/core/utils/json/JsonSerializer.h>
11#include <aws/personalize-runtime/PersonalizeRuntimeServiceClientModel.h>
12#include <aws/personalize-runtime/PersonalizeRuntime_EXPORTS.h>
13
14namespace Aws {
15namespace PersonalizeRuntime {
19class AWS_PERSONALIZERUNTIME_API PersonalizeRuntimeClient : public Aws::Client::AWSJsonClient,
20 public Aws::Client::ClientWithAsyncTemplateMethods<PersonalizeRuntimeClient> {
21 public:
23 static const char* GetServiceName();
24 static const char* GetAllocationTag();
25
28
35 std::shared_ptr<PersonalizeRuntimeEndpointProviderBase> endpointProvider = nullptr);
36
42 std::shared_ptr<PersonalizeRuntimeEndpointProviderBase> endpointProvider = nullptr,
45
50 PersonalizeRuntimeClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
51 std::shared_ptr<PersonalizeRuntimeEndpointProviderBase> endpointProvider = nullptr,
54
55 /* Legacy constructors due deprecation */
61
67
72 PersonalizeRuntimeClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
73 const Aws::Client::ClientConfiguration& clientConfiguration);
74
75 /* End of legacy constructors due deprecation */
77
92
97 template <typename GetActionRecommendationsRequestT = Model::GetActionRecommendationsRequest>
99 const GetActionRecommendationsRequestT& request = {}) const {
100 return SubmitCallable(&PersonalizeRuntimeClient::GetActionRecommendations, request);
101 }
102
107 template <typename GetActionRecommendationsRequestT = Model::GetActionRecommendationsRequest>
109 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr,
110 const GetActionRecommendationsRequestT& request = {}) const {
111 return SubmitAsync(&PersonalizeRuntimeClient::GetActionRecommendations, request, handler, context);
112 }
113
123
128 template <typename GetPersonalizedRankingRequestT = Model::GetPersonalizedRankingRequest>
129 Model::GetPersonalizedRankingOutcomeCallable GetPersonalizedRankingCallable(const GetPersonalizedRankingRequestT& request) const {
130 return SubmitCallable(&PersonalizeRuntimeClient::GetPersonalizedRanking, request);
131 }
132
137 template <typename GetPersonalizedRankingRequestT = Model::GetPersonalizedRankingRequest>
138 void GetPersonalizedRankingAsync(const GetPersonalizedRankingRequestT& request,
140 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
141 return SubmitAsync(&PersonalizeRuntimeClient::GetPersonalizedRanking, request, handler, context);
142 }
143
162
167 template <typename GetRecommendationsRequestT = Model::GetRecommendationsRequest>
168 Model::GetRecommendationsOutcomeCallable GetRecommendationsCallable(const GetRecommendationsRequestT& request = {}) const {
169 return SubmitCallable(&PersonalizeRuntimeClient::GetRecommendations, request);
170 }
171
176 template <typename GetRecommendationsRequestT = Model::GetRecommendationsRequest>
178 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr,
179 const GetRecommendationsRequestT& request = {}) const {
180 return SubmitAsync(&PersonalizeRuntimeClient::GetRecommendations, request, handler, context);
181 }
182
183 void OverrideEndpoint(const Aws::String& endpoint);
184 std::shared_ptr<PersonalizeRuntimeEndpointProviderBase>& accessEndpointProvider();
185
186 private:
188 void init(const PersonalizeRuntimeClientConfiguration& clientConfiguration);
189
190 PersonalizeRuntimeClientConfiguration m_clientConfiguration;
191 std::shared_ptr<PersonalizeRuntimeEndpointProviderBase> m_endpointProvider;
192};
193
194} // namespace PersonalizeRuntime
195} // 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