Record Class ErrorGroupDTO

java.lang.Object
java.lang.Record
ch.admin.bit.jeap.errorhandling.web.api.ErrorGroupDTO

public record ErrorGroupDTO(String errorGroupId, Long errorCount, String errorEvent, String errorPublisher, String errorCode, String errorMessage, String firstErrorAt, String latestErrorAt, String ticketNumber, String freeText) extends Record
  • Constructor Details

    • ErrorGroupDTO

      public ErrorGroupDTO(String errorGroupId, Long errorCount, String errorEvent, String errorPublisher, String errorCode, String errorMessage, String firstErrorAt, String latestErrorAt, String ticketNumber, String freeText)
      Creates an instance of a ErrorGroupDTO record class.
      Parameters:
      errorGroupId - the value for the errorGroupId record component
      errorCount - the value for the errorCount record component
      errorEvent - the value for the errorEvent record component
      errorPublisher - the value for the errorPublisher record component
      errorCode - the value for the errorCode record component
      errorMessage - the value for the errorMessage record component
      firstErrorAt - the value for the firstErrorAt record component
      latestErrorAt - the value for the latestErrorAt record component
      ticketNumber - the value for the ticketNumber record component
      freeText - the value for the freeText 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.
    • errorGroupId

      public String errorGroupId()
      Returns the value of the errorGroupId record component.
      Returns:
      the value of the errorGroupId record component
    • errorCount

      public Long errorCount()
      Returns the value of the errorCount record component.
      Returns:
      the value of the errorCount record component
    • errorEvent

      public String errorEvent()
      Returns the value of the errorEvent record component.
      Returns:
      the value of the errorEvent record component
    • errorPublisher

      public String errorPublisher()
      Returns the value of the errorPublisher record component.
      Returns:
      the value of the errorPublisher record component
    • errorCode

      public String errorCode()
      Returns the value of the errorCode record component.
      Returns:
      the value of the errorCode record component
    • errorMessage

      public String errorMessage()
      Returns the value of the errorMessage record component.
      Returns:
      the value of the errorMessage record component
    • firstErrorAt

      public String firstErrorAt()
      Returns the value of the firstErrorAt record component.
      Returns:
      the value of the firstErrorAt record component
    • latestErrorAt

      public String latestErrorAt()
      Returns the value of the latestErrorAt record component.
      Returns:
      the value of the latestErrorAt record component
    • ticketNumber

      public String ticketNumber()
      Returns the value of the ticketNumber record component.
      Returns:
      the value of the ticketNumber record component
    • freeText

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