Record Class EventReason
java.lang.Object
java.lang.Record
energy.eddie.regionconnector.fi.fingrid.client.model.EventReason
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringReason Code when empty response is returned. -
Constructor Summary
ConstructorsConstructorDescriptionEventReason(String eventReasonCode, String eventReasonText) Creates an instance of aEventReasonrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theeventReasonCoderecord component.Returns the value of theeventReasonTextrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
EMPTY_RESPONSE_REASON
Reason Code when empty response is returned. Could mean that there is no data in the specified timeframe, that there is no permission for this account, a number of validation errors, or that the requested resolution is too small.- See Also:
-
-
Constructor Details
-
EventReason
Creates an instance of aEventReasonrecord class.- Parameters:
eventReasonCode- the value for theeventReasonCoderecord componenteventReasonText- the value for theeventReasonTextrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
eventReasonCode
Returns the value of theeventReasonCoderecord component.- Returns:
- the value of the
eventReasonCoderecord component
-
eventReasonText
Returns the value of theeventReasonTextrecord component.- Returns:
- the value of the
eventReasonTextrecord component
-