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

#include <FluentHeartbeatMeteredUse.h>

Detailed Description

Heartbeats metered license use, building the request fluently.

Call execute() to execute the request.

See superclass tenduke::se::licensing::FluentHeartbeatBuilder for the methods.

Inheritance diagram for tenduke::se::licensing::FluentHeartbeatMeteredUse:
tenduke::se::licensing::FluentHeartbeatBuilder<::tenduke::se::licensing::FluentHeartbeatMeteredUse >

Public Member Functions

 FluentHeartbeatMeteredUse (const ::tenduke::se::licensing::LicensingClient &client, const std::string &licenseKey="")
 Constructs new instance.
 
::tenduke::se::licensing::HeartbeatMeteredUseResponse execute ()
 Heartbeats metered use licenses.
 
- Public Member Functions inherited from tenduke::se::licensing::FluentHeartbeatBuilder<::tenduke::se::licensing::FluentHeartbeatMeteredUse >
 FluentHeartbeatBuilder (std::string licenseKey)
 Constructs new instance.
 
::tenduke::se::licensing::FluentHeartbeatMeteredUselease (const ::tenduke::se::licensing::Lease &lease)
 Adds a lease to heartbeat.
 
::tenduke::se::licensing::FluentHeartbeatMeteredUselease (const std::string &leaseId)
 Adds a lease id to heart beat.
 
::tenduke::se::licensing::FluentHeartbeatMeteredUselease (const std::string &leaseId, std::int64_t usedQty, bool treatAsIncrementalQty=false)
 Adds a lease id to heartbeat updating usage.
 
::tenduke::se::licensing::FluentHeartbeatMeteredUseleases (const std::vector<::tenduke::se::licensing::Lease > &licenses)
 Adds multiple leases to heartbeat.
 

Additional Inherited Members

- Protected Attributes inherited from tenduke::se::licensing::FluentHeartbeatBuilder<::tenduke::se::licensing::FluentHeartbeatMeteredUse >
const std::string licenseKey
 Licensekey.
 
std::vector<::tenduke::se::licensing::LicenseHeartbeatArgumentsarguments
 The individual arguments.
 

Constructor & Destructor Documentation

◆ FluentHeartbeatMeteredUse()

tenduke::se::licensing::FluentHeartbeatMeteredUse::FluentHeartbeatMeteredUse ( 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::HeartbeatMeteredUseResponse tenduke::se::licensing::FluentHeartbeatMeteredUse::execute ( )

Heartbeats metered use licenses.

Returns
-
Exceptions
tenduke::net::NetworkingException(and subclasses) on networking issues (no network, host not found etc)
tenduke::jwt::JWTValidationExceptionwhen any returned license token fails to validate
tenduke::se::http::APIException(and subclasses) when the request failed

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