Record Class SessionView
java.lang.Object
java.lang.Record
com.chaosguide.iam.vertex.client.dto.SessionView
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecreatedAtrecord component.booleancurrent()Returns the value of thecurrentrecord component.deviceId()Returns the value of thedeviceIdrecord 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 theipAddressrecord component.Returns the value of thelastSeenAtrecord component.Returns the value of thesessionIdrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theuserAgentrecord component.
-
Constructor Details
-
SessionView
public SessionView(String sessionId, String ipAddress, String userAgent, String deviceId, String createdAt, String lastSeenAt, boolean current) Creates an instance of aSessionViewrecord class.- Parameters:
sessionId- the value for thesessionIdrecord componentipAddress- the value for theipAddressrecord componentuserAgent- the value for theuserAgentrecord componentdeviceId- the value for thedeviceIdrecord componentcreatedAt- the value for thecreatedAtrecord componentlastSeenAt- the value for thelastSeenAtrecord componentcurrent- the value for thecurrentrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
sessionId
Returns the value of thesessionIdrecord component.- Returns:
- the value of the
sessionIdrecord component
-
ipAddress
Returns the value of theipAddressrecord component.- Returns:
- the value of the
ipAddressrecord component
-
userAgent
Returns the value of theuserAgentrecord component.- Returns:
- the value of the
userAgentrecord component
-
deviceId
Returns the value of thedeviceIdrecord component.- Returns:
- the value of the
deviceIdrecord component
-
createdAt
Returns the value of thecreatedAtrecord component.- Returns:
- the value of the
createdAtrecord component
-
lastSeenAt
Returns the value of thelastSeenAtrecord component.- Returns:
- the value of the
lastSeenAtrecord component
-
current
public boolean current()Returns the value of thecurrentrecord component.- Returns:
- the value of the
currentrecord component
-