Record Class SumStateAlertingSetting
java.lang.Object
java.lang.Record
io.openems.backend.common.alerting.SumStateAlertingSetting
public record SumStateAlertingSetting(String edgeId, String userLogin, int faultDelay, int warningDelay, ZonedDateTime lastNotification)
extends Record
-
Constructor Summary
ConstructorDescriptionSumStateAlertingSetting
(String edgeId, String userLogin, int faultDelay, int warningDelay, ZonedDateTime lastNotification) Creates an instance of aSumStateAlertingSetting
record class. -
Method Summary
Modifier and TypeMethodDescriptionedgeId()
Returns the value of theedgeId
record component.final boolean
Indicates whether some other object is "equal to" this one.int
Returns the value of thefaultDelay
record component.int
Get the appropriate delay for the given SumState level .final int
hashCode()
Returns a hash code value for this object.Returns the value of thelastNotification
record component.final String
toString()
Returns a string representation of this record class.Returns the value of theuserLogin
record component.int
Returns the value of thewarningDelay
record component.
-
Constructor Details
-
SumStateAlertingSetting
public SumStateAlertingSetting(String edgeId, String userLogin, int faultDelay, int warningDelay, ZonedDateTime lastNotification) Creates an instance of aSumStateAlertingSetting
record class.- Parameters:
edgeId
- the value for theedgeId
record componentuserLogin
- the value for theuserLogin
record componentfaultDelay
- the value for thefaultDelay
record componentwarningDelay
- the value for thewarningDelay
record componentlastNotification
- the value for thelastNotification
record component
-
-
Method Details
-
getDelay
Get the appropriate delay for the given SumState level .- Parameters:
state
- to get delay for- Returns:
- delay as integer
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
edgeId
Returns the value of theedgeId
record component.- Returns:
- the value of the
edgeId
record component
-
userLogin
Returns the value of theuserLogin
record component.- Returns:
- the value of the
userLogin
record component
-
faultDelay
public int faultDelay()Returns the value of thefaultDelay
record component.- Returns:
- the value of the
faultDelay
record component
-
warningDelay
public int warningDelay()Returns the value of thewarningDelay
record component.- Returns:
- the value of the
warningDelay
record component
-
lastNotification
Returns the value of thelastNotification
record component.- Returns:
- the value of the
lastNotification
record component
-