public final class ProductFeature extends Object
Constructor and Description |
---|
ProductFeature(Long id,
ZonedDateTime createdAt,
ZonedDateTime updatedAt,
String name,
String code,
boolean isDeleted,
String featureType,
Long maxConsumption,
Boolean allowOverages,
Long maxOverages,
Boolean resetConsumption,
com.licensespring.model.ConsumptionPeriod consumptionPeriod) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Boolean |
getAllowOverages()
Product settings if licenses allows overages (used in licences with type
LicenseType.CONSUMPTION ) |
String |
getCode()
Code of the feature.
|
com.licensespring.model.ConsumptionPeriod |
getConsumptionPeriod()
Period when the consumption uses (and overages if enabled) are reset
ConsumptionPeriod |
ZonedDateTime |
getCreatedAt()
Creation time.
|
String |
getFeatureType()
Type of the feature ("activation" or "consumption").
|
Long |
getId()
Internal ID of the product feature.
|
Long |
getMaxConsumption()
Number of max consumptions.
|
Long |
getMaxOverages()
Default maximal overages for this product licences (uses after consumptions have been used up).
|
String |
getName()
Name of the feature.
|
Boolean |
getResetConsumption()
Settings for licences with
LicenseType.CONSUMPTION type. |
ZonedDateTime |
getUpdatedAt()
Time of last update.
|
int |
hashCode() |
boolean |
isDeleted()
Is feature deleted or not.
|
String |
toString() |
public ProductFeature(Long id, ZonedDateTime createdAt, ZonedDateTime updatedAt, String name, String code, boolean isDeleted, String featureType, Long maxConsumption, Boolean allowOverages, Long maxOverages, Boolean resetConsumption, com.licensespring.model.ConsumptionPeriod consumptionPeriod)
public Long getId()
public ZonedDateTime getCreatedAt()
public ZonedDateTime getUpdatedAt()
public String getName()
public String getCode()
public boolean isDeleted()
public String getFeatureType()
public Long getMaxConsumption()
public Boolean getAllowOverages()
LicenseType.CONSUMPTION
)public Long getMaxOverages()
LicenseType.CONSUMPTION
public Boolean getResetConsumption()
LicenseType.CONSUMPTION
type.
Indicates if consumptions reset after a defined period.
if true, will also have the consumptionPeriod
fieldpublic com.licensespring.model.ConsumptionPeriod getConsumptionPeriod()
ConsumptionPeriod
Copyright © 2023 Cense Data Inc.. All rights reserved.