10Duke Enterprise C++ Client
Loading...
Searching...
No Matches
LicenseRenewParameters.h
1#ifndef TENDUKE_EE_LICENSING_LICENSERENEWPARAMETERS_H
2#define TENDUKE_EE_LICENSING_LICENSERENEWPARAMETERS_H
3
4#include "./LicenseRenewItem.h"
5#include "../checkout/LicenseCheckoutParameters.h"
6
7#include <cstdint>
8#include <string>
9#include <vector>
10
11namespace tenduke { namespace ee { namespace licensing {
12
13
18{
19public:
21 static const std::uint64_t DEFAULT_CONSUME_DURATION = 0;
22
23public:
30 const std::vector<::tenduke::ee::licensing::LicenseRenewItem> &leases,
32 );
33
34 virtual ~LicenseRenewParameters() = default;
35
40 bool hasConsumeDuration() const;
41
42public:
44 const std::uint64_t consumeDuration;
46 const std::vector<::tenduke::ee::licensing::LicenseRenewItem> leases;
47};
48
49
50}}}
51
52#endif // TENDUKE_EE_LICENSING_LICENSERENEWPARAMETERS_H
Parameters for license renew request.
Definition LicenseRenewParameters.h:18
static const std::uint64_t DEFAULT_CONSUME_DURATION
Default consume duration.
Definition LicenseRenewParameters.h:21
const std::uint64_t consumeDuration
(Optional) The requested duration of the license token (and the lease) in milliseconds.
Definition LicenseRenewParameters.h:44
const std::vector<::tenduke::ee::licensing::LicenseRenewItem > leases
Leases to renew.
Definition LicenseRenewParameters.h:46
bool hasConsumeDuration() const
Checks if consumeDuration was provided.
Definition LicenseRenewParameters.cpp:7
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4