|
10Duke Enterprise C++ Client
|
#include <FluentLicenseCheckout.h>
Utility for fluently building tenduke::ee::licensing::LicenseCheckoutRequest.
Build the license-checkout request with the methods, and then call execute().
Example of use:
Public Member Functions | |
| FluentLicenseCheckout (const tenduke::ee::licensing::LicensingClient &client, const ::tenduke::ee::ClientProperties clientProperties) | |
| Constructs new instance. | |
| virtual tenduke::ee::licensing::LicenseCheckoutResponse | execute () |
| Executes the request. | |
Public Member Functions inherited from tenduke::ee::licensing::FluentLicenseCheckoutBuilder< FluentLicenseCheckout > | |
| FluentLicenseCheckoutBuilder (::tenduke::ee::ClientProperties clientProperties) | |
| Constructs new instance. | |
| FluentLicenseCheckout & | seat (const std::string &productName, const std::string &requestedVersion="", const std::string &licenseId="") |
| Adds "checkout one seat for product" to the request. | |
| FluentLicenseCheckout & | item (const std::string &itemName, const std::string &requestedVersion="", const std::string &licenseId="") |
| Adds an item to checkout. | |
| FluentLicenseCheckout & | count (std::uint64_t pConsumeCount) |
| Sets "The requested number of units to be consumed from the license’s use count.". | |
| FluentLicenseCheckout & | duration (std::uint64_t pConsumeDuration) |
| Sets "The requested duration of the license token (and the lease) in milliseconds.". | |
| FluentLicenseCheckout & | fromEntitlement (const std::string &pEntitlementId) |
| Sets id of the Entitlement, from which the licenses will be checked from. | |
| FluentLicenseCheckout & | fromOrganization (const std::string &pOrganizationId) |
| Sets id of the Organization, from which the licenses will be checked from. | |
| FluentLicenseCheckout & | mode (enum tenduke::ee::licensing::LicenseCheckoutParameters::ConsumptionMode pConsumptionMode) |
| Sets "The license consumption mode requested." (See the enumeration for the documentation of the values) | |
| FluentLicenseCheckout & | version (const std::string &pGlobalVersion) |
| Sets default version to checkout. | |
Additional Inherited Members | |
Protected Member Functions inherited from tenduke::ee::licensing::FluentLicenseCheckoutBuilder< FluentLicenseCheckout > | |
| virtual tenduke::ee::licensing::LicenseCheckoutParameters | buildParameters () |
| Builds the parameters. | |
| tenduke::ee::licensing::FluentLicenseCheckout::FluentLicenseCheckout | ( | const tenduke::ee::licensing::LicensingClient & | client, |
| const ::tenduke::ee::ClientProperties | clientProperties ) |
Constructs new instance.
| client | - |
| clientProperties | client properties |
|
virtual |
Executes the request.
This method calls tenduke::ee::licensing::LicensingClient#checkoutLicenses(const tenduke::ee::licensing::LicenseCheckoutParameters).
| tenduke::TendukeException | and subclasses, documented in tenduke::ee::licensing::LicensingClient |