Package io.levysworks.models.requests
Record Class Request
java.lang.Object
java.lang.Record
io.levysworks.models.requests.Request
- Record Components:
id- Unique identifier of the key requestuser_uuid- UUID of the user who made the requestserver- Name of the target serverkey- Public SSH key associated with the requesttimestamp- Time when the key request was created
public record Request(int id, String user_uuid, String server, String key, Instant timestamp)
extends Record
Represents a pending SSH key request.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intid()Returns the value of theidrecord component.key()Returns the value of thekeyrecord component.server()Returns the value of theserverrecord component.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theuser_uuidrecord component.
-
Constructor Details
-
Request
Creates an instance of aRequestrecord class.
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
id
public int id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
user_uuid
Returns the value of theuser_uuidrecord component.- Returns:
- the value of the
user_uuidrecord component
-
server
Returns the value of theserverrecord component.- Returns:
- the value of the
serverrecord component
-
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
timestamp
Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-