Record Class St1AdminDeviceGetResponse
java.lang.Object
java.lang.Record
com.io7m.stonesignal.protocol.admin.v1.St1AdminDeviceGetResponse
- All Implemented Interfaces:
St1AdminMessageType
public record St1AdminDeviceGetResponse(Optional<St1AdminDevice> device)
extends Record
implements St1AdminMessageType
The response to getting a device.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aSt1AdminDeviceGetResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptiondevice()Returns the value of thedevicerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
St1AdminDeviceGetResponse
public St1AdminDeviceGetResponse(@JsonPropertyDescription("The device.") Optional<St1AdminDevice> device) Creates an instance of aSt1AdminDeviceGetResponserecord class.- Parameters:
device- the value for thedevicerecord 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). -
device
Returns the value of thedevicerecord component.- Returns:
- the value of the
devicerecord component
-