Skip to content

Commit

Permalink
version 0: refactor with smithy client for json protocol non customized
Browse files Browse the repository at this point in the history
  • Loading branch information
sbera87 committed Nov 27, 2024
1 parent ceca736 commit bdd79cc
Show file tree
Hide file tree
Showing 15 changed files with 1,073 additions and 1,087 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,18 @@
#pragma once
#include <aws/marketplace-catalog/MarketplaceCatalog_EXPORTS.h>
#include <aws/core/client/ClientConfiguration.h>
#include <aws/core/client/AWSClient.h>
#include <aws/core/client/AWSClientAsyncCRTP.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/marketplace-catalog/MarketplaceCatalogServiceClientModel.h>
#include <smithy/client/AwsSmithyClient.h>
#include <smithy/identity/auth/built-in/SigV4AuthSchemeResolver.h>
#include <smithy/identity/auth/built-in/SigV4AuthScheme.h>
#include <smithy/client/serializer/JsonOutcomeSerializer.h>

namespace Aws
{
namespace MarketplaceCatalog
{
AWS_MARKETPLACECATALOG_API extern const char SERVICE_NAME[];
/**
* <p>Catalog API actions allow you to manage your entities through list, describe,
* and update capabilities. An entity can be a product or an offer on AWS
Expand All @@ -23,12 +26,19 @@ namespace MarketplaceCatalog
* deployment pipelines. You can also create your own applications on top of the
* Catalog API to manage your products on AWS Marketplace.</p>
*/
class AWS_MARKETPLACECATALOG_API MarketplaceCatalogClient : public Aws::Client::AWSJsonClient, public Aws::Client::ClientWithAsyncTemplateMethods<MarketplaceCatalogClient>
class AWS_MARKETPLACECATALOG_API MarketplaceCatalogClient : smithy::client::AwsSmithyClientT<Aws::MarketplaceCatalog::SERVICE_NAME,
Aws::MarketplaceCatalog::MarketplaceCatalogClientConfiguration,
smithy::SigV4AuthSchemeResolver<>,
Aws::Crt::Variant<smithy::SigV4AuthScheme>,
MarketplaceCatalogEndpointProviderBase,
smithy::client::JsonOutcomeSerializer,
smithy::client::JsonOutcome>,
Aws::Client::ClientWithAsyncTemplateMethods<MarketplaceCatalogClient>
{
public:
typedef Aws::Client::AWSJsonClient BASECLASS;
static const char* GetServiceName();
static const char* GetAllocationTag();
inline const char* GetServiceClientName() const override { return "Marketplace Catalog"; }

typedef MarketplaceCatalogClientConfiguration ClientConfigurationType;
typedef MarketplaceCatalogEndpointProvider EndpointProviderType;
Expand Down Expand Up @@ -459,8 +469,6 @@ namespace MarketplaceCatalog
friend class Aws::Client::ClientWithAsyncTemplateMethods<MarketplaceCatalogClient>;
void init(const MarketplaceCatalogClientConfiguration& clientConfiguration);

MarketplaceCatalogClientConfiguration m_clientConfiguration;
std::shared_ptr<MarketplaceCatalogEndpointProviderBase> m_endpointProvider;
};

} // namespace MarketplaceCatalog
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,18 @@
#pragma once
#include <aws/qbusiness/QBusiness_EXPORTS.h>
#include <aws/core/client/ClientConfiguration.h>
#include <aws/core/client/AWSClient.h>
#include <aws/core/client/AWSClientAsyncCRTP.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/qbusiness/QBusinessServiceClientModel.h>
#include <smithy/client/AwsSmithyClient.h>
#include <smithy/identity/auth/built-in/SigV4AuthSchemeResolver.h>
#include <smithy/identity/auth/built-in/SigV4AuthScheme.h>
#include <smithy/client/serializer/JsonOutcomeSerializer.h>

namespace Aws
{
namespace QBusiness
{
AWS_QBUSINESS_API extern const char SERVICE_NAME[];
/**
* <p>This is the <i>Amazon Q Business</i> API Reference. Amazon Q Business is a
* fully managed, generative-AI powered enterprise chat assistant that you can
Expand All @@ -41,12 +44,19 @@ namespace QBusiness
* href="https://docs.aws.amazon.com/general/latest/gr/amazonq.html">Amazon Web
* Services General Reference</a> </i> </p> </li> </ul>
*/
class AWS_QBUSINESS_API QBusinessClient : public Aws::Client::AWSJsonClient, public Aws::Client::ClientWithAsyncTemplateMethods<QBusinessClient>
class AWS_QBUSINESS_API QBusinessClient : smithy::client::AwsSmithyClientT<Aws::QBusiness::SERVICE_NAME,
Aws::QBusiness::QBusinessClientConfiguration,
smithy::SigV4AuthSchemeResolver<>,
Aws::Crt::Variant<smithy::SigV4AuthScheme>,
QBusinessEndpointProviderBase,
smithy::client::JsonOutcomeSerializer,
smithy::client::JsonOutcome>,
Aws::Client::ClientWithAsyncTemplateMethods<QBusinessClient>
{
public:
typedef Aws::Client::AWSJsonClient BASECLASS;
static const char* GetServiceName();
static const char* GetAllocationTag();
inline const char* GetServiceClientName() const override { return "QBusiness"; }

typedef QBusinessClientConfiguration ClientConfigurationType;
typedef QBusinessEndpointProvider EndpointProviderType;
Expand Down Expand Up @@ -1587,8 +1597,6 @@ namespace QBusiness
friend class Aws::Client::ClientWithAsyncTemplateMethods<QBusinessClient>;
void init(const QBusinessClientConfiguration& clientConfiguration);

QBusinessClientConfiguration m_clientConfiguration;
std::shared_ptr<QBusinessEndpointProviderBase> m_endpointProvider;
};

} // namespace QBusiness
Expand Down
Loading

0 comments on commit bdd79cc

Please sign in to comment.