10Duke Scale C++ Client
Loading...
Searching...
No Matches
tenduke::se::licensing::FluentLicenseRelease Class Reference

#include <FluentLicenseRelease.h>

Detailed Description

Releases licenses, building the request fluently.

Call execute() to execute the request.

See the superclass tenduke::se::licensing::FluentReleaseBuilder for the fluent building methods.

Inheritance diagram for tenduke::se::licensing::FluentLicenseRelease:
tenduke::se::licensing::FluentReleaseBuilder<::tenduke::se::licensing::FluentLicenseRelease >

Public Member Functions

 FluentLicenseRelease (const ::tenduke::se::licensing::LicensingClient &client, const std::string &licenseKey="")
 Constructs new instance.
 
::tenduke::se::licensing::LicenseReleaseResponse execute ()
 Releases the licenses.
 
- Public Member Functions inherited from tenduke::se::licensing::FluentReleaseBuilder<::tenduke::se::licensing::FluentLicenseRelease >
 FluentReleaseBuilder (std::string licenseKey)
 Constructs new instance.
 
::tenduke::se::licensing::FluentLicenseReleaselease (const std::string &leaseId, std::int64_t finalUsedQty)
 Adds lease id to release, with final used quantity.
 
::tenduke::se::licensing::FluentLicenseReleaselease (const std::string leaseId)
 Adds lease id to release, with quantity of 1.
 
::tenduke::se::licensing::FluentLicenseReleaselease (const ::tenduke::se::licensing::Lease &lease, std::int64_t finalUsedQty)
 Adds lease to release, with given final-used quantity.
 
::tenduke::se::licensing::FluentLicenseReleaselease (const ::tenduke::se::licensing::Lease &lease)
 Adds lease to release with quantity of 1.
 
::tenduke::se::licensing::FluentLicenseReleaseleases (const std::vector<::tenduke::se::licensing::Lease > &licensesToRelease)
 Adds leases to release, each with quantity of 1.
 

Additional Inherited Members

- Protected Attributes inherited from tenduke::se::licensing::FluentReleaseBuilder<::tenduke::se::licensing::FluentLicenseRelease >
const std::string licenseKey
 Licensekey.
 
std::vector<::tenduke::se::licensing::LicenseReleaseArgumentsarguments
 The individual arguments.
 

Constructor & Destructor Documentation

◆ FluentLicenseRelease()

tenduke::se::licensing::FluentLicenseRelease::FluentLicenseRelease ( const ::tenduke::se::licensing::LicensingClient client,
const std::string &  licenseKey = "" 
)
explicit

Constructs new instance.

Parameters
clientLicensing client
licenseKeylicense key. Pass empty string, if this is not a license key operation.

Member Function Documentation

◆ execute()

xdlic::LicenseReleaseResponse tenduke::se::licensing::FluentLicenseRelease::execute ( )

Releases the licenses.

Returns
-
Exceptions
tenduke::net::NetworkingException(and subclasses) on networking issues (no network, host not found etc)
tenduke::se::http::APIException(and subclasses) when the request failed

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