Record Class St1AdminDevice
java.lang.Object
java.lang.Record
com.io7m.stonesignal.protocol.admin.v1.St1AdminDevice
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeviceId()Returns the value of thedeviceIdrecord component.Returns the value of thedeviceKeyrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.metadata()Returns the value of themetadatarecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
St1AdminDevice
public St1AdminDevice(@JsonPropertyDescription("The device ID.") UUID deviceId, @JsonPropertyDescription("The device key.") String deviceKey, @JsonPropertyDescription("The device name.") String name, @JsonPropertyDescription("The device metadata.") Map<String, String> metadata) Creates an instance of aSt1AdminDevicerecord class.- Parameters:
deviceId- the value for thedeviceIdrecord componentdeviceKey- the value for thedeviceKeyrecord componentname- the value for thenamerecord componentmetadata- the value for themetadatarecord 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). -
deviceId
Returns the value of thedeviceIdrecord component.- Returns:
- the value of the
deviceIdrecord component
-
deviceKey
Returns the value of thedeviceKeyrecord component.- Returns:
- the value of the
deviceKeyrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
metadata
-