AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ArtifactClient.h
1
6#pragma once
7#include <aws/artifact/Artifact_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/artifact/ArtifactServiceClientModel.h>
13
14namespace Aws
15{
16namespace Artifact
17{
22 class AWS_ARTIFACT_API ArtifactClient : public Aws::Client::AWSJsonClient, public Aws::Client::ClientWithAsyncTemplateMethods<ArtifactClient>
23 {
24 public:
26 static const char* GetServiceName();
27 static const char* GetAllocationTag();
28
31
37 std::shared_ptr<ArtifactEndpointProviderBase> endpointProvider = nullptr);
38
44 std::shared_ptr<ArtifactEndpointProviderBase> endpointProvider = nullptr,
46
51 ArtifactClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
52 std::shared_ptr<ArtifactEndpointProviderBase> endpointProvider = nullptr,
54
55
56 /* Legacy constructors due deprecation */
62
68 const Aws::Client::ClientConfiguration& clientConfiguration);
69
74 ArtifactClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
75 const Aws::Client::ClientConfiguration& clientConfiguration);
76
77 /* End of legacy constructors due deprecation */
78 virtual ~ArtifactClient();
79
86
90 template<typename GetAccountSettingsRequestT = Model::GetAccountSettingsRequest>
91 Model::GetAccountSettingsOutcomeCallable GetAccountSettingsCallable(const GetAccountSettingsRequestT& request = {}) const
92 {
93 return SubmitCallable(&ArtifactClient::GetAccountSettings, request);
94 }
95
99 template<typename GetAccountSettingsRequestT = Model::GetAccountSettingsRequest>
100 void GetAccountSettingsAsync(const GetAccountSettingsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr, const GetAccountSettingsRequestT& request = {}) const
101 {
102 return SubmitAsync(&ArtifactClient::GetAccountSettings, request, handler, context);
103 }
104
111
115 template<typename GetReportRequestT = Model::GetReportRequest>
116 Model::GetReportOutcomeCallable GetReportCallable(const GetReportRequestT& request) const
117 {
118 return SubmitCallable(&ArtifactClient::GetReport, request);
119 }
120
124 template<typename GetReportRequestT = Model::GetReportRequest>
125 void GetReportAsync(const GetReportRequestT& request, const GetReportResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
126 {
127 return SubmitAsync(&ArtifactClient::GetReport, request, handler, context);
128 }
129
136
140 template<typename GetReportMetadataRequestT = Model::GetReportMetadataRequest>
141 Model::GetReportMetadataOutcomeCallable GetReportMetadataCallable(const GetReportMetadataRequestT& request) const
142 {
143 return SubmitCallable(&ArtifactClient::GetReportMetadata, request);
144 }
145
149 template<typename GetReportMetadataRequestT = Model::GetReportMetadataRequest>
150 void GetReportMetadataAsync(const GetReportMetadataRequestT& request, const GetReportMetadataResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
151 {
152 return SubmitAsync(&ArtifactClient::GetReportMetadata, request, handler, context);
153 }
154
162
166 template<typename GetTermForReportRequestT = Model::GetTermForReportRequest>
167 Model::GetTermForReportOutcomeCallable GetTermForReportCallable(const GetTermForReportRequestT& request) const
168 {
169 return SubmitCallable(&ArtifactClient::GetTermForReport, request);
170 }
171
175 template<typename GetTermForReportRequestT = Model::GetTermForReportRequest>
176 void GetTermForReportAsync(const GetTermForReportRequestT& request, const GetTermForReportResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
177 {
178 return SubmitAsync(&ArtifactClient::GetTermForReport, request, handler, context);
179 }
180
187
191 template<typename ListReportsRequestT = Model::ListReportsRequest>
192 Model::ListReportsOutcomeCallable ListReportsCallable(const ListReportsRequestT& request = {}) const
193 {
194 return SubmitCallable(&ArtifactClient::ListReports, request);
195 }
196
200 template<typename ListReportsRequestT = Model::ListReportsRequest>
201 void ListReportsAsync(const ListReportsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr, const ListReportsRequestT& request = {}) const
202 {
203 return SubmitAsync(&ArtifactClient::ListReports, request, handler, context);
204 }
205
212
216 template<typename PutAccountSettingsRequestT = Model::PutAccountSettingsRequest>
217 Model::PutAccountSettingsOutcomeCallable PutAccountSettingsCallable(const PutAccountSettingsRequestT& request = {}) const
218 {
219 return SubmitCallable(&ArtifactClient::PutAccountSettings, request);
220 }
221
225 template<typename PutAccountSettingsRequestT = Model::PutAccountSettingsRequest>
226 void PutAccountSettingsAsync(const PutAccountSettingsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr, const PutAccountSettingsRequestT& request = {}) const
227 {
228 return SubmitAsync(&ArtifactClient::PutAccountSettings, request, handler, context);
229 }
230
231
232 void OverrideEndpoint(const Aws::String& endpoint);
233 std::shared_ptr<ArtifactEndpointProviderBase>& accessEndpointProvider();
234 private:
236 void init(const ArtifactClientConfiguration& clientConfiguration);
237
238 ArtifactClientConfiguration m_clientConfiguration;
239 std::shared_ptr<ArtifactEndpointProviderBase> m_endpointProvider;
240 };
241
242} // namespace Artifact
243} // namespace Aws
static const char * GetAllocationTag()
ArtifactClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, const Aws::Client::ClientConfiguration &clientConfiguration)
Aws::Client::AWSJsonClient BASECLASS
ArtifactClientConfiguration ClientConfigurationType
Model::GetReportMetadataOutcomeCallable GetReportMetadataCallable(const GetReportMetadataRequestT &request) const
void GetReportMetadataAsync(const GetReportMetadataRequestT &request, const GetReportMetadataResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Model::GetTermForReportOutcomeCallable GetTermForReportCallable(const GetTermForReportRequestT &request) const
ArtifactClient(const Aws::Artifact::ArtifactClientConfiguration &clientConfiguration=Aws::Artifact::ArtifactClientConfiguration(), std::shared_ptr< ArtifactEndpointProviderBase > endpointProvider=nullptr)
ArtifactClient(const Aws::Client::ClientConfiguration &clientConfiguration)
virtual Model::GetAccountSettingsOutcome GetAccountSettings(const Model::GetAccountSettingsRequest &request={}) const
virtual Model::ListReportsOutcome ListReports(const Model::ListReportsRequest &request={}) const
void GetAccountSettingsAsync(const GetAccountSettingsResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr, const GetAccountSettingsRequestT &request={}) const
std::shared_ptr< ArtifactEndpointProviderBase > & accessEndpointProvider()
static const char * GetServiceName()
ArtifactClient(const Aws::Auth::AWSCredentials &credentials, const Aws::Client::ClientConfiguration &clientConfiguration)
Model::GetAccountSettingsOutcomeCallable GetAccountSettingsCallable(const GetAccountSettingsRequestT &request={}) const
ArtifactClient(const Aws::Auth::AWSCredentials &credentials, std::shared_ptr< ArtifactEndpointProviderBase > endpointProvider=nullptr, const Aws::Artifact::ArtifactClientConfiguration &clientConfiguration=Aws::Artifact::ArtifactClientConfiguration())
Model::GetReportOutcomeCallable GetReportCallable(const GetReportRequestT &request) const
virtual Model::GetTermForReportOutcome GetTermForReport(const Model::GetTermForReportRequest &request) const
virtual Model::GetReportMetadataOutcome GetReportMetadata(const Model::GetReportMetadataRequest &request) const
virtual Model::PutAccountSettingsOutcome PutAccountSettings(const Model::PutAccountSettingsRequest &request={}) const
virtual Model::GetReportOutcome GetReport(const Model::GetReportRequest &request) const
ArtifactEndpointProvider EndpointProviderType
Model::ListReportsOutcomeCallable ListReportsCallable(const ListReportsRequestT &request={}) const
void OverrideEndpoint(const Aws::String &endpoint)
void ListReportsAsync(const ListReportsResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr, const ListReportsRequestT &request={}) const
void PutAccountSettingsAsync(const PutAccountSettingsResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr, const PutAccountSettingsRequestT &request={}) const
Model::PutAccountSettingsOutcomeCallable PutAccountSettingsCallable(const PutAccountSettingsRequestT &request={}) const
ArtifactClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, std::shared_ptr< ArtifactEndpointProviderBase > endpointProvider=nullptr, const Aws::Artifact::ArtifactClientConfiguration &clientConfiguration=Aws::Artifact::ArtifactClientConfiguration())
void GetReportAsync(const GetReportRequestT &request, const GetReportResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
void GetTermForReportAsync(const GetTermForReportRequestT &request, const GetTermForReportResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
std::future< PutAccountSettingsOutcome > PutAccountSettingsOutcomeCallable
std::future< GetReportMetadataOutcome > GetReportMetadataOutcomeCallable
std::future< GetReportOutcome > GetReportOutcomeCallable
std::future< ListReportsOutcome > ListReportsOutcomeCallable
std::future< GetAccountSettingsOutcome > GetAccountSettingsOutcomeCallable
std::future< GetTermForReportOutcome > GetTermForReportOutcomeCallable
std::function< void(const ArtifactClient *, const Model::GetTermForReportRequest &, const Model::GetTermForReportOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > GetTermForReportResponseReceivedHandler
std::function< void(const ArtifactClient *, const Model::GetReportMetadataRequest &, const Model::GetReportMetadataOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > GetReportMetadataResponseReceivedHandler
std::function< void(const ArtifactClient *, const Model::GetAccountSettingsRequest &, const Model::GetAccountSettingsOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > GetAccountSettingsResponseReceivedHandler
std::function< void(const ArtifactClient *, const Model::ListReportsRequest &, const Model::ListReportsOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > ListReportsResponseReceivedHandler
std::function< void(const ArtifactClient *, const Model::GetReportRequest &, const Model::GetReportOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > GetReportResponseReceivedHandler
std::function< void(const ArtifactClient *, const Model::PutAccountSettingsRequest &, const Model::PutAccountSettingsOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > PutAccountSettingsResponseReceivedHandler
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String