AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InspectorscanClient.h
1
6#pragma once
7#include <aws/inspector-scan/Inspectorscan_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/inspector-scan/InspectorscanServiceClientModel.h>
13
14namespace Aws
15{
16namespace inspectorscan
17{
22 class AWS_INSPECTORSCAN_API InspectorscanClient : public Aws::Client::AWSJsonClient, public Aws::Client::ClientWithAsyncTemplateMethods<InspectorscanClient>
23 {
24 public:
26 static const char* GetServiceName();
27 static const char* GetAllocationTag();
28
31
37 std::shared_ptr<InspectorscanEndpointProviderBase> endpointProvider = nullptr);
38
44 std::shared_ptr<InspectorscanEndpointProviderBase> endpointProvider = nullptr,
46
51 InspectorscanClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
52 std::shared_ptr<InspectorscanEndpointProviderBase> endpointProvider = nullptr,
54
55
56 /* Legacy constructors due deprecation */
62
68 const Aws::Client::ClientConfiguration& clientConfiguration);
69
74 InspectorscanClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
75 const Aws::Client::ClientConfiguration& clientConfiguration);
76
77 /* End of legacy constructors due deprecation */
79
89
93 template<typename ScanSbomRequestT = Model::ScanSbomRequest>
94 Model::ScanSbomOutcomeCallable ScanSbomCallable(const ScanSbomRequestT& request) const
95 {
96 return SubmitCallable(&InspectorscanClient::ScanSbom, request);
97 }
98
102 template<typename ScanSbomRequestT = Model::ScanSbomRequest>
103 void ScanSbomAsync(const ScanSbomRequestT& request, const ScanSbomResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
104 {
105 return SubmitAsync(&InspectorscanClient::ScanSbom, request, handler, context);
106 }
107
108
109 void OverrideEndpoint(const Aws::String& endpoint);
110 std::shared_ptr<InspectorscanEndpointProviderBase>& accessEndpointProvider();
111 private:
113 void init(const InspectorscanClientConfiguration& clientConfiguration);
114
115 InspectorscanClientConfiguration m_clientConfiguration;
116 std::shared_ptr<InspectorscanEndpointProviderBase> m_endpointProvider;
117 };
118
119} // namespace inspectorscan
120} // namespace Aws
Model::ScanSbomOutcomeCallable ScanSbomCallable(const ScanSbomRequestT &request) const
static const char * GetAllocationTag()
void OverrideEndpoint(const Aws::String &endpoint)
virtual Model::ScanSbomOutcome ScanSbom(const Model::ScanSbomRequest &request) const
InspectorscanClientConfiguration ClientConfigurationType
InspectorscanClient(const Aws::Client::ClientConfiguration &clientConfiguration)
InspectorscanClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, const Aws::Client::ClientConfiguration &clientConfiguration)
InspectorscanClient(const Aws::Auth::AWSCredentials &credentials, const Aws::Client::ClientConfiguration &clientConfiguration)
void ScanSbomAsync(const ScanSbomRequestT &request, const ScanSbomResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
InspectorscanClient(const Aws::inspectorscan::InspectorscanClientConfiguration &clientConfiguration=Aws::inspectorscan::InspectorscanClientConfiguration(), std::shared_ptr< InspectorscanEndpointProviderBase > endpointProvider=nullptr)
InspectorscanClient(const Aws::Auth::AWSCredentials &credentials, std::shared_ptr< InspectorscanEndpointProviderBase > endpointProvider=nullptr, const Aws::inspectorscan::InspectorscanClientConfiguration &clientConfiguration=Aws::inspectorscan::InspectorscanClientConfiguration())
InspectorscanEndpointProvider EndpointProviderType
std::shared_ptr< InspectorscanEndpointProviderBase > & accessEndpointProvider()
InspectorscanClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, std::shared_ptr< InspectorscanEndpointProviderBase > endpointProvider=nullptr, const Aws::inspectorscan::InspectorscanClientConfiguration &clientConfiguration=Aws::inspectorscan::InspectorscanClientConfiguration())
std::future< ScanSbomOutcome > ScanSbomOutcomeCallable
std::function< void(const InspectorscanClient *, const Model::ScanSbomRequest &, const Model::ScanSbomOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > ScanSbomResponseReceivedHandler
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String