Record Class PermissionRequestDto

java.lang.Object
java.lang.Record
io.datarouter.auth.model.dto.PermissionRequestDto

public record PermissionRequestDto(String requestTime, Long requestTimeMs, String requestText, String resolutionTime, Long resolutionTimeMs, String resolution, String editor) extends Record
  • Constructor Details

    • PermissionRequestDto

      public PermissionRequestDto(PermissionRequest request, ZoneId zoneId, Optional<HistoryChange> historyChange)
    • PermissionRequestDto

      public PermissionRequestDto(String requestTime, Long requestTimeMs, String requestText, String resolutionTime, Long resolutionTimeMs, String resolution, String editor)
      Creates an instance of a PermissionRequestDto record class.
      Parameters:
      requestTime - the value for the requestTime record component
      requestTimeMs - the value for the requestTimeMs record component
      requestText - the value for the requestText record component
      resolutionTime - the value for the resolutionTime record component
      resolutionTimeMs - the value for the resolutionTimeMs record component
      resolution - the value for the resolution record component
      editor - the value for the editor 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.
    • requestTime

      public String requestTime()
      Returns the value of the requestTime record component.
      Returns:
      the value of the requestTime record component
    • requestTimeMs

      public Long requestTimeMs()
      Returns the value of the requestTimeMs record component.
      Returns:
      the value of the requestTimeMs record component
    • requestText

      public String requestText()
      Returns the value of the requestText record component.
      Returns:
      the value of the requestText record component
    • resolutionTime

      public String resolutionTime()
      Returns the value of the resolutionTime record component.
      Returns:
      the value of the resolutionTime record component
    • resolutionTimeMs

      public Long resolutionTimeMs()
      Returns the value of the resolutionTimeMs record component.
      Returns:
      the value of the resolutionTimeMs record component
    • resolution

      public String resolution()
      Returns the value of the resolution record component.
      Returns:
      the value of the resolution record component
    • editor

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