Record Class CPRequestCR
java.lang.Object
java.lang.Record
energy.eddie.regionconnector.at.eda.requests.CPRequestCR
- Record Components:
dsoId- The ID of the distribution system operator.meteringPointId- The ID of the metering point.messageId- The ID of the message.start- The start date of the timeframe of the metering data that is re-requested.end- The end date of the timeframe of the metering data that is re-requested.granularity- The granularity of the re-requested metering data.configuration- The configuration that contains the eligible party ID.
public record CPRequestCR(String dsoId, String meteringPointId, String messageId, LocalDate start, LocalDate end, @Nullable AllowedGranularity granularity, AtConfiguration configuration)
extends Record
CPRequestCR This can be used to request retransmission of consumption records in the specified timeframe
-
Constructor Summary
ConstructorsConstructorDescriptionCPRequestCR(String dsoId, String meteringPointId, String messageId, LocalDate start, LocalDate end, AllowedGranularity granularity, AtConfiguration configuration) Creates an instance of aCPRequestCRrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconfigurationrecord component.dsoId()Returns the value of thedsoIdrecord component.end()Returns the value of theendrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thegranularityrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of themessageIdrecord component.Returns the value of themeteringPointIdrecord component.start()Returns the value of thestartrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CPRequestCR
public CPRequestCR(String dsoId, String meteringPointId, String messageId, LocalDate start, LocalDate end, @Nullable AllowedGranularity granularity, AtConfiguration configuration) Creates an instance of aCPRequestCRrecord class.- Parameters:
dsoId- the value for thedsoIdrecord componentmeteringPointId- the value for themeteringPointIdrecord componentmessageId- the value for themessageIdrecord componentstart- the value for thestartrecord componentend- the value for theendrecord componentgranularity- the value for thegranularityrecord componentconfiguration- the value for theconfigurationrecord component
-
-
Method Details
-
eligiblePartyId
-
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). -
dsoId
Returns the value of thedsoIdrecord component.- Returns:
- the value of the
dsoIdrecord component
-
meteringPointId
Returns the value of themeteringPointIdrecord component.- Returns:
- the value of the
meteringPointIdrecord component
-
messageId
Returns the value of themessageIdrecord component.- Returns:
- the value of the
messageIdrecord component
-
start
Returns the value of thestartrecord component.- Returns:
- the value of the
startrecord component
-
end
Returns the value of theendrecord component.- Returns:
- the value of the
endrecord component
-
granularity
Returns the value of thegranularityrecord component.- Returns:
- the value of the
granularityrecord component
-
configuration
Returns the value of theconfigurationrecord component.- Returns:
- the value of the
configurationrecord component
-