10Duke Enterprise C++ SDK
Loading...
Searching...
No Matches
LicenseRenewItem.h
1#ifndef TENDUKE_EE_LICENSING_LICENSERENEWITEM_H
2#define TENDUKE_EE_LICENSING_LICENSERENEWITEM_H
3
4#include <stdexcept>
5#include <string>
6
7namespace tenduke { namespace ee { namespace licensing {
8
13{
14public:
22 const std::string &name,
23 const std::string &leaseId
24 ) : name(name)
26 {
27 if (name.empty()) {
28 throw std::invalid_argument("LicenseRenewItem: the licensed item name must not be empty");
29 }
30 if (leaseId.empty()) {
31 throw std::invalid_argument("LicenseRenewItem: the lease id of \"" + name + "\" must not be empty");
32 }
33 }
34
35public:
37 const std::string name;
41 const std::string leaseId;
42};
43
44}}}
45
46#endif //TENDUKE_EE_LICENSING_LICENSERENEWITEM_H
LicenseRenewItem(const std::string &name, const std::string &leaseId)
Constructs new instance.
Definition LicenseRenewItem.h:21
const std::string name
The name of the licensed item.
Definition LicenseRenewItem.h:37
const std::string leaseId
In a license renewal request, the ID of the license lease to be extended.
Definition LicenseRenewItem.h:41
Classes, functions and globals related to 10Duke Enterprise licensing.
Definition AuthzLicensingClient.h:13
Classes, functions and globals of 10Duke Enterprise C++ Client.
Definition APIRequest.h:4
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4