Record Class DeviceRegistrationResponse
java.lang.Object
java.lang.Record
com.cloudforge.core.manager.agent.DeviceRegistrationResponse
public record DeviceRegistrationResponse(String id, String deviceToken, String displayName, AgentPlatform platform, String createdAt)
extends Record
Response to a successful
POST /api/v1/settings/devices — carries the plaintext
deviceToken exactly once. Every subsequent call this device makes presents that token (same
bearer-credential shape as a personal access token); the client is responsible for storing it in
whatever OS-level secret store is appropriate (macOS Keychain, Windows Credential Manager, the
Linux Secret Service API) — it is never returned again by any other endpoint.-
Constructor Summary
ConstructorsConstructorDescriptionDeviceRegistrationResponse(String id, String deviceToken, String displayName, AgentPlatform platform, String createdAt) Creates an instance of aDeviceRegistrationResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecreatedAtrecord component.Returns the value of thedeviceTokenrecord 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.platform()Returns the value of theplatformrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DeviceRegistrationResponse
public DeviceRegistrationResponse(String id, String deviceToken, String displayName, AgentPlatform platform, String createdAt) Creates an instance of aDeviceRegistrationResponserecord class.- Parameters:
id- the value for theidrecord componentdeviceToken- the value for thedeviceTokenrecord componentdisplayName- the value for thedisplayNamerecord componentplatform- the value for theplatformrecord componentcreatedAt- the value for thecreatedAtrecord 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
-
deviceToken
Returns the value of thedeviceTokenrecord component.- Returns:
- the value of the
deviceTokenrecord 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
-