AWS SDK for C++

AWS SDK for C++ Version 1.11.788

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/PersonalizeRuntimePaginationBase.h>
12#include <aws/personalize-runtime/PersonalizeRuntimeServiceClientModel.h>
13#include <aws/personalize-runtime/PersonalizeRuntimeWaiter.h>
14#include <aws/personalize-runtime/PersonalizeRuntime_EXPORTS.h>
15
16namespace Aws {
17namespace PersonalizeRuntime {
21class AWS_PERSONALIZERUNTIME_API PersonalizeRuntimeClient : public Aws::Client::AWSJsonClient,
22 public Aws::Client::ClientWithAsyncTemplateMethods<PersonalizeRuntimeClient>,
23 public PersonalizeRuntimePaginationBase<PersonalizeRuntimeClient>,
24 public PersonalizeRuntimeWaiter<PersonalizeRuntimeClient> {
25 public:
27 static const char* GetServiceName();
28 static const char* GetAllocationTag();
29
32
39 std::shared_ptr<PersonalizeRuntimeEndpointProviderBase> endpointProvider = nullptr);
40
46 std::shared_ptr<PersonalizeRuntimeEndpointProviderBase> endpointProvider = nullptr,
49
54 PersonalizeRuntimeClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
55 std::shared_ptr<PersonalizeRuntimeEndpointProviderBase> endpointProvider = nullptr,
58
59 /* Legacy constructors due deprecation */
65
71
76 PersonalizeRuntimeClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
77 const Aws::Client::ClientConfiguration& clientConfiguration);
78
79 /* End of legacy constructors due deprecation */
81
96
101 template <typename GetActionRecommendationsRequestT = Model::GetActionRecommendationsRequest>
103 const GetActionRecommendationsRequestT& request = {}) const {
104 return SubmitCallable(&PersonalizeRuntimeClient::GetActionRecommendations, request);
105 }
106
111 template <typename GetActionRecommendationsRequestT = Model::GetActionRecommendationsRequest>
113 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr,
114 const GetActionRecommendationsRequestT& request = {}) const {
115 return SubmitAsync(&PersonalizeRuntimeClient::GetActionRecommendations, request, handler, context);
116 }
117
127
132 template <typename GetPersonalizedRankingRequestT = Model::GetPersonalizedRankingRequest>
133 Model::GetPersonalizedRankingOutcomeCallable GetPersonalizedRankingCallable(const GetPersonalizedRankingRequestT& request) const {
134 return SubmitCallable(&PersonalizeRuntimeClient::GetPersonalizedRanking, request);
135 }
136
141 template <typename GetPersonalizedRankingRequestT = Model::GetPersonalizedRankingRequest>
142 void GetPersonalizedRankingAsync(const GetPersonalizedRankingRequestT& request,
144 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
145 return SubmitAsync(&PersonalizeRuntimeClient::GetPersonalizedRanking, request, handler, context);
146 }
147
166
171 template <typename GetRecommendationsRequestT = Model::GetRecommendationsRequest>
172 Model::GetRecommendationsOutcomeCallable GetRecommendationsCallable(const GetRecommendationsRequestT& request = {}) const {
173 return SubmitCallable(&PersonalizeRuntimeClient::GetRecommendations, request);
174 }
175
180 template <typename GetRecommendationsRequestT = Model::GetRecommendationsRequest>
182 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr,
183 const GetRecommendationsRequestT& request = {}) const {
184 return SubmitAsync(&PersonalizeRuntimeClient::GetRecommendations, request, handler, context);
185 }
186
187 virtual void OverrideEndpoint(const Aws::String& endpoint);
188 virtual std::shared_ptr<PersonalizeRuntimeEndpointProviderBase>& accessEndpointProvider();
189
190 private:
192 void init(const PersonalizeRuntimeClientConfiguration& clientConfiguration);
193
195
196 InvokeOperationOutcome InvokeServiceOperation(const AmazonWebServiceRequest& request,
197 const std::function<void(Aws::Endpoint::ResolveEndpointOutcome&)>& resolveUri,
198 Aws::Http::HttpMethod httpMethod) const;
199
200 PersonalizeRuntimeClientConfiguration m_clientConfiguration;
201 std::shared_ptr<PersonalizeRuntimeEndpointProviderBase> m_endpointProvider;
202};
203
204} // namespace PersonalizeRuntime
205} // namespace Aws
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())
virtual std::shared_ptr< PersonalizeRuntimeEndpointProviderBase > & accessEndpointProvider()
PersonalizeRuntimeClient(const Aws::Auth::AWSCredentials &credentials, std::shared_ptr< PersonalizeRuntimeEndpointProviderBase > endpointProvider=nullptr, const Aws::PersonalizeRuntime::PersonalizeRuntimeClientConfiguration &clientConfiguration=Aws::PersonalizeRuntime::PersonalizeRuntimeClientConfiguration())
virtual void OverrideEndpoint(const Aws::String &endpoint)
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