| 
    10Duke Enterprise C++ Client
    
   | 
 
#include <FluentLicenseCheckoutBuilder.h>
Inheritable base class building checkout request parameters fluently.
| BUILDER | type of the concrete builder class | 
Public Member Functions | |
| 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.   | |
Protected Member Functions | |
| virtual tenduke::ee::licensing::LicenseCheckoutParameters | buildParameters () | 
| Builds the parameters.   | |
      
  | 
  inlineexplicit | 
Constructs new instance.
| clientProperties | client properties | 
      
  | 
  inlineprotectedvirtual | 
Builds the parameters.
      
  | 
  inline | 
Sets "The requested number of units to be consumed from the license’s use count.".
| pConsumeCount | - | 
      
  | 
  inline | 
Sets "The requested duration of the license token (and the lease) in milliseconds.".
| pConsumeDuration | - | 
      
  | 
  inline | 
Sets id of the Entitlement, from which the licenses will be checked from.
All the items in the request will be checked out from this Entitlement, with following exception: A tenduke::ee::licensing::LicenseCheckoutItem, which has the license-id set, ignores this.
| pEntitlementId | id of the entitlement | 
      
  | 
  inline | 
Sets id of the Organization, from which the licenses will be checked from.
All the items in the request will be checked out from this Organization, with following exception: A tenduke::ee::licensing::LicenseCheckoutItem, which has the license-id set, ignores this.
| pOrganizationId | id of the organization | 
      
  | 
  inline | 
Adds an item to checkout.
| itemName | - | 
| 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 | 
      
  | 
  inline | 
Sets "The license consumption mode requested." (See the enumeration for the documentation of the values)
| pConsumptionMode | - | 
      
  | 
  inline | 
Adds "checkout one seat for product" to the request.
| productName | name of the product (licensed item). See Licensed items in our documentation. | 
The licensed item can be either a top-level item (usually representing a product) or an aggregated licensed item (usually representing a feature).
| 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 | 
      
  | 
  inline | 
Sets default version to checkout.
This version will be applied on all items, but individual items can override it by setting the version on item-level.
| pGlobalVersion | - |