Record Class RegisteredDeviceView
java.lang.Object
java.lang.Record
com.cloudforge.core.manager.agent.RegisteredDeviceView
public record RegisteredDeviceView(String id, String displayName, AgentPlatform platform, String createdAt, String lastSeenAt, String revokedAt)
extends Record
One row of
GET /api/v1/settings/devices — never carries the device token itself (see
DeviceRegistrationResponse's javadoc: that value exists only once, at registration).
revokedAt is null for an active device; an admin revokes one by id, and the
device's next authenticated call is rejected regardless of whether the device is reachable to be
told so.-
Constructor Summary
ConstructorsConstructorDescriptionRegisteredDeviceView(String id, String displayName, AgentPlatform platform, String createdAt, String lastSeenAt, String revokedAt) Creates an instance of aRegisteredDeviceViewrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecreatedAtrecord component.Returns the value of thedisplayNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of thelastSeenAtrecord component.platform()Returns the value of theplatformrecord component.Returns the value of therevokedAtrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RegisteredDeviceView
public RegisteredDeviceView(String id, String displayName, AgentPlatform platform, String createdAt, String lastSeenAt, String revokedAt) Creates an instance of aRegisteredDeviceViewrecord class.- Parameters:
id- the value for theidrecord componentdisplayName- the value for thedisplayNamerecord componentplatform- the value for theplatformrecord componentcreatedAt- the value for thecreatedAtrecord componentlastSeenAt- the value for thelastSeenAtrecord componentrevokedAt- the value for therevokedAtrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
displayName
Returns the value of thedisplayNamerecord component.- Returns:
- the value of the
displayNamerecord component
-
platform
Returns the value of theplatformrecord component.- Returns:
- the value of the
platformrecord 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
-
revokedAt
Returns the value of therevokedAtrecord component.- Returns:
- the value of the
revokedAtrecord component
-