10Duke Enterprise C++ SDK
Toggle main menu visibility
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
7
namespace
tenduke
{
namespace
ee
{
namespace
licensing
{
8
12
class
LicenseRenewItem
13
{
14
public
:
21
LicenseRenewItem
(
22
const
std::string &
name
,
23
const
std::string &
leaseId
24
) :
name
(
name
)
25
,
leaseId
(
leaseId
)
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
35
public
:
37
const
std::string
name
;
41
const
std::string
leaseId
;
42
};
43
44
}}}
45
46
#endif
//TENDUKE_EE_LICENSING_LICENSERENEWITEM_H
tenduke::ee::licensing::LicenseRenewItem::LicenseRenewItem
LicenseRenewItem(const std::string &name, const std::string &leaseId)
Constructs new instance.
Definition
LicenseRenewItem.h:21
tenduke::ee::licensing::LicenseRenewItem::name
const std::string name
The name of the licensed item.
Definition
LicenseRenewItem.h:37
tenduke::ee::licensing::LicenseRenewItem::leaseId
const std::string leaseId
In a license renewal request, the ID of the license lease to be extended.
Definition
LicenseRenewItem.h:41
tenduke::ee::licensing
Classes, functions and globals related to 10Duke Enterprise licensing.
Definition
AuthzLicensingClient.h:13
tenduke::ee
Classes, functions and globals of 10Duke Enterprise C++ Client.
Definition
APIRequest.h:4
tenduke
Root for classes, functions and globals of 10Duke C++ Client.
Definition
APIRequest.h:4
client
enterprise
api
src
licensing
renew
LicenseRenewItem.h
Generated by
1.17.0