Package energy.eddie.api.agnostic
Record Class ConnectionStatusMessage
java.lang.Object
java.lang.Record
energy.eddie.api.agnostic.ConnectionStatusMessage
- Record Components:
connectionId- id of the connection (a connectionId can be associated with multiple permissions)permissionId- unique id of the permissiondataNeedId- id of the data need associated with the permissiondataSourceInformation- information about the datasourcetimestamp- timestamp of the messagestatus- status of the messagemessage- contains additional information about the statusadditionalInformation- this field can be used to provide additional information about the status via a JSON object
- All Implemented Interfaces:
MessageWithHeaders
public record ConnectionStatusMessage(String connectionId, String permissionId, String dataNeedId, DataSourceInformation dataSourceInformation, ZonedDateTime timestamp, PermissionProcessStatus status, String message, @Nullable com.fasterxml.jackson.databind.JsonNode additionalInformation)
extends Record
implements MessageWithHeaders
Represents a generic status message for a permission
-
Constructor Summary
ConstructorsConstructorDescriptionConnectionStatusMessage(String connectionId, String permissionId, String dataNeedId, DataSourceInformation dataSourceInformation, PermissionProcessStatus status) ConnectionStatusMessage(String connectionId, String permissionId, String dataNeedId, DataSourceInformation dataSourceInformation, PermissionProcessStatus status, String message) ConnectionStatusMessage(String connectionId, String permissionId, String dataNeedId, DataSourceInformation dataSourceInformation, PermissionProcessStatus status, String message, com.fasterxml.jackson.databind.JsonNode additionalInformation) ConnectionStatusMessage(String connectionId, String permissionId, String dataNeedId, DataSourceInformation dataSourceInformation, ZonedDateTime timestamp, PermissionProcessStatus status, String message, com.fasterxml.jackson.databind.JsonNode additionalInformation) Creates an instance of aConnectionStatusMessagerecord class. -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNodeReturns the value of theadditionalInformationrecord component.Returns the value of theconnectionIdrecord component.Returns the value of thedataNeedIdrecord component.Returns the value of thedataSourceInformationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.Returns the value of thepermissionIdrecord component.status()Returns the value of thestatusrecord component.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ConnectionStatusMessage
-
ConnectionStatusMessage
public ConnectionStatusMessage(String connectionId, String permissionId, String dataNeedId, DataSourceInformation dataSourceInformation, PermissionProcessStatus status) -
ConnectionStatusMessage
public ConnectionStatusMessage(String connectionId, String permissionId, String dataNeedId, DataSourceInformation dataSourceInformation, PermissionProcessStatus status, String message) -
ConnectionStatusMessage
public ConnectionStatusMessage(String connectionId, String permissionId, String dataNeedId, DataSourceInformation dataSourceInformation, PermissionProcessStatus status, String message, com.fasterxml.jackson.databind.JsonNode additionalInformation) -
ConnectionStatusMessage
public ConnectionStatusMessage(String connectionId, String permissionId, String dataNeedId, DataSourceInformation dataSourceInformation, ZonedDateTime timestamp, PermissionProcessStatus status, String message, @Nullable com.fasterxml.jackson.databind.JsonNode additionalInformation) Creates an instance of aConnectionStatusMessagerecord class.- Parameters:
connectionId- the value for theconnectionIdrecord componentpermissionId- the value for thepermissionIdrecord componentdataNeedId- the value for thedataNeedIdrecord componentdataSourceInformation- the value for thedataSourceInformationrecord componenttimestamp- the value for thetimestamprecord componentstatus- the value for thestatusrecord componentmessage- the value for themessagerecord componentadditionalInformation- the value for theadditionalInformationrecord 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). -
connectionId
Returns the value of theconnectionIdrecord component.- Specified by:
connectionIdin interfaceMessageWithHeaders- Returns:
- the value of the
connectionIdrecord component
-
permissionId
Returns the value of thepermissionIdrecord component.- Specified by:
permissionIdin interfaceMessageWithHeaders- Returns:
- the value of the
permissionIdrecord component
-
dataNeedId
Returns the value of thedataNeedIdrecord component.- Specified by:
dataNeedIdin interfaceMessageWithHeaders- Returns:
- the value of the
dataNeedIdrecord component
-
dataSourceInformation
Returns the value of thedataSourceInformationrecord component.- Returns:
- the value of the
dataSourceInformationrecord component
-
timestamp
Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
additionalInformation
@Nullable public com.fasterxml.jackson.databind.JsonNode additionalInformation()Returns the value of theadditionalInformationrecord component.- Returns:
- the value of the
additionalInformationrecord component
-