Record Class UserAlertingSettings
java.lang.Object
java.lang.Record
io.openems.backend.common.alerting.UserAlertingSettings
public record UserAlertingSettings(String deviceId, String userLogin, int edgeOfflineDelay, int edgeFaultDelay, int edgeWarningDelay, ZonedDateTime lastEdgeOfflineNotification, ZonedDateTime lastSumStateNotification)
extends Record
-
Constructor Summary
ConstructorDescriptionUserAlertingSettings
(String userLogin, int offlineEdgeDelay, int faultStateDelay, int warningStateDelay) UserAlertingSettings
(String deviceId, String userLogin) UserAlertingSettings
(String deviceId, String userLogin, int edgeOfflineDelay, int edgeFaultDelay, int edgeWarningDelay, ZonedDateTime lastEdgeOfflineNotification, ZonedDateTime lastSumStateNotification) Creates an instance of aUserAlertingSettings
record class. -
Method Summary
Modifier and TypeMethodDescriptiondeviceId()
Returns the value of thedeviceId
record component.int
Returns the value of theedgeFaultDelay
record component.int
Returns the value of theedgeOfflineDelay
record component.int
Returns the value of theedgeWarningDelay
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thelastEdgeOfflineNotification
record component.Returns the value of thelastSumStateNotification
record component.final String
toString()
Returns a string representation of this record class.Returns the value of theuserLogin
record component.
-
Constructor Details
-
UserAlertingSettings
public UserAlertingSettings(String userLogin, int offlineEdgeDelay, int faultStateDelay, int warningStateDelay) -
UserAlertingSettings
-
UserAlertingSettings
public UserAlertingSettings(String deviceId, String userLogin, int edgeOfflineDelay, int edgeFaultDelay, int edgeWarningDelay, ZonedDateTime lastEdgeOfflineNotification, ZonedDateTime lastSumStateNotification) Creates an instance of aUserAlertingSettings
record class.- Parameters:
deviceId
- the value for thedeviceId
record componentuserLogin
- the value for theuserLogin
record componentedgeOfflineDelay
- the value for theedgeOfflineDelay
record componentedgeFaultDelay
- the value for theedgeFaultDelay
record componentedgeWarningDelay
- the value for theedgeWarningDelay
record componentlastEdgeOfflineNotification
- the value for thelastEdgeOfflineNotification
record componentlastSumStateNotification
- the value for thelastSumStateNotification
record component
-
-
Method Details
-
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 '=='. -
deviceId
Returns the value of thedeviceId
record component.- Returns:
- the value of the
deviceId
record component
-
userLogin
Returns the value of theuserLogin
record component.- Returns:
- the value of the
userLogin
record component
-
edgeOfflineDelay
public int edgeOfflineDelay()Returns the value of theedgeOfflineDelay
record component.- Returns:
- the value of the
edgeOfflineDelay
record component
-
edgeFaultDelay
public int edgeFaultDelay()Returns the value of theedgeFaultDelay
record component.- Returns:
- the value of the
edgeFaultDelay
record component
-
edgeWarningDelay
public int edgeWarningDelay()Returns the value of theedgeWarningDelay
record component.- Returns:
- the value of the
edgeWarningDelay
record component
-
lastEdgeOfflineNotification
Returns the value of thelastEdgeOfflineNotification
record component.- Returns:
- the value of the
lastEdgeOfflineNotification
record component
-
lastSumStateNotification
Returns the value of thelastSumStateNotification
record component.- Returns:
- the value of the
lastSumStateNotification
record component
-