java.lang.Object
java.lang.Record
energy.eddie.regionconnector.fi.fingrid.client.model.Header

public record Header(String identification, Party physicalSenderParty, Party juridicalSenderParty, Party physicalReceiverParty, Party juridicalReceiverParty, String processRole, ZonedDateTime creation, String documentType, String organisationUser) extends Record
  • Constructor Details

    • Header

      public Header(String identification, Party physicalSenderParty, Party juridicalSenderParty, Party physicalReceiverParty, Party juridicalReceiverParty, String processRole, ZonedDateTime creation, String documentType, String organisationUser)
      Creates an instance of a Header record class.
      Parameters:
      identification - the value for the identification record component
      physicalSenderParty - the value for the physicalSenderParty record component
      juridicalSenderParty - the value for the juridicalSenderParty record component
      physicalReceiverParty - the value for the physicalReceiverParty record component
      juridicalReceiverParty - the value for the juridicalReceiverParty record component
      processRole - the value for the processRole record component
      creation - the value for the creation record component
      documentType - the value for the documentType record component
      organisationUser - the value for the organisationUser record component
  • Method Details

    • 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.
    • identification

      public String identification()
      Returns the value of the identification record component.
      Returns:
      the value of the identification record component
    • physicalSenderParty

      public Party physicalSenderParty()
      Returns the value of the physicalSenderParty record component.
      Returns:
      the value of the physicalSenderParty record component
    • juridicalSenderParty

      public Party juridicalSenderParty()
      Returns the value of the juridicalSenderParty record component.
      Returns:
      the value of the juridicalSenderParty record component
    • physicalReceiverParty

      public Party physicalReceiverParty()
      Returns the value of the physicalReceiverParty record component.
      Returns:
      the value of the physicalReceiverParty record component
    • juridicalReceiverParty

      public Party juridicalReceiverParty()
      Returns the value of the juridicalReceiverParty record component.
      Returns:
      the value of the juridicalReceiverParty record component
    • processRole

      public String processRole()
      Returns the value of the processRole record component.
      Returns:
      the value of the processRole record component
    • creation

      public ZonedDateTime creation()
      Returns the value of the creation record component.
      Returns:
      the value of the creation record component
    • documentType

      public String documentType()
      Returns the value of the documentType record component.
      Returns:
      the value of the documentType record component
    • organisationUser

      public String organisationUser()
      Returns the value of the organisationUser record component.
      Returns:
      the value of the organisationUser record component