Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor with smithy client for json protocol non customized services [Work in Progress] #3208

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading