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 allowUnlimitedConsumptions,
Boolean allowOverages,
Long maxOverages,
Boolean resetConsumption,
com.licensespring.model.ConsumptionPeriod consumptionPeriod,
Boolean isFloating,
Boolean isFloatingCloud,
Long floatingUsers,
Long floatingTimeout,
com.google.gson.JsonElement metadata) |
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 ) |
Boolean |
getAllowUnlimitedConsumptions()
Product settings if unlimited consumptions are allowed.
|
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 |
getFloatingTimeout()
Used only with floating cloud/on-premises setup.
|
Long |
getFloatingUsers()
Used only with floating cloud/on-premises setup.
|
Long |
getId()
Internal ID of the product feature.
|
Boolean |
getIsFloating()
Boolean value indicating is feature a floating feature.
|
Boolean |
getIsFloatingCloud()
Used only with floating cloud setup.
|
Long |
getMaxConsumption()
Number of max consumptions.
|
Long |
getMaxOverages()
Default maximal overages for this product licences (uses after consumptions have been used up).
|
com.google.gson.JsonElement |
getMetadata()
JSON metadata of the feature.
|
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 allowUnlimitedConsumptions, Boolean allowOverages, Long maxOverages, Boolean resetConsumption, com.licensespring.model.ConsumptionPeriod consumptionPeriod, Boolean isFloating, Boolean isFloatingCloud, Long floatingUsers, Long floatingTimeout, com.google.gson.JsonElement metadata)
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 getAllowUnlimitedConsumptions()
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
public Boolean getIsFloating()
public Boolean getIsFloatingCloud()
public Long getFloatingUsers()
public Long getFloatingTimeout()
public com.google.gson.JsonElement getMetadata()
Copyright © 2025 Cense Data Inc.. All rights reserved.