MarketplaceMeteringClient Class
(QtAws::MarketplaceMetering::MarketplaceMeteringClient)The MarketplaceMeteringClient class provides access to the AWSMarketplace Metering service. More...
| Header: | #include <MarketplaceMeteringClient> |
| Inherits: | QtAws::Core::AwsAbstractClient |
Public Functions
| MarketplaceMeteringClient(const QtAws::Core::AwsRegion::Region region = QtAws::Core::AwsRegion::InvalidRegion, QtAws::Core::AwsAbstractCredentials *credentials = NULL, QNetworkAccessManager * const manager = NULL, QObject * const parent = 0) | |
| MarketplaceMeteringClient(const QUrl &endpoint, QtAws::Core::AwsAbstractCredentials *credentials = NULL, QNetworkAccessManager * const manager = NULL, QObject * const parent = 0) |
- 12 public functions inherited from QtAws::Core::AwsAbstractClient
Public Slots
| BatchMeterUsageResponse * | batchMeterUsage(const BatchMeterUsageRequest &request) |
| MeterUsageResponse * | meterUsage(const MeterUsageRequest &request) |
| ResolveCustomerResponse * | resolveCustomer(const ResolveCustomerRequest &request) |
Additional Inherited Members
- 2 protected functions inherited from QtAws::Core::AwsAbstractClient
Detailed Description
The MarketplaceMeteringClient class provides access to the AWSMarketplace Metering service.
<fullname>AWS Marketplace Metering Service</fullname>
This reference provides descriptions of the low-level AWS Marketplace Metering Service
API>
AWS Marketplace sellers can use this API to submit usage data for custom usage
dimensions>
<b>Submitting Metering Records</b>
</p <ul> <li>
<i>MeterUsage</i>- Submits the metering record for a Marketplace product. MeterUsage is called from an EC2
instance> </li> <li>
<i>BatchMeterUsage</i>- Submits the metering record for a set of customers. BatchMeterUsage is called from a software-as-a-service (SaaS)
application> </li> </ul>
<b>Accepting New Customers</b>
</p <ul> <li>
<i>ResolveCustomer</i>- Called by a SaaS application during the registration process. When a buyer visits your website during the registration process, the buyer submits a Registration Token through the browser. The Registration Token is resolved through this API to obtain a CustomerIdentifier and Product
Member Function Documentation
MarketplaceMeteringClient::MarketplaceMeteringClient(const QtAws::Core::AwsRegion::Region region = QtAws::Core::AwsRegion::InvalidRegion, QtAws::Core::AwsAbstractCredentials *credentials = NULL, QNetworkAccessManager * const manager = NULL, QObject * const parent = 0)
Constructs a MarketplaceMeteringClient object.
The new client object will region, credentials, and manager for network operations.
The new object will be owned by parent, if set.
MarketplaceMeteringClient::MarketplaceMeteringClient(const QUrl &endpoint, QtAws::Core::AwsAbstractCredentials *credentials = NULL, QNetworkAccessManager * const manager = NULL, QObject * const parent = 0)
This function overloads MarketplaceMeteringClient().
This overload allows the caller to specify the specific endpoint to send requests to. Typically, it is easier to use the alternative constructor, which allows the caller to specify an AWS region instead, in which case this client will determine the correct endpoint for the given region automatically (via AwsEndpoint::getEndpoint).
See also QtAws::Core::AwsEndpoint::getEndpoint.
[slot] BatchMeterUsageResponse *MarketplaceMeteringClient::batchMeterUsage(const BatchMeterUsageRequest &request)
Sends request to the MarketplaceMeteringClient service, and returns a pointer to an BatchMeterUsageResponse object to track the result.
Note: The caller is to take responsbility for the resulting pointer.
BatchMeterUsage is called from a SaaS application listed on the AWS Marketplace to post metering records for a set of
customers>
For identical requests, the API is idempotent; requests can be retried with the same records or a subset of the input
records>
Every request to BatchMeterUsage is for one product. If you need to meter usage for multiple products, you must make multiple calls to
BatchMeterUsage>
BatchMeterUsage can process up to 25 UsageRecords at a
[slot] MeterUsageResponse *MarketplaceMeteringClient::meterUsage(const MeterUsageRequest &request)
Sends request to the MarketplaceMeteringClient service, and returns a pointer to an MeterUsageResponse object to track the result.
Note: The caller is to take responsbility for the resulting pointer.
API to emit metering records. For identical requests, the API is idempotent. It simply returns the metering record
ID>
MeterUsage is authenticated on the buyer's AWS account, generally when running from an EC2 instance on the AWS
[slot] ResolveCustomerResponse *MarketplaceMeteringClient::resolveCustomer(const ResolveCustomerRequest &request)
Sends request to the MarketplaceMeteringClient service, and returns a pointer to an ResolveCustomerResponse object to track the result.
Note: The caller is to take responsbility for the resulting pointer.
ResolveCustomer is called by a SaaS application during the registration process. When a buyer visits your website during the registration process, the buyer submits a registration token through their browser. The registration token is resolved through this API to obtain a CustomerIdentifier and product
© 2018 Paul Colby Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.