template<typename BUILDER>
class tenduke::ee::licensing::FluentLicenseCheckoutBuilder< BUILDER >
Inheritable base class building checkout request parameters fluently.
- Template Parameters
-
| BUILDER | type of the concrete builder class |
|
| | FluentLicenseCheckoutBuilder (::tenduke::ee::ClientProperties clientProperties) |
| | Constructs new instance.
|
| BUILDER & | seat (const std::string &productName, const std::string &requestedVersion="", const std::string &licenseId="") |
| | Adds "checkout one seat for product" to the request.
|
| BUILDER & | item (const std::string &itemName, const std::string &requestedVersion="", const std::string &licenseId="") |
| | Adds an item to checkout.
|
| BUILDER & | count (std::uint64_t pConsumeCount) |
| | Sets "The requested number of units to be consumed from the license’s use count.".
|
| BUILDER & | duration (std::uint64_t pConsumeDuration) |
| | Sets "The requested duration of the license token (and the lease) in milliseconds.".
|
| BUILDER & | fromEntitlement (const std::string &pEntitlementId) |
| | Sets id of the Entitlement, from which the licenses will be checked from.
|
| BUILDER & | fromOrganization (const std::string &pOrganizationId) |
| | Sets id of the Organization, from which the licenses will be checked from.
|
| BUILDER & | mode (enum tenduke::ee::licensing::LicenseCheckoutParameters::ConsumptionMode pConsumptionMode) |
| | Sets "The license consumption mode requested." (See the enumeration for the documentation of the values).
|
| BUILDER & | version (const std::string &pGlobalVersion) |
| | Sets default version to checkout.
|
template<typename BUILDER>
Adds "checkout one seat for product" to the request.
This is the same as item(): if the same product is added several times, only the last one is checked out. To consume several units, use count().
- Parameters
-
The licensed item can be either a top-level item (usually representing a product) or an aggregated licensed item (usually representing a feature).
- Parameters
-
| requestedVersion | The version of the software that is running on the device, typically expressed as a version number (for example, 1.6.14). Empty string means no version will be requested. Optional, defaults to none. |
| licenseId | ID of the license to be checked out (NOTE: itemName must still be given). Optional, if not given the licensing service will choose the license by itemName |
- Returns
- this instance for method chaining
- Exceptions
-
| std::invalid_argument | if the product name is empty |