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 Details

    • DESCRIPTION_MAX_LENGTH

      public static final int DESCRIPTION_MAX_LENGTH
      See Also:
  • Constructor Details

  • Method Details

    • getId

      public String getId()
      Description copied from interface: Identified
      Returns the ID
      Specified by:
      getId in interface Identified
      Returns:
      the ID
    • getDescription

      public String getDescription()
    • getCreatedById

      public String getCreatedById()
    • getEffectiveFrom

      public Instant getEffectiveFrom()
    • getEffectiveUntil

      public Instant getEffectiveUntil()
    • getAllowedHours

      public int getAllowedHours()
    • getRemainingHours

      public Double getRemainingHours()
    • getBoostHours

      public Integer getBoostHours()
    • getResetType

      public AllowanceResetType getResetType()
    • getResetInterval

      public Integer getResetInterval()
    • getLimitEnforcement

      public AllowanceLimitEnforcement getLimitEnforcement()
    • getHardLimitGraceMinutes

      public Integer getHardLimitGraceMinutes()
    • getMonitoredStatuses

      public List<@NotNull InstanceStatus> getMonitoredStatuses()
    • setId

      public void setId(String id)
    • setDescription

      public void setDescription(String description)
    • setCreatedById

      public void setCreatedById(String createdById)
    • setEffectiveFrom

      public void setEffectiveFrom(Instant effectiveFrom)
    • setEffectiveUntil

      public void setEffectiveUntil(Instant effectiveUntil)
    • setAllowedHours

      public void setAllowedHours(int allowedHours)
    • setRemainingHours

      public void setRemainingHours(Double remainingHours)
    • setBoostHours

      public void setBoostHours(Integer boostHours)
    • setResetType

      public void setResetType(AllowanceResetType resetType)
    • setResetInterval

      public void setResetInterval(Integer resetInterval)
    • setLimitEnforcement

      public void setLimitEnforcement(AllowanceLimitEnforcement limitEnforcement)
    • setHardLimitGraceMinutes

      public void setHardLimitGraceMinutes(Integer hardLimitGraceMinutes)
    • setMonitoredStatuses

      public void setMonitoredStatuses(List<@NotNull InstanceStatus> monitoredStatuses)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object