Package energy.eddie.aiida.dtos.record
Record Class InboundRecordDto
java.lang.Object
java.lang.Record
energy.eddie.aiida.dtos.record.InboundRecordDto
public record InboundRecordDto(Instant timestamp, UUID userId, UUID dataSourceId, AiidaAsset asset, @Nullable String meterId, @Nullable String operatorId, AiidaSchema schema, String payload)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionInboundRecordDto(Instant timestamp, UUID userId, UUID dataSourceId, AiidaAsset asset, String meterId, String operatorId, AiidaSchema schema, String payload) Creates an instance of aInboundRecordDtorecord class. -
Method Summary
Modifier and TypeMethodDescriptionasset()Returns the value of theassetrecord component.Returns the value of thedataSourceIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.meterId()Returns the value of themeterIdrecord component.Returns the value of theoperatorIdrecord component.payload()Returns the value of thepayloadrecord component.schema()Returns the value of theschemarecord component.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.userId()Returns the value of theuserIdrecord component.
-
Constructor Details
-
InboundRecordDto
public InboundRecordDto(Instant timestamp, UUID userId, UUID dataSourceId, AiidaAsset asset, @Nullable String meterId, @Nullable String operatorId, AiidaSchema schema, String payload) Creates an instance of aInboundRecordDtorecord class.- Parameters:
timestamp- the value for thetimestamprecord componentuserId- the value for theuserIdrecord componentdataSourceId- the value for thedataSourceIdrecord componentasset- the value for theassetrecord componentmeterId- the value for themeterIdrecord componentoperatorId- the value for theoperatorIdrecord componentschema- the value for theschemarecord 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). -
timestamp
Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-
userId
Returns the value of theuserIdrecord component.- Returns:
- the value of the
userIdrecord component
-
dataSourceId
Returns the value of thedataSourceIdrecord component.- Returns:
- the value of the
dataSourceIdrecord component
-
asset
Returns the value of theassetrecord component.- Returns:
- the value of the
assetrecord component
-
meterId
Returns the value of themeterIdrecord component.- Returns:
- the value of the
meterIdrecord component
-
operatorId
Returns the value of theoperatorIdrecord component.- Returns:
- the value of the
operatorIdrecord component
-
schema
Returns the value of theschemarecord component.- Returns:
- the value of the
schemarecord component
-
payload
Returns the value of thepayloadrecord component.- Returns:
- the value of the
payloadrecord component
-