AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CloudSearchDomainClient.h
1
6#pragma once
7#include <aws/cloudsearchdomain/CloudSearchDomain_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/cloudsearchdomain/CloudSearchDomainServiceClientModel.h>
13
14namespace Aws
15{
16namespace CloudSearchDomain
17{
30 class AWS_CLOUDSEARCHDOMAIN_API CloudSearchDomainClient : public Aws::Client::AWSJsonClient, public Aws::Client::ClientWithAsyncTemplateMethods<CloudSearchDomainClient>
31 {
32 public:
34 static const char* GetServiceName();
35 static const char* GetAllocationTag();
36
39
45 std::shared_ptr<CloudSearchDomainEndpointProviderBase> endpointProvider = nullptr);
46
52 std::shared_ptr<CloudSearchDomainEndpointProviderBase> endpointProvider = nullptr,
54
59 CloudSearchDomainClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
60 std::shared_ptr<CloudSearchDomainEndpointProviderBase> endpointProvider = nullptr,
62
63
64 /* Legacy constructors due deprecation */
70
76 const Aws::Client::ClientConfiguration& clientConfiguration);
77
82 CloudSearchDomainClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
83 const Aws::Client::ClientConfiguration& clientConfiguration);
84
85 /* End of legacy constructors due deprecation */
87
112 virtual Model::SearchOutcome Search(const Model::SearchRequest& request) const;
113
117 template<typename SearchRequestT = Model::SearchRequest>
118 Model::SearchOutcomeCallable SearchCallable(const SearchRequestT& request) const
119 {
120 return SubmitCallable(&CloudSearchDomainClient::Search, request);
121 }
122
126 template<typename SearchRequestT = Model::SearchRequest>
127 void SearchAsync(const SearchRequestT& request, const SearchResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
128 {
129 return SubmitAsync(&CloudSearchDomainClient::Search, request, handler, context);
130 }
131
153
157 template<typename SuggestRequestT = Model::SuggestRequest>
158 Model::SuggestOutcomeCallable SuggestCallable(const SuggestRequestT& request) const
159 {
160 return SubmitCallable(&CloudSearchDomainClient::Suggest, request);
161 }
162
166 template<typename SuggestRequestT = Model::SuggestRequest>
167 void SuggestAsync(const SuggestRequestT& request, const SuggestResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
168 {
169 return SubmitAsync(&CloudSearchDomainClient::Suggest, request, handler, context);
170 }
171
199
203 template<typename UploadDocumentsRequestT = Model::UploadDocumentsRequest>
204 Model::UploadDocumentsOutcomeCallable UploadDocumentsCallable(const UploadDocumentsRequestT& request) const
205 {
206 return SubmitCallable(&CloudSearchDomainClient::UploadDocuments, request);
207 }
208
212 template<typename UploadDocumentsRequestT = Model::UploadDocumentsRequest>
213 void UploadDocumentsAsync(const UploadDocumentsRequestT& request, const UploadDocumentsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
214 {
215 return SubmitAsync(&CloudSearchDomainClient::UploadDocuments, request, handler, context);
216 }
217
218
219 void OverrideEndpoint(const Aws::String& endpoint);
220 std::shared_ptr<CloudSearchDomainEndpointProviderBase>& accessEndpointProvider();
221 private:
223 void init(const CloudSearchDomainClientConfiguration& clientConfiguration);
224
225 CloudSearchDomainClientConfiguration m_clientConfiguration;
226 std::shared_ptr<CloudSearchDomainEndpointProviderBase> m_endpointProvider;
227 };
228
229} // namespace CloudSearchDomain
230} // namespace Aws
CloudSearchDomainClient(const Aws::Auth::AWSCredentials &credentials, const Aws::Client::ClientConfiguration &clientConfiguration)
virtual Model::SearchOutcome Search(const Model::SearchRequest &request) const
std::shared_ptr< CloudSearchDomainEndpointProviderBase > & accessEndpointProvider()
Model::SearchOutcomeCallable SearchCallable(const SearchRequestT &request) const
CloudSearchDomainClient(const Aws::Auth::AWSCredentials &credentials, std::shared_ptr< CloudSearchDomainEndpointProviderBase > endpointProvider=nullptr, const Aws::CloudSearchDomain::CloudSearchDomainClientConfiguration &clientConfiguration=Aws::CloudSearchDomain::CloudSearchDomainClientConfiguration())
CloudSearchDomainClient(const Aws::Client::ClientConfiguration &clientConfiguration)
void SuggestAsync(const SuggestRequestT &request, const SuggestResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Model::UploadDocumentsOutcomeCallable UploadDocumentsCallable(const UploadDocumentsRequestT &request) const
CloudSearchDomainClientConfiguration ClientConfigurationType
CloudSearchDomainClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, std::shared_ptr< CloudSearchDomainEndpointProviderBase > endpointProvider=nullptr, const Aws::CloudSearchDomain::CloudSearchDomainClientConfiguration &clientConfiguration=Aws::CloudSearchDomain::CloudSearchDomainClientConfiguration())
void OverrideEndpoint(const Aws::String &endpoint)
Model::SuggestOutcomeCallable SuggestCallable(const SuggestRequestT &request) const
CloudSearchDomainClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, const Aws::Client::ClientConfiguration &clientConfiguration)
virtual Model::UploadDocumentsOutcome UploadDocuments(const Model::UploadDocumentsRequest &request) const
void SearchAsync(const SearchRequestT &request, const SearchResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
void UploadDocumentsAsync(const UploadDocumentsRequestT &request, const UploadDocumentsResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
CloudSearchDomainEndpointProvider EndpointProviderType
CloudSearchDomainClient(const Aws::CloudSearchDomain::CloudSearchDomainClientConfiguration &clientConfiguration=Aws::CloudSearchDomain::CloudSearchDomainClientConfiguration(), std::shared_ptr< CloudSearchDomainEndpointProviderBase > endpointProvider=nullptr)
virtual Model::SuggestOutcome Suggest(const Model::SuggestRequest &request) const
std::future< UploadDocumentsOutcome > UploadDocumentsOutcomeCallable
std::future< SuggestOutcome > SuggestOutcomeCallable
std::function< void(const CloudSearchDomainClient *, const Model::UploadDocumentsRequest &, const Model::UploadDocumentsOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > UploadDocumentsResponseReceivedHandler
std::function< void(const CloudSearchDomainClient *, const Model::SuggestRequest &, const Model::SuggestOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > SuggestResponseReceivedHandler
std::function< void(const CloudSearchDomainClient *, const Model::SearchRequest &, const Model::SearchOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > SearchResponseReceivedHandler
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String