AWS SDK for C++

AWS SDK for C++ Version 1.11.867

Loading...
Searching...
No Matches
AgentRegistryClient.h
1
6#pragma once
7#include <aws/agent-registry/AgentRegistryPaginationBase.h>
8#include <aws/agent-registry/AgentRegistryServiceClientModel.h>
9#include <aws/agent-registry/AgentRegistryWaiter.h>
10#include <aws/agent-registry/AgentRegistry_EXPORTS.h>
11#include <aws/core/client/AWSClient.h>
12#include <aws/core/client/AWSClientAsyncCRTP.h>
13#include <aws/core/client/ClientConfiguration.h>
14#include <aws/core/utils/json/JsonSerializer.h>
15
16namespace Aws {
17namespace AgentRegistry {
22class AWS_AGENTREGISTRY_API AgentRegistryClient : public Aws::Client::AWSJsonClient,
23 public Aws::Client::ClientWithAsyncTemplateMethods<AgentRegistryClient>,
24 public AgentRegistryPaginationBase<AgentRegistryClient>,
25 public AgentRegistryWaiter<AgentRegistryClient> {
26 public:
28 static const char* GetServiceName();
29 static const char* GetAllocationTag();
30
33
40 std::shared_ptr<AgentRegistryEndpointProviderBase> endpointProvider = nullptr);
41
47 std::shared_ptr<AgentRegistryEndpointProviderBase> endpointProvider = nullptr,
50
55 AgentRegistryClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
56 std::shared_ptr<AgentRegistryEndpointProviderBase> endpointProvider = nullptr,
59
60 /* Legacy constructors due deprecation */
66
72
77 AgentRegistryClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
78 const Aws::Client::ClientConfiguration& clientConfiguration);
79
80 /* End of legacy constructors due deprecation */
82
93
98 template <typename BatchGetDiscoverableRegistryRecordRequestT = Model::BatchGetDiscoverableRegistryRecordRequest>
100 const BatchGetDiscoverableRegistryRecordRequestT& request) const {
101 return SubmitCallable(&AgentRegistryClient::BatchGetDiscoverableRegistryRecord, request);
102 }
103
108 template <typename BatchGetDiscoverableRegistryRecordRequestT = Model::BatchGetDiscoverableRegistryRecordRequest>
109 void BatchGetDiscoverableRegistryRecordAsync(const BatchGetDiscoverableRegistryRecordRequestT& request,
111 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
112 return SubmitAsync(&AgentRegistryClient::BatchGetDiscoverableRegistryRecord, request, handler, context);
113 }
114
123
128 template <typename ListDiscoverableRegistryRecordsRequestT = Model::ListDiscoverableRegistryRecordsRequest>
130 const ListDiscoverableRegistryRecordsRequestT& request) const {
131 return SubmitCallable(&AgentRegistryClient::ListDiscoverableRegistryRecords, request);
132 }
133
138 template <typename ListDiscoverableRegistryRecordsRequestT = Model::ListDiscoverableRegistryRecordsRequest>
139 void ListDiscoverableRegistryRecordsAsync(const ListDiscoverableRegistryRecordsRequestT& request,
141 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
142 return SubmitAsync(&AgentRegistryClient::ListDiscoverableRegistryRecords, request, handler, context);
143 }
144
154
159 template <typename SearchDiscoverableRegistryRecordsRequestT = Model::SearchDiscoverableRegistryRecordsRequest>
161 const SearchDiscoverableRegistryRecordsRequestT& request) const {
162 return SubmitCallable(&AgentRegistryClient::SearchDiscoverableRegistryRecords, request);
163 }
164
169 template <typename SearchDiscoverableRegistryRecordsRequestT = Model::SearchDiscoverableRegistryRecordsRequest>
170 void SearchDiscoverableRegistryRecordsAsync(const SearchDiscoverableRegistryRecordsRequestT& request,
172 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
173 return SubmitAsync(&AgentRegistryClient::SearchDiscoverableRegistryRecords, request, handler, context);
174 }
175
176 virtual void OverrideEndpoint(const Aws::String& endpoint);
177 virtual std::shared_ptr<AgentRegistryEndpointProviderBase>& accessEndpointProvider();
178
179 private:
181 void init(const AgentRegistryClientConfiguration& clientConfiguration);
182
184
185 InvokeOperationOutcome InvokeServiceOperation(const AmazonWebServiceRequest& request,
186 const std::function<void(Aws::Endpoint::ResolveEndpointOutcome&)>& resolveUri,
187 Aws::Http::HttpMethod httpMethod) const;
188
189 AgentRegistryClientConfiguration m_clientConfiguration;
190 std::shared_ptr<AgentRegistryEndpointProviderBase> m_endpointProvider;
191};
192
193} // namespace AgentRegistry
194} // namespace Aws
AgentRegistryClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, std::shared_ptr< AgentRegistryEndpointProviderBase > endpointProvider=nullptr, const Aws::AgentRegistry::AgentRegistryClientConfiguration &clientConfiguration=Aws::AgentRegistry::AgentRegistryClientConfiguration())
Model::SearchDiscoverableRegistryRecordsOutcomeCallable SearchDiscoverableRegistryRecordsCallable(const SearchDiscoverableRegistryRecordsRequestT &request) const
Model::BatchGetDiscoverableRegistryRecordOutcomeCallable BatchGetDiscoverableRegistryRecordCallable(const BatchGetDiscoverableRegistryRecordRequestT &request) const
virtual Model::BatchGetDiscoverableRegistryRecordOutcome BatchGetDiscoverableRegistryRecord(const Model::BatchGetDiscoverableRegistryRecordRequest &request) const
static const char * GetAllocationTag()
virtual std::shared_ptr< AgentRegistryEndpointProviderBase > & accessEndpointProvider()
void BatchGetDiscoverableRegistryRecordAsync(const BatchGetDiscoverableRegistryRecordRequestT &request, const BatchGetDiscoverableRegistryRecordResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
virtual Model::ListDiscoverableRegistryRecordsOutcome ListDiscoverableRegistryRecords(const Model::ListDiscoverableRegistryRecordsRequest &request) const
Model::ListDiscoverableRegistryRecordsOutcomeCallable ListDiscoverableRegistryRecordsCallable(const ListDiscoverableRegistryRecordsRequestT &request) const
virtual Model::SearchDiscoverableRegistryRecordsOutcome SearchDiscoverableRegistryRecords(const Model::SearchDiscoverableRegistryRecordsRequest &request) const
virtual void OverrideEndpoint(const Aws::String &endpoint)
AgentRegistryClient(const Aws::Auth::AWSCredentials &credentials, std::shared_ptr< AgentRegistryEndpointProviderBase > endpointProvider=nullptr, const Aws::AgentRegistry::AgentRegistryClientConfiguration &clientConfiguration=Aws::AgentRegistry::AgentRegistryClientConfiguration())
AgentRegistryClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, const Aws::Client::ClientConfiguration &clientConfiguration)
void SearchDiscoverableRegistryRecordsAsync(const SearchDiscoverableRegistryRecordsRequestT &request, const SearchDiscoverableRegistryRecordsResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
AgentRegistryClient(const Aws::Auth::AWSCredentials &credentials, const Aws::Client::ClientConfiguration &clientConfiguration)
AgentRegistryEndpointProvider EndpointProviderType
void ListDiscoverableRegistryRecordsAsync(const ListDiscoverableRegistryRecordsRequestT &request, const ListDiscoverableRegistryRecordsResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
AgentRegistryClient(const Aws::Client::ClientConfiguration &clientConfiguration)
AgentRegistryClient(const Aws::AgentRegistry::AgentRegistryClientConfiguration &clientConfiguration=Aws::AgentRegistry::AgentRegistryClientConfiguration(), std::shared_ptr< AgentRegistryEndpointProviderBase > endpointProvider=nullptr)
AgentRegistryClientConfiguration ClientConfigurationType
std::future< ListDiscoverableRegistryRecordsOutcome > ListDiscoverableRegistryRecordsOutcomeCallable
std::future< SearchDiscoverableRegistryRecordsOutcome > SearchDiscoverableRegistryRecordsOutcomeCallable
std::future< BatchGetDiscoverableRegistryRecordOutcome > BatchGetDiscoverableRegistryRecordOutcomeCallable
std::function< void(const AgentRegistryClient *, const Model::SearchDiscoverableRegistryRecordsRequest &, const Model::SearchDiscoverableRegistryRecordsOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &)> SearchDiscoverableRegistryRecordsResponseReceivedHandler
std::function< void(const AgentRegistryClient *, const Model::BatchGetDiscoverableRegistryRecordRequest &, const Model::BatchGetDiscoverableRegistryRecordOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &)> BatchGetDiscoverableRegistryRecordResponseReceivedHandler
std::function< void(const AgentRegistryClient *, const Model::ListDiscoverableRegistryRecordsRequest &, const Model::ListDiscoverableRegistryRecordsOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &)> ListDiscoverableRegistryRecordsResponseReceivedHandler
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String