Record Class DataplaneToken
java.lang.Object
java.lang.Record
com.yahoo.vespa.hosted.controller.api.integration.dataplanetoken.DataplaneToken
public record DataplaneToken(TokenId tokenId, FingerPrint fingerPrint, String tokenValue)
extends Record
Represents a generated data plane token.
Note: This _MUST_ not be persisted.
- Author:
- mortent
-
Constructor Summary
ConstructorsConstructorDescriptionDataplaneToken(TokenId tokenId, FingerPrint fingerPrint, String tokenValue) Creates an instance of aDataplaneTokenrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefingerPrintrecord component.final inthashCode()Returns a hash code value for this object.tokenId()Returns the value of thetokenIdrecord component.Returns the value of thetokenValuerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DataplaneToken
Creates an instance of aDataplaneTokenrecord class.- Parameters:
tokenId- the value for thetokenIdrecord componentfingerPrint- the value for thefingerPrintrecord componenttokenValue- the value for thetokenValuerecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
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). -
tokenId
Returns the value of thetokenIdrecord component.- Returns:
- the value of the
tokenIdrecord component
-
fingerPrint
Returns the value of thefingerPrintrecord component.- Returns:
- the value of the
fingerPrintrecord component
-
tokenValue
Returns the value of thetokenValuerecord component.- Returns:
- the value of the
tokenValuerecord component
-