10Duke Enterprise C++ SDK
Loading...
Searching...
No Matches
LicenseReleaseParameters.h
1#ifndef TENDUKE_EE_LICENSING_LICENSERELEASEPARAMETERS_H
2#define TENDUKE_EE_LICENSING_LICENSERELEASEPARAMETERS_H
3
4#include <stdexcept>
5#include <string>
6#include <vector>
7
8namespace tenduke { namespace ee { namespace licensing {
9
14{
15public:
21 explicit LicenseReleaseParameters(const std::vector<std::string> &leaseIds)
23 {
24 for (const auto &leaseId : leaseIds) {
25 if (leaseId.empty()) {
26 throw std::invalid_argument("LicenseReleaseParameters: a lease id must not be empty");
27 }
28 }
29 }
30
32 const std::vector<std::string> leaseIds;
33};
34
35}}}
36
37#endif //TENDUKE_EE_LICENSING_LICENSERELEASEPARAMETERS_H
LicenseReleaseParameters(const std::vector< std::string > &leaseIds)
Constructs new instance.
Definition LicenseReleaseParameters.h:21
const std::vector< std::string > leaseIds
IDs of leases to release.
Definition LicenseReleaseParameters.h:32
LicenseReleaseParameters(const std::vector< std::string > &leaseIds)
Constructs new instance.
Definition LicenseReleaseParameters.h:21
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