Record Class CMRequestStatus

java.lang.Object
java.lang.Record
energy.eddie.regionconnector.at.eda.models.CMRequestStatus

public record CMRequestStatus(NotificationMessageType messageType, String conversationId, @Nullable String cmRequestId, List<ConsentData> consentData) extends Record
  • Constructor Details

    • CMRequestStatus

      public CMRequestStatus(NotificationMessageType messageType, String conversationId, String message)
    • CMRequestStatus

      public CMRequestStatus(NotificationMessageType messageType, String conversationId, @Nullable String cmRequestId, List<ConsentData> consentData)
      Creates an instance of a CMRequestStatus record class.
      Parameters:
      messageType - the value for the messageType record component
      conversationId - the value for the conversationId record component
      cmRequestId - the value for the cmRequestId record component
      consentData - the value for the consentData record component
  • Method Details

    • message

      public String message()
    • 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.
    • messageType

      public NotificationMessageType messageType()
      Returns the value of the messageType record component.
      Returns:
      the value of the messageType record component
    • conversationId

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

      @Nullable public String cmRequestId()
      Returns the value of the cmRequestId record component.
      Returns:
      the value of the cmRequestId record component
    • consentData

      public List<ConsentData> consentData()
      Returns the value of the consentData record component.
      Returns:
      the value of the consentData record component