Class Allowance
java.lang.Object
co.yellowdog.platform.model.Allowance
- All Implemented Interfaces:
Identified
- Direct Known Subclasses:
AccountAllowance
,RequirementAllowance
,RequirementsAllowance
,SourceAllowance
,SourcesAllowance
@ValidatedBy(AllowanceValidator.class)
public abstract class Allowance
extends Object
implements Identified
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Allowance
(String description, Instant effectiveFrom, Instant effectiveUntil, int allowedHours, Integer boostHours, AllowanceResetType resetType, Integer resetInterval, AllowanceLimitEnforcement limitEnforcement, Integer hardLimitGraceMinutes, List<InstanceStatus> monitoredStatuses) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
int
getId()
Returns the IDList
<@NotNull InstanceStatus> int
hashCode()
void
setAllowedHours
(int allowedHours) void
setBoostHours
(Integer boostHours) void
setCreatedById
(String createdById) void
setDescription
(String description) void
setEffectiveFrom
(Instant effectiveFrom) void
setEffectiveUntil
(Instant effectiveUntil) void
setHardLimitGraceMinutes
(Integer hardLimitGraceMinutes) void
void
setLimitEnforcement
(AllowanceLimitEnforcement limitEnforcement) void
setMonitoredStatuses
(List<@NotNull InstanceStatus> monitoredStatuses) void
setRemainingHours
(Double remainingHours) void
setResetInterval
(Integer resetInterval) void
setResetType
(AllowanceResetType resetType) toString()
-
Field Details
-
DESCRIPTION_MAX_LENGTH
public static final int DESCRIPTION_MAX_LENGTH- See Also:
-
-
Constructor Details
-
Allowance
protected Allowance(String description, Instant effectiveFrom, Instant effectiveUntil, int allowedHours, Integer boostHours, AllowanceResetType resetType, Integer resetInterval, AllowanceLimitEnforcement limitEnforcement, Integer hardLimitGraceMinutes, List<InstanceStatus> monitoredStatuses)
-
-
Method Details
-
getId
Description copied from interface:Identified
Returns the ID- Specified by:
getId
in interfaceIdentified
- Returns:
- the ID
-
getDescription
-
getCreatedById
-
getEffectiveFrom
-
getEffectiveUntil
-
getAllowedHours
public int getAllowedHours() -
getRemainingHours
-
getBoostHours
-
getResetType
-
getResetInterval
-
getLimitEnforcement
-
getHardLimitGraceMinutes
-
getMonitoredStatuses
-
setId
-
setDescription
-
setCreatedById
-
setEffectiveFrom
-
setEffectiveUntil
-
setAllowedHours
public void setAllowedHours(int allowedHours) -
setRemainingHours
-
setBoostHours
-
setResetType
-
setResetInterval
-
setLimitEnforcement
-
setHardLimitGraceMinutes
-
setMonitoredStatuses
-
equals
-
canEqual
-
hashCode
-
toString
-