Package co.cryptoservice.sdk
Record Class ServiceInfo
java.lang.Object
java.lang.Record
co.cryptoservice.sdk.ServiceInfo
- Record Components:
description- the descriptiondetails- the detailsid- identifier of this server instance, new at each startlicense- the licensetitle- the titleurl- the urlversion- the library version as a JSON string literal, quotes included: the characters "1.2.3" with their quotes; parse it as JSON to get the version
public record ServiceInfo(String description, String details, String id, String license, String title, String url, String version)
extends Record
What
GET / answers: service metadata.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionrecord component.details()Returns the value of thedetailsrecord 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.license()Returns the value of thelicenserecord component.title()Returns the value of thetitlerecord component.toString()Names the members; values that may be secret (keys, plaintexts, passwords, signatures) are redacted.url()Returns the value of theurlrecord component.version()Returns the value of theversionrecord component.
-
Constructor Details
-
ServiceInfo
public ServiceInfo(String description, String details, String id, String license, String title, String url, String version) Creates an instance of aServiceInforecord class.- Parameters:
description- the value for thedescriptionrecord componentdetails- the value for thedetailsrecord componentid- the value for theidrecord componentlicense- the value for thelicenserecord componenttitle- the value for thetitlerecord componenturl- the value for theurlrecord componentversion- the value for theversionrecord component
-
-
Method Details
-
toString
Names the members; values that may be secret (keys, plaintexts, passwords, signatures) are redacted. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
details
Returns the value of thedetailsrecord component.- Returns:
- the value of the
detailsrecord component
-
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
license
Returns the value of thelicenserecord component.- Returns:
- the value of the
licenserecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-