Class SourceAllowance
java.lang.Object
co.yellowdog.platform.model.Allowance
co.yellowdog.platform.model.SourceAllowance
- All Implemented Interfaces:
Identified
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder that can be used to build a new SourceAllowance. -
Field Summary
Fields inherited from class Allowance
DESCRIPTION_MAX_LENGTH -
Constructor Summary
ConstructorsConstructorDescriptionSourceAllowance(String description, Instant effectiveFrom, Instant effectiveUntil, int allowedHours, Integer boostHours, AllowanceResetType resetType, Integer resetInterval, AllowanceLimitEnforcement limitEnforcement, Integer hardLimitGraceMinutes, List<InstanceStatus> monitoredStatuses, String sourceId) -
Method Summary
Modifier and TypeMethodDescriptionstatic SourceAllowance.Builderbuilder()protected booleanbooleaninthashCode()voidsetSourceId(String sourceId) toString()Methods inherited from class Allowance
getAllowedHours, getBoostHours, getCreatedById, getDescription, getEffectiveFrom, getEffectiveUntil, getHardLimitGraceMinutes, getId, getLimitEnforcement, getMonitoredStatuses, getRemainingHours, getResetInterval, getResetType, setAllowedHours, setBoostHours, setCreatedById, setDescription, setEffectiveFrom, setEffectiveUntil, setHardLimitGraceMinutes, setId, setLimitEnforcement, setMonitoredStatuses, setRemainingHours, setResetInterval, setResetTypeModifier and TypeMethodDescriptionintgetId()Returns the IDList<@NotNull InstanceStatus> voidsetAllowedHours(int allowedHours) voidsetBoostHours(Integer boostHours) voidsetCreatedById(String createdById) voidsetDescription(String description) voidsetEffectiveFrom(Instant effectiveFrom) voidsetEffectiveUntil(Instant effectiveUntil) voidsetHardLimitGraceMinutes(Integer hardLimitGraceMinutes) voidvoidsetLimitEnforcement(AllowanceLimitEnforcement limitEnforcement) voidsetMonitoredStatuses(List<@NotNull InstanceStatus> monitoredStatuses) voidsetRemainingHours(Double remainingHours) voidsetResetInterval(Integer resetInterval) voidsetResetType(AllowanceResetType resetType)
-
Constructor Details
-
SourceAllowance
public SourceAllowance(String description, Instant effectiveFrom, Instant effectiveUntil, int allowedHours, Integer boostHours, AllowanceResetType resetType, Integer resetInterval, AllowanceLimitEnforcement limitEnforcement, Integer hardLimitGraceMinutes, List<InstanceStatus> monitoredStatuses, String sourceId)
-
-
Method Details
-
builder
-
getSourceId
-
setSourceId
-
toString
-
equals
-
canEqual
-
hashCode
-