Record Class HttpSelfRegistration.RegisteredIdentity
java.lang.Object
java.lang.Record
io.agentscope.extensions.aistio.transport.HttpSelfRegistration.RegisteredIdentity
- Enclosing class:
- HttpSelfRegistration
public static record HttpSelfRegistration.RegisteredIdentity(String agentId, String agentKey, String bindingId, String instanceId, String instanceKey, long generation, String registrationCredential)
extends Record
Stable identity returned by the Catalog registration transaction.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionagentId()Returns the value of theagentIdrecord component.agentKey()Returns the value of theagentKeyrecord component.Returns the value of thebindingIdrecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of thegenerationrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theinstanceIdrecord component.Returns the value of theinstanceKeyrecord component.Returns the value of theregistrationCredentialrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RegisteredIdentity
public RegisteredIdentity(String agentId, String agentKey, String bindingId, String instanceId, String instanceKey, long generation, String registrationCredential) Creates an instance of aRegisteredIdentityrecord class.- Parameters:
agentId- the value for theagentIdrecord componentagentKey- the value for theagentKeyrecord componentbindingId- the value for thebindingIdrecord componentinstanceId- the value for theinstanceIdrecord componentinstanceKey- the value for theinstanceKeyrecord componentgeneration- the value for thegenerationrecord componentregistrationCredential- the value for theregistrationCredentialrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
agentId
Returns the value of theagentIdrecord component.- Returns:
- the value of the
agentIdrecord component
-
agentKey
Returns the value of theagentKeyrecord component.- Returns:
- the value of the
agentKeyrecord component
-
bindingId
Returns the value of thebindingIdrecord component.- Returns:
- the value of the
bindingIdrecord component
-
instanceId
Returns the value of theinstanceIdrecord component.- Returns:
- the value of the
instanceIdrecord component
-
instanceKey
Returns the value of theinstanceKeyrecord component.- Returns:
- the value of the
instanceKeyrecord component
-
generation
public long generation()Returns the value of thegenerationrecord component.- Returns:
- the value of the
generationrecord component
-
registrationCredential
Returns the value of theregistrationCredentialrecord component.- Returns:
- the value of the
registrationCredentialrecord component
-