Package io.datarouter.auth.model.dto
Record Class PermissionRequestDto
java.lang.Object
java.lang.Record
io.datarouter.auth.model.dto.PermissionRequestDto
-
Constructor Summary
ConstructorsConstructorDescriptionPermissionRequestDto(PermissionRequest request, ZoneId zoneId, Optional<HistoryChange> historyChange) PermissionRequestDto(String requestTime, Long requestTimeMs, String requestText, String resolutionTime, Long resolutionTimeMs, String resolution, String editor) Creates an instance of aPermissionRequestDtorecord class. -
Method Summary
Modifier and TypeMethodDescriptioneditor()Returns the value of theeditorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of therequestTextrecord component.Returns the value of therequestTimerecord component.Returns the value of therequestTimeMsrecord component.Returns the value of theresolutionrecord component.Returns the value of theresolutionTimerecord component.Returns the value of theresolutionTimeMsrecord component.final StringtoString()Returns a string representation of this record class.
-
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 aPermissionRequestDtorecord class.- Parameters:
requestTime- the value for therequestTimerecord componentrequestTimeMs- the value for therequestTimeMsrecord componentrequestText- the value for therequestTextrecord componentresolutionTime- the value for theresolutionTimerecord componentresolutionTimeMs- the value for theresolutionTimeMsrecord componentresolution- the value for theresolutionrecord componenteditor- the value for theeditorrecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
requestTime
Returns the value of therequestTimerecord component.- Returns:
- the value of the
requestTimerecord component
-
requestTimeMs
Returns the value of therequestTimeMsrecord component.- Returns:
- the value of the
requestTimeMsrecord component
-
requestText
Returns the value of therequestTextrecord component.- Returns:
- the value of the
requestTextrecord component
-
resolutionTime
Returns the value of theresolutionTimerecord component.- Returns:
- the value of the
resolutionTimerecord component
-
resolutionTimeMs
Returns the value of theresolutionTimeMsrecord component.- Returns:
- the value of the
resolutionTimeMsrecord component
-
resolution
Returns the value of theresolutionrecord component.- Returns:
- the value of the
resolutionrecord component
-
editor
Returns the value of theeditorrecord component.- Returns:
- the value of the
editorrecord component
-