10Duke Enterprise C++ Client
Loading...
Searching...
No Matches
tenduke::ee::licensing::FluentLicenseRenew Class Reference

#include <FluentLicenseRenew.h>

Detailed Description

Utility for fluently building tenduke::ee::licensing::authzapi::LicenseRenewRequest.

Build the license-renew request with the methods, and then call execute().

Example of use:

auto tendukeClient = ::tenduke::ee::createClientUsingAutoDiscovery(...);
auto licenseCheckoutResponse = tendukeClient->licensing->checkoutLicenses().... execute();
auto licenseRenewResponse = tendukeClient->licensing->renewLeases(licenseCheckoutResponse.leases);
virtual ::tenduke::ee::licensing::LicenseRenewResponse execute()
Executes the request.
Definition FluentLicenseRenew.cpp:9
Inheritance diagram for tenduke::ee::licensing::FluentLicenseRenew:
tenduke::ee::licensing::FluentLicenseRenewBuilder< FluentLicenseRenew >

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 >
FluentLicenseRenewlease (const ::tenduke::ee::licensing::Lease &lease)
 Adds lease to renew to the request.
 
FluentLicenseRenewleases (const std::vector<::tenduke::ee::licensing::Lease > &pLeases)
 Adds leases to renew to the request.
 
FluentLicenseRenewleases (const std::map< std::string, ::tenduke::ee::licensing::Lease > &pLeases)
 Adds leases to renew to the request.
 
FluentLicenseRenewduration (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.
 

Constructor & Destructor Documentation

◆ FluentLicenseRenew()

tenduke::ee::licensing::FluentLicenseRenew::FluentLicenseRenew ( const ::tenduke::ee::licensing::LicensingClient client)
explicit

Constructs new instance.

Parameters
clientlicensing client

Member Function Documentation

◆ execute()

LicenseRenewResponse tenduke::ee::licensing::FluentLicenseRenew::execute ( )

Executes the request.

This method calls tenduke::ee::licensing::LicensingClient#renewLicenses(const tenduke::ee::licensing::LicenseRenewParameters &).

Returns
the license renew response
Exceptions
tenduke::TendukeExceptionand subclasses, documented in tenduke::ee::licensing::LicensingClient

The documentation for this class was generated from the following files: