Record Class McpAssured.InitResult

java.lang.Object
java.lang.Record
io.quarkiverse.mcp.server.test.McpAssured.InitResult
Enclosing class:
McpAssured

public static record McpAssured.InitResult(String protocolVersion, String serverName, String serverTitle, String serverVersion, List<McpAssured.ServerCapability> capabilities, String instructions, io.quarkiverse.mcp.server.Implementation implementation, io.vertx.core.json.JsonObject meta) extends Record
  • Constructor Details

    • InitResult

      public InitResult(String protocolVersion, String serverName, String serverTitle, String serverVersion, List<McpAssured.ServerCapability> capabilities, String instructions, io.quarkiverse.mcp.server.Implementation implementation, io.vertx.core.json.JsonObject meta)
      Creates an instance of a InitResult record class.
      Parameters:
      protocolVersion - the value for the protocolVersion record component
      serverName - the value for the serverName record component
      serverTitle - the value for the serverTitle record component
      serverVersion - the value for the serverVersion record component
      capabilities - the value for the capabilities record component
      instructions - the value for the instructions record component
      implementation - the value for the implementation record component
      meta - the value for the meta 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • protocolVersion

      public String protocolVersion()
      Returns the value of the protocolVersion record component.
      Returns:
      the value of the protocolVersion record component
    • serverName

      public String serverName()
      Returns the value of the serverName record component.
      Returns:
      the value of the serverName record component
    • serverTitle

      public String serverTitle()
      Returns the value of the serverTitle record component.
      Returns:
      the value of the serverTitle record component
    • serverVersion

      public String serverVersion()
      Returns the value of the serverVersion record component.
      Returns:
      the value of the serverVersion record component
    • capabilities

      public List<McpAssured.ServerCapability> capabilities()
      Returns the value of the capabilities record component.
      Returns:
      the value of the capabilities record component
    • instructions

      public String instructions()
      Returns the value of the instructions record component.
      Returns:
      the value of the instructions record component
    • implementation

      public io.quarkiverse.mcp.server.Implementation implementation()
      Returns the value of the implementation record component.
      Returns:
      the value of the implementation record component
    • meta

      public io.vertx.core.json.JsonObject meta()
      Returns the value of the meta record component.
      Returns:
      the value of the meta record component