public static class LicenseData.LicenseDataBuilder extends Object
Modifier and Type | Method and Description |
---|---|
LicenseData.LicenseDataBuilder |
active(Boolean active)
Is License active.
|
LicenseData.LicenseDataBuilder |
allowGracePeriod(Boolean allowGracePeriod)
Is grace period allowed.
|
LicenseData.LicenseDataBuilder |
allowNegativeConsumptions(Boolean allowNegativeConsumptions)
Are negative consumptions allowed
|
LicenseData.LicenseDataBuilder |
allowOverages(boolean allowOverages)
Are overages allowed.
|
LicenseData.LicenseDataBuilder |
allowUnlimitedActivations(Boolean allowUnlimitedActivations)
Are unlimited activations allowed.
|
LicenseData.LicenseDataBuilder |
allowUnlimitedConsumptions(Boolean allowUnlimitedConsumptions)
Are unlimited consumptions allowed.
|
LicenseData.LicenseDataBuilder |
borrowedUntil(ZonedDateTime borrowedUntil)
Indicates time until license is borrowed.
|
LicenseData |
build() |
LicenseData.LicenseDataBuilder |
canBorrow(Boolean canBorrow)
Indicates whether a license can be borrowed.
|
LicenseData.LicenseDataBuilder |
consumptionPeriod(ConsumptionPeriod consumptionPeriod)
Period when the consumption uses (and overages if enabled) are reset
ConsumptionPeriod |
LicenseData.LicenseDataBuilder |
customer(Customer customer)
Customer who purchased this particular license
|
LicenseData.LicenseDataBuilder |
customFields(List<CustomField> customFields)
List of custom fields that can be set in LicenseSpring platform.
|
LicenseData.LicenseDataBuilder |
date(String date)
Date
|
LicenseData.LicenseDataBuilder |
deviceId(Long deviceId)
Device ID represents the unique identifier of the device associated with the license.
|
LicenseData.LicenseDataBuilder |
enableMaintenancePeriod(Boolean enableMaintenancePeriod)
Is maintenance period enabled.
|
LicenseData.LicenseDataBuilder |
floatingInUse(Boolean floatingInUse)
Used only with floating cloud/on-premises setup.
|
LicenseData.LicenseDataBuilder |
floatingInUseDevices(Integer floatingInUseDevices)
Used only with floating cloud/on-premises setup.
|
LicenseData.LicenseDataBuilder |
floatingTimeout(int floatingTimeout)
Used only with floating cloud/on-premises setup.
|
LicenseData.LicenseDataBuilder |
floatingUsers(int floatingUsers)
Used only with floating cloud/on-premises setup.
|
LicenseData.LicenseDataBuilder |
gracePeriod(int gracePeriod)
Grace period
|
LicenseData.LicenseDataBuilder |
hardwareId(String hardwareId)
Hardware ID.
|
LicenseData.LicenseDataBuilder |
id(Long id)
License ID represents the unique identifier of the license.
|
LicenseData.LicenseDataBuilder |
isAirGapped(boolean isAirGapped)
Used only with Air Gapped Licensing.
|
LicenseData.LicenseDataBuilder |
isBorrowed(Boolean isBorrowed)
Indicates whether a license is borrowed.
|
LicenseData.LicenseDataBuilder |
isFloating(Boolean isFloating)
Used only with on-premise floating setup (using an on-premise server).
|
LicenseData.LicenseDataBuilder |
isFloatingCloud(boolean isFloatingCloud)
Used only with floating cloud setup.
|
LicenseData.LicenseDataBuilder |
isHardwareKeyAuth(Boolean isHardwareKeyAuth)
Is hardware key auth
|
LicenseData.LicenseDataBuilder |
isTrial(boolean isTrial)
Trial licenses have limitations that can be set.
|
LicenseData.LicenseDataBuilder |
licenseKey(String licenseKey)
License key.
|
LicenseData.LicenseDataBuilder |
licenseSignature(String licenseSignature)
Signature that is used to sign this license by the LS servers.
|
LicenseData.LicenseDataBuilder |
licenseType(LicenseType licenseType)
Possible license types: PERPETUAL, SUBSCRIPTION, TIME-LIMITED, CONSUMPTION, UNKNOWN
|
LicenseData.LicenseDataBuilder |
maintenancePeriod(ZonedDateTime maintenancePeriod)
Maintenance period of license.
|
LicenseData.LicenseDataBuilder |
maxActivations(int maxActivations)
The maximum number of active devices that can share this license.
|
LicenseData.LicenseDataBuilder |
maxBorrowTime(int maxBorrowTime)
Maximum period a license can be borrowed measured in hours.
|
LicenseData.LicenseDataBuilder |
maxConsumptions(Integer maxConsumptions)
Maximal consumptions of this license.
|
LicenseData.LicenseDataBuilder |
maxOverages(int maxOverages)
Maximal overages of this license (uses after consumptions have been used up).
|
LicenseData.LicenseDataBuilder |
maxTransfers(int maxTransfers)
Max transfers.
|
LicenseData.LicenseDataBuilder |
metadata(com.google.gson.JsonElement metadata)
JSON metadata of the license.
|
LicenseData.LicenseDataBuilder |
offlineSignature(String offlineSignature)
Offline signature.
|
LicenseData.LicenseDataBuilder |
preventVm(boolean preventVm)
License settings if the license if permitted to run on VMs
|
LicenseData.LicenseDataBuilder |
productDetails(Product productDetails)
The parent product assigned to this license.
|
LicenseData.LicenseDataBuilder |
productFeatures(List<LicenseFeature> productFeatures)
Each license can have its own list of features included.
|
LicenseData.LicenseDataBuilder |
request(String request)
"activation" or "deactivation"
|
LicenseData.LicenseDataBuilder |
requestId(String requestId)
Request ID
|
LicenseData.LicenseDataBuilder |
resetConsumption(Boolean resetConsumption)
Settings for licences with
LicenseType.CONSUMPTION type. |
LicenseData.LicenseDataBuilder |
timesActivated(int timesActivated)
Number of times this license is activated.
|
String |
toString() |
LicenseData.LicenseDataBuilder |
totalConsumptions(Integer totalConsumptions)
Total consumptions of this license as seen by the LS servers.
|
LicenseData.LicenseDataBuilder |
transferCount(int transferCount)
Counts the number of license transfers between different devices.
|
LicenseData.LicenseDataBuilder |
user(LicenseUser user)
The
LicenseUser object present in user based licenses |
LicenseData.LicenseDataBuilder |
validityPeriod(ZonedDateTime validityPeriod)
After validity period passes license will become invalid.
|
LicenseData.LicenseDataBuilder |
variables(List<DeviceVariable> variables)
Device variables.
|
public LicenseData.LicenseDataBuilder id(Long id)
this
.public LicenseData.LicenseDataBuilder active(Boolean active)
this
.public LicenseData.LicenseDataBuilder allowGracePeriod(Boolean allowGracePeriod)
this
.public LicenseData.LicenseDataBuilder allowOverages(boolean allowOverages)
this
.public LicenseData.LicenseDataBuilder allowUnlimitedActivations(Boolean allowUnlimitedActivations)
this
.public LicenseData.LicenseDataBuilder canBorrow(Boolean canBorrow)
this
.public LicenseData.LicenseDataBuilder isBorrowed(Boolean isBorrowed)
this
.public LicenseData.LicenseDataBuilder borrowedUntil(ZonedDateTime borrowedUntil)
this
.public LicenseData.LicenseDataBuilder customFields(List<CustomField> customFields)
this
.public LicenseData.LicenseDataBuilder customer(Customer customer)
this
.public LicenseData.LicenseDataBuilder deviceId(Long deviceId)
this
.public LicenseData.LicenseDataBuilder enableMaintenancePeriod(Boolean enableMaintenancePeriod)
this
.public LicenseData.LicenseDataBuilder floatingTimeout(int floatingTimeout)
this
.public LicenseData.LicenseDataBuilder gracePeriod(int gracePeriod)
this
.public LicenseData.LicenseDataBuilder isAirGapped(boolean isAirGapped)
this
.public LicenseData.LicenseDataBuilder isFloatingCloud(boolean isFloatingCloud)
this
.public LicenseData.LicenseDataBuilder isFloating(Boolean isFloating)
this
.public LicenseData.LicenseDataBuilder isHardwareKeyAuth(Boolean isHardwareKeyAuth)
this
.public LicenseData.LicenseDataBuilder isTrial(boolean isTrial)
this
.public LicenseData.LicenseDataBuilder licenseKey(String licenseKey)
this
.public LicenseData.LicenseDataBuilder licenseType(LicenseType licenseType)
this
.public LicenseData.LicenseDataBuilder maintenancePeriod(ZonedDateTime maintenancePeriod)
this
.public LicenseData.LicenseDataBuilder maxActivations(int maxActivations)
this
.public LicenseData.LicenseDataBuilder maxBorrowTime(int maxBorrowTime)
this
.public LicenseData.LicenseDataBuilder maxOverages(int maxOverages)
LicenseData.licenseType
is not LicenseType.CONSUMPTION
this
.public LicenseData.LicenseDataBuilder maxTransfers(int maxTransfers)
this
.public LicenseData.LicenseDataBuilder metadata(com.google.gson.JsonElement metadata)
this
.public LicenseData.LicenseDataBuilder preventVm(boolean preventVm)
this
.public LicenseData.LicenseDataBuilder productDetails(Product productDetails)
this
.public LicenseData.LicenseDataBuilder productFeatures(List<LicenseFeature> productFeatures)
this
.public LicenseData.LicenseDataBuilder timesActivated(int timesActivated)
this
.public LicenseData.LicenseDataBuilder transferCount(int transferCount)
this
.public LicenseData.LicenseDataBuilder validityPeriod(ZonedDateTime validityPeriod)
LicenseType.TIME_LIMITED
type of license.this
.public LicenseData.LicenseDataBuilder variables(List<DeviceVariable> variables)
this
.public LicenseData.LicenseDataBuilder maxConsumptions(Integer maxConsumptions)
LicenseData.licenseType
is not LicenseType.CONSUMPTION
this
.public LicenseData.LicenseDataBuilder allowUnlimitedConsumptions(Boolean allowUnlimitedConsumptions)
this
.public LicenseData.LicenseDataBuilder totalConsumptions(Integer totalConsumptions)
LicenseData.licenseType
is
not LicenseType.CONSUMPTION
this
.public LicenseData.LicenseDataBuilder resetConsumption(Boolean resetConsumption)
LicenseType.CONSUMPTION
type. Indicates if consumptions
reset after a defined period. if true, will also have the LicenseData.consumptionPeriod
fieldthis
.public LicenseData.LicenseDataBuilder consumptionPeriod(ConsumptionPeriod consumptionPeriod)
ConsumptionPeriod
this
.public LicenseData.LicenseDataBuilder allowNegativeConsumptions(Boolean allowNegativeConsumptions)
this
.public LicenseData.LicenseDataBuilder licenseSignature(String licenseSignature)
this
.public LicenseData.LicenseDataBuilder requestId(String requestId)
this
.public LicenseData.LicenseDataBuilder request(String request)
this
.public LicenseData.LicenseDataBuilder hardwareId(String hardwareId)
this
.public LicenseData.LicenseDataBuilder date(String date)
this
.public LicenseData.LicenseDataBuilder offlineSignature(String offlineSignature)
this
.public LicenseData.LicenseDataBuilder floatingUsers(int floatingUsers)
this
.public LicenseData.LicenseDataBuilder floatingInUseDevices(Integer floatingInUseDevices)
this
.public LicenseData.LicenseDataBuilder floatingInUse(Boolean floatingInUse)
this
.public LicenseData.LicenseDataBuilder user(LicenseUser user)
LicenseUser
object present in user based licensesthis
.public LicenseData build()
Copyright © 2025 Cense Data Inc.. All rights reserved.