Package energy.eddie.cim.agnostic
Record Class OpaqueEnvelope
java.lang.Object
java.lang.Record
energy.eddie.cim.agnostic.OpaqueEnvelope
- All Implemented Interfaces:
MessageWithHeaders
public record OpaqueEnvelope(String regionConnectorId, String permissionId, String connectionId, String dataNeedId, String messageId, ZonedDateTime timestamp, String payload)
extends Record
implements MessageWithHeaders
-
Constructor Summary
ConstructorsConstructorDescriptionOpaqueEnvelope(String regionConnectorId, String permissionId, String connectionId, String dataNeedId, String messageId, ZonedDateTime timestamp, String payload) Creates an instance of aOpaqueEnveloperecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconnectionIdrecord component.Returns the value of thedataNeedIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themessageIdrecord component.payload()Returns the value of thepayloadrecord component.Returns the value of thepermissionIdrecord component.Returns the value of theregionConnectorIdrecord component.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OpaqueEnvelope
public OpaqueEnvelope(String regionConnectorId, String permissionId, String connectionId, String dataNeedId, String messageId, ZonedDateTime timestamp, String payload) Creates an instance of aOpaqueEnveloperecord class.- Parameters:
regionConnectorId- the value for theregionConnectorIdrecord componentpermissionId- the value for thepermissionIdrecord componentconnectionId- the value for theconnectionIdrecord componentdataNeedId- the value for thedataNeedIdrecord componentmessageId- the value for themessageIdrecord componenttimestamp- the value for thetimestamprecord componentpayload- the value for thepayloadrecord 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). -
regionConnectorId
Returns the value of theregionConnectorIdrecord component.- Returns:
- the value of the
regionConnectorIdrecord component
-
permissionId
Returns the value of thepermissionIdrecord component.- Specified by:
permissionIdin interfaceMessageWithHeaders- Returns:
- the value of the
permissionIdrecord component
-
connectionId
Returns the value of theconnectionIdrecord component.- Specified by:
connectionIdin interfaceMessageWithHeaders- Returns:
- the value of the
connectionIdrecord component
-
dataNeedId
Returns the value of thedataNeedIdrecord component.- Specified by:
dataNeedIdin interfaceMessageWithHeaders- Returns:
- the value of the
dataNeedIdrecord component
-
messageId
Returns the value of themessageIdrecord component.- Returns:
- the value of the
messageIdrecord component
-
timestamp
Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-
payload
Returns the value of thepayloadrecord component.- Returns:
- the value of the
payloadrecord component
-