10Duke Enterprise C++ Client
|
#include <FluentLicenseRenew.h>
Utility for fluently building tenduke::ee::licensing::authzapi::LicenseRenewRequest
.
Build the license-renew request with the methods, and then call execute().
Example of use:
Public Member Functions | |
FluentLicenseRenew (const ::tenduke::ee::licensing::LicensingClient &client) | |
Constructs new instance. | |
virtual ::tenduke::ee::licensing::LicenseRenewResponse | execute () |
Executes the request. | |
Public Member Functions inherited from tenduke::ee::licensing::FluentLicenseRenewBuilder< FluentLicenseRenew > | |
FluentLicenseRenew & | lease (const ::tenduke::ee::licensing::Lease &lease) |
Adds lease to renew to the request. | |
FluentLicenseRenew & | leases (const std::vector<::tenduke::ee::licensing::Lease > &pLeases) |
Adds leases to renew to the request. | |
FluentLicenseRenew & | leases (const std::map< std::string, ::tenduke::ee::licensing::Lease > &pLeases) |
Adds leases to renew to the request. | |
FluentLicenseRenew & | duration (std::uint64_t pConsumeDuration) |
Sets "The requested duration of the license token (and the lease) in milliseconds.". | |
Additional Inherited Members | |
Protected Member Functions inherited from tenduke::ee::licensing::FluentLicenseRenewBuilder< FluentLicenseRenew > | |
virtual ::tenduke::ee::licensing::LicenseRenewParameters | buildParameters () |
Builds the parameters. | |
|
explicit |
Constructs new instance.
client | licensing client |
LicenseRenewResponse tenduke::ee::licensing::FluentLicenseRenew::execute | ( | ) |
Executes the request.
This method calls tenduke::ee::licensing::LicensingClient#renewLicenses(const tenduke::ee::licensing::LicenseRenewParameters &)
.
tenduke::TendukeException | and subclasses, documented in tenduke::ee::licensing::LicensingClient |