AWS SDK for C++  1.9.41
AWS SDK for C++
PrometheusServiceClient.h
Go to the documentation of this file.
1 
6 #pragma once
17 #include <aws/core/NoResult.h>
20 #include <future>
21 #include <functional>
22 
23 namespace Aws
24 {
25 
26 namespace Http
27 {
28  class HttpClient;
29  class HttpClientFactory;
30 } // namespace Http
31 
32 namespace Utils
33 {
34  template< typename R, typename E> class Outcome;
35 namespace Threading
36 {
37  class Executor;
38 } // namespace Threading
39 } // namespace Utils
40 
41 namespace Auth
42 {
43  class AWSCredentials;
44  class AWSCredentialsProvider;
45 } // namespace Auth
46 
47 namespace Client
48 {
49  class RetryStrategy;
50 } // namespace Client
51 
52 namespace PrometheusService
53 {
54 
55 namespace Model
56 {
57  class CreateWorkspaceRequest;
58  class DeleteWorkspaceRequest;
59  class DescribeWorkspaceRequest;
60  class ListWorkspacesRequest;
61  class UpdateWorkspaceAliasRequest;
62 
68 
69  typedef std::future<CreateWorkspaceOutcome> CreateWorkspaceOutcomeCallable;
70  typedef std::future<DeleteWorkspaceOutcome> DeleteWorkspaceOutcomeCallable;
71  typedef std::future<DescribeWorkspaceOutcome> DescribeWorkspaceOutcomeCallable;
72  typedef std::future<ListWorkspacesOutcome> ListWorkspacesOutcomeCallable;
73  typedef std::future<UpdateWorkspaceAliasOutcome> UpdateWorkspaceAliasOutcomeCallable;
74 } // namespace Model
75 
77 
78  typedef std::function<void(const PrometheusServiceClient*, const Model::CreateWorkspaceRequest&, const Model::CreateWorkspaceOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > CreateWorkspaceResponseReceivedHandler;
79  typedef std::function<void(const PrometheusServiceClient*, const Model::DeleteWorkspaceRequest&, const Model::DeleteWorkspaceOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DeleteWorkspaceResponseReceivedHandler;
80  typedef std::function<void(const PrometheusServiceClient*, const Model::DescribeWorkspaceRequest&, const Model::DescribeWorkspaceOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DescribeWorkspaceResponseReceivedHandler;
81  typedef std::function<void(const PrometheusServiceClient*, const Model::ListWorkspacesRequest&, const Model::ListWorkspacesOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > ListWorkspacesResponseReceivedHandler;
82  typedef std::function<void(const PrometheusServiceClient*, const Model::UpdateWorkspaceAliasRequest&, const Model::UpdateWorkspaceAliasOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > UpdateWorkspaceAliasResponseReceivedHandler;
83 
88  {
89  public:
91 
97 
103 
108  PrometheusServiceClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
110 
112 
113 
120 
129 
137  virtual void CreateWorkspaceAsync(const Model::CreateWorkspaceRequest& request, const CreateWorkspaceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
138 
145 
154 
162  virtual void DeleteWorkspaceAsync(const Model::DeleteWorkspaceRequest& request, const DeleteWorkspaceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
163 
170 
179 
187  virtual void DescribeWorkspaceAsync(const Model::DescribeWorkspaceRequest& request, const DescribeWorkspaceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
188 
196 
206 
215  virtual void ListWorkspacesAsync(const Model::ListWorkspacesRequest& request, const ListWorkspacesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
216 
223 
232 
240  virtual void UpdateWorkspaceAliasAsync(const Model::UpdateWorkspaceAliasRequest& request, const UpdateWorkspaceAliasResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
241 
242 
243  void OverrideEndpoint(const Aws::String& endpoint);
244  private:
245  void init(const Aws::Client::ClientConfiguration& clientConfiguration);
246  void CreateWorkspaceAsyncHelper(const Model::CreateWorkspaceRequest& request, const CreateWorkspaceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
247  void DeleteWorkspaceAsyncHelper(const Model::DeleteWorkspaceRequest& request, const DeleteWorkspaceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
248  void DescribeWorkspaceAsyncHelper(const Model::DescribeWorkspaceRequest& request, const DescribeWorkspaceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
249  void ListWorkspacesAsyncHelper(const Model::ListWorkspacesRequest& request, const ListWorkspacesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
250  void UpdateWorkspaceAliasAsyncHelper(const Model::UpdateWorkspaceAliasRequest& request, const UpdateWorkspaceAliasResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
251 
252  Aws::String m_uri;
253  Aws::String m_configScheme;
254  std::shared_ptr<Aws::Utils::Threading::Executor> m_executor;
255  };
256 
257 } // namespace PrometheusService
258 } // namespace Aws
Aws::PrometheusService::PrometheusServiceClient::ListWorkspacesCallable
virtual Model::ListWorkspacesOutcomeCallable ListWorkspacesCallable(const Model::ListWorkspacesRequest &request) const
Aws::DirectoryService::Model::LDAPSType::NOT_SET
@ NOT_SET
Aws::PrometheusService::PrometheusServiceClient::BASECLASS
Aws::Client::AWSJsonClient BASECLASS
Definition: PrometheusServiceClient.h:90
Aws::PrometheusService::ListWorkspacesResponseReceivedHandler
std::function< void(const PrometheusServiceClient *, const Model::ListWorkspacesRequest &, const Model::ListWorkspacesOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > ListWorkspacesResponseReceivedHandler
Definition: PrometheusServiceClient.h:81
Aws::PrometheusService::Model::ListWorkspacesOutcome
Aws::Utils::Outcome< ListWorkspacesResult, PrometheusServiceError > ListWorkspacesOutcome
Definition: PrometheusServiceClient.h:66
Aws::PrometheusService::PrometheusServiceClient::PrometheusServiceClient
PrometheusServiceClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, const Aws::Client::ClientConfiguration &clientConfiguration=Aws::Client::ClientConfiguration())
Aws::PrometheusService::PrometheusServiceClient::UpdateWorkspaceAliasAsync
virtual void UpdateWorkspaceAliasAsync(const Model::UpdateWorkspaceAliasRequest &request, const UpdateWorkspaceAliasResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Aws::PrometheusService::Model::UpdateWorkspaceAliasRequest
Definition: UpdateWorkspaceAliasRequest.h:27
Aws::PrometheusService::PrometheusServiceClient::DescribeWorkspaceCallable
virtual Model::DescribeWorkspaceOutcomeCallable DescribeWorkspaceCallable(const Model::DescribeWorkspaceRequest &request) const
AWSError.h
Aws::PrometheusService::DescribeWorkspaceResponseReceivedHandler
std::function< void(const PrometheusServiceClient *, const Model::DescribeWorkspaceRequest &, const Model::DescribeWorkspaceOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > DescribeWorkspaceResponseReceivedHandler
Definition: PrometheusServiceClient.h:80
Aws::PrometheusService::Model::UpdateWorkspaceAliasOutcome
Aws::Utils::Outcome< Aws::NoResult, PrometheusServiceError > UpdateWorkspaceAliasOutcome
Definition: PrometheusServiceClient.h:67
Aws::PrometheusService::Model::DescribeWorkspaceRequest
Definition: DescribeWorkspaceRequest.h:26
Aws::PrometheusService::Model::DeleteWorkspaceOutcome
Aws::Utils::Outcome< Aws::NoResult, PrometheusServiceError > DeleteWorkspaceOutcome
Definition: PrometheusServiceClient.h:64
Aws::PrometheusService::PrometheusServiceClient::PrometheusServiceClient
PrometheusServiceClient(const Aws::Client::ClientConfiguration &clientConfiguration=Aws::Client::ClientConfiguration())
Aws::PrometheusService::PrometheusServiceClient::ListWorkspaces
virtual Model::ListWorkspacesOutcome ListWorkspaces(const Model::ListWorkspacesRequest &request) const
Aws::PrometheusService::Model::UpdateWorkspaceAliasOutcomeCallable
std::future< UpdateWorkspaceAliasOutcome > UpdateWorkspaceAliasOutcomeCallable
Definition: PrometheusServiceClient.h:73
Aws::PrometheusService::PrometheusServiceClient::CreateWorkspaceAsync
virtual void CreateWorkspaceAsync(const Model::CreateWorkspaceRequest &request, const CreateWorkspaceResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Aws::PrometheusService::DeleteWorkspaceResponseReceivedHandler
std::function< void(const PrometheusServiceClient *, const Model::DeleteWorkspaceRequest &, const Model::DeleteWorkspaceOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > DeleteWorkspaceResponseReceivedHandler
Definition: PrometheusServiceClient.h:79
Aws::PrometheusService::PrometheusServiceClient::UpdateWorkspaceAlias
virtual Model::UpdateWorkspaceAliasOutcome UpdateWorkspaceAlias(const Model::UpdateWorkspaceAliasRequest &request) const
AsyncCallerContext.h
AWS_PROMETHEUSSERVICE_API
#define AWS_PROMETHEUSSERVICE_API
Definition: PrometheusService_EXPORTS.h:28
Aws::PrometheusService::Model::DescribeWorkspaceOutcomeCallable
std::future< DescribeWorkspaceOutcome > DescribeWorkspaceOutcomeCallable
Definition: PrometheusServiceClient.h:71
Aws::PrometheusService::UpdateWorkspaceAliasResponseReceivedHandler
std::function< void(const PrometheusServiceClient *, const Model::UpdateWorkspaceAliasRequest &, const Model::UpdateWorkspaceAliasOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > UpdateWorkspaceAliasResponseReceivedHandler
Definition: PrometheusServiceClient.h:82
Aws::PrometheusService::Model::CreateWorkspaceOutcomeCallable
std::future< CreateWorkspaceOutcome > CreateWorkspaceOutcomeCallable
Definition: PrometheusServiceClient.h:69
Aws::PrometheusService::PrometheusServiceClient::CreateWorkspaceCallable
virtual Model::CreateWorkspaceOutcomeCallable CreateWorkspaceCallable(const Model::CreateWorkspaceRequest &request) const
NoResult.h
Aws::Client::ClientConfiguration
Definition: ClientConfiguration.h:53
Aws::PrometheusService::Model::ListWorkspacesRequest
Definition: ListWorkspacesRequest.h:30
Aws::PrometheusService::PrometheusServiceClient::PrometheusServiceClient
PrometheusServiceClient(const Aws::Auth::AWSCredentials &credentials, const Aws::Client::ClientConfiguration &clientConfiguration=Aws::Client::ClientConfiguration())
Aws::Auth::AWSCredentials
Definition: AWSCredentials.h:19
Aws::PrometheusService::PrometheusServiceClient::DescribeWorkspaceAsync
virtual void DescribeWorkspaceAsync(const Model::DescribeWorkspaceRequest &request, const DescribeWorkspaceResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
AWSString.h
Aws::PrometheusService::PrometheusServiceClient::OverrideEndpoint
void OverrideEndpoint(const Aws::String &endpoint)
Aws::Client::AWSJsonClient
Definition: AWSClient.h:323
Aws::PrometheusService::PrometheusServiceClient::~PrometheusServiceClient
virtual ~PrometheusServiceClient()
Aws::PrometheusService::Model::DeleteWorkspaceOutcomeCallable
std::future< DeleteWorkspaceOutcome > DeleteWorkspaceOutcomeCallable
Definition: PrometheusServiceClient.h:70
DescribeWorkspaceResult.h
Aws::PrometheusService::PrometheusServiceClient::UpdateWorkspaceAliasCallable
virtual Model::UpdateWorkspaceAliasOutcomeCallable UpdateWorkspaceAliasCallable(const Model::UpdateWorkspaceAliasRequest &request) const
PrometheusServiceErrors.h
Aws::PrometheusService::Model::ListWorkspacesOutcomeCallable
std::future< ListWorkspacesOutcome > ListWorkspacesOutcomeCallable
Definition: PrometheusServiceClient.h:72
Aws::PrometheusService::PrometheusServiceClient::ListWorkspacesAsync
virtual void ListWorkspacesAsync(const Model::ListWorkspacesRequest &request, const ListWorkspacesResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
PrometheusService_EXPORTS.h
ClientConfiguration.h
Aws
Definition: AccessManagementClient.h:15
HttpTypes.h
Aws::PrometheusService::Model::DeleteWorkspaceRequest
Definition: DeleteWorkspaceRequest.h:31
Aws::Utils::Outcome
Definition: Outcome.h:26
Aws::PrometheusService::CreateWorkspaceResponseReceivedHandler
std::function< void(const PrometheusServiceClient *, const Model::CreateWorkspaceRequest &, const Model::CreateWorkspaceOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > CreateWorkspaceResponseReceivedHandler
Definition: PrometheusServiceClient.h:76
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::PrometheusService::Model::CreateWorkspaceOutcome
Aws::Utils::Outcome< CreateWorkspaceResult, PrometheusServiceError > CreateWorkspaceOutcome
Definition: PrometheusServiceClient.h:61
Aws::PrometheusService::PrometheusServiceClient
Definition: PrometheusServiceClient.h:88
AWSClient.h
Aws::PrometheusService::PrometheusServiceClient::DeleteWorkspace
virtual Model::DeleteWorkspaceOutcome DeleteWorkspace(const Model::DeleteWorkspaceRequest &request) const
Aws::PrometheusService::PrometheusServiceClient::CreateWorkspace
virtual Model::CreateWorkspaceOutcome CreateWorkspace(const Model::CreateWorkspaceRequest &request) const
Aws::PrometheusService::PrometheusServiceClient::DescribeWorkspace
virtual Model::DescribeWorkspaceOutcome DescribeWorkspace(const Model::DescribeWorkspaceRequest &request) const
Aws::PrometheusService::Model::DescribeWorkspaceOutcome
Aws::Utils::Outcome< DescribeWorkspaceResult, PrometheusServiceError > DescribeWorkspaceOutcome
Definition: PrometheusServiceClient.h:65
CreateWorkspaceResult.h
Aws::PrometheusService::PrometheusServiceClient::DeleteWorkspaceCallable
virtual Model::DeleteWorkspaceOutcomeCallable DeleteWorkspaceCallable(const Model::DeleteWorkspaceRequest &request) const
ListWorkspacesResult.h
Aws::PrometheusService::PrometheusServiceClient::DeleteWorkspaceAsync
virtual void DeleteWorkspaceAsync(const Model::DeleteWorkspaceRequest &request, const DeleteWorkspaceResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
JsonSerializer.h
Aws::PrometheusService::Model::CreateWorkspaceRequest
Definition: CreateWorkspaceRequest.h:27