Record Class CCMORequest

java.lang.Object
java.lang.Record
energy.eddie.regionconnector.at.eda.requests.CCMORequest

public record CCMORequest(DsoIdAndMeteringPoint dsoIdAndMeteringPoint, CCMOTimeFrame timeframe, String cmRequestId, String messageId, RequestDataType requestDataType, AllowedGranularity granularity, AllowedTransmissionCycle transmissionCycle, AtConfiguration configuration, ZonedDateTime timestamp, @Nullable String purpose) extends Record
  • Constructor Details

    • CCMORequest

      public CCMORequest(DsoIdAndMeteringPoint dsoIdAndMeteringPoint, CCMOTimeFrame timeframe, String cmRequestId, String messageId, RequestDataType requestDataType, AllowedGranularity granularity, AllowedTransmissionCycle transmissionCycle, AtConfiguration configuration, ZonedDateTime timestamp)
    • CCMORequest

      public CCMORequest(DsoIdAndMeteringPoint dsoIdAndMeteringPoint, CCMOTimeFrame timeframe, String cmRequestId, String messageId, RequestDataType requestDataType, AllowedGranularity granularity, AllowedTransmissionCycle transmissionCycle, AtConfiguration configuration, ZonedDateTime timestamp, @Nullable String purpose)
      Creates an instance of a CCMORequest record class.
      Parameters:
      dsoIdAndMeteringPoint - the value for the dsoIdAndMeteringPoint record component
      timeframe - the value for the timeframe record component
      cmRequestId - the value for the cmRequestId record component
      messageId - the value for the messageId record component
      requestDataType - the value for the requestDataType record component
      granularity - the value for the granularity record component
      transmissionCycle - the value for the transmissionCycle record component
      configuration - the value for the configuration record component
      timestamp - the value for the timestamp record component
      purpose - the value for the purpose record component
  • Method Details

    • dsoId

      public String dsoId()
    • start

      public LocalDate start()
    • end

      public Optional<LocalDate> end()
    • meteringPointId

      public Optional<String> meteringPointId()
    • 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.
    • dsoIdAndMeteringPoint

      public DsoIdAndMeteringPoint dsoIdAndMeteringPoint()
      Returns the value of the dsoIdAndMeteringPoint record component.
      Returns:
      the value of the dsoIdAndMeteringPoint record component
    • timeframe

      public CCMOTimeFrame timeframe()
      Returns the value of the timeframe record component.
      Returns:
      the value of the timeframe record component
    • cmRequestId

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

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

      public RequestDataType requestDataType()
      Returns the value of the requestDataType record component.
      Returns:
      the value of the requestDataType record component
    • granularity

      public AllowedGranularity granularity()
      Returns the value of the granularity record component.
      Returns:
      the value of the granularity record component
    • transmissionCycle

      public AllowedTransmissionCycle transmissionCycle()
      Returns the value of the transmissionCycle record component.
      Returns:
      the value of the transmissionCycle record component
    • configuration

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

      public ZonedDateTime timestamp()
      Returns the value of the timestamp record component.
      Returns:
      the value of the timestamp record component
    • purpose

      @Nullable public String purpose()
      Returns the value of the purpose record component.
      Returns:
      the value of the purpose record component