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 Details

    • RegisteredIdentity

      public RegisteredIdentity(String agentId, String agentKey, String bindingId, String instanceId, String instanceKey, long generation, String registrationCredential)
      Creates an instance of a RegisteredIdentity record class.
      Parameters:
      agentId - the value for the agentId record component
      agentKey - the value for the agentKey record component
      bindingId - the value for the bindingId record component
      instanceId - the value for the instanceId record component
      instanceKey - the value for the instanceKey record component
      generation - the value for the generation record component
      registrationCredential - the value for the registrationCredential record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • agentId

      public String agentId()
      Returns the value of the agentId record component.
      Returns:
      the value of the agentId record component
    • agentKey

      public String agentKey()
      Returns the value of the agentKey record component.
      Returns:
      the value of the agentKey record component
    • bindingId

      public String bindingId()
      Returns the value of the bindingId record component.
      Returns:
      the value of the bindingId record component
    • instanceId

      public String instanceId()
      Returns the value of the instanceId record component.
      Returns:
      the value of the instanceId record component
    • instanceKey

      public String instanceKey()
      Returns the value of the instanceKey record component.
      Returns:
      the value of the instanceKey record component
    • generation

      public long generation()
      Returns the value of the generation record component.
      Returns:
      the value of the generation record component
    • registrationCredential

      public String registrationCredential()
      Returns the value of the registrationCredential record component.
      Returns:
      the value of the registrationCredential record component