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 Details

    • CPRequestCR

      public CPRequestCR(String dsoId, String meteringPointId, String messageId, LocalDate start, LocalDate end, @Nullable AllowedGranularity granularity, AtConfiguration configuration)
      Creates an instance of a CPRequestCR record class.
      Parameters:
      dsoId - the value for the dsoId record component
      meteringPointId - the value for the meteringPointId record component
      messageId - the value for the messageId record component
      start - the value for the start record component
      end - the value for the end record component
      granularity - the value for the granularity record component
      configuration - the value for the configuration record component
  • Method Details

    • eligiblePartyId

      public String eligiblePartyId()
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • dsoId

      public String dsoId()
      Returns the value of the dsoId record component.
      Returns:
      the value of the dsoId record component
    • meteringPointId

      public String meteringPointId()
      Returns the value of the meteringPointId record component.
      Returns:
      the value of the meteringPointId record component
    • messageId

      public String messageId()
      Returns the value of the messageId record component.
      Returns:
      the value of the messageId record component
    • start

      public LocalDate start()
      Returns the value of the start record component.
      Returns:
      the value of the start record component
    • end

      public LocalDate end()
      Returns the value of the end record component.
      Returns:
      the value of the end record component
    • granularity

      @Nullable public AllowedGranularity granularity()
      Returns the value of the granularity record component.
      Returns:
      the value of the granularity record component
    • configuration

      public AtConfiguration configuration()
      Returns the value of the configuration record component.
      Returns:
      the value of the configuration record component