Record Class McpClient.Config
java.lang.Object
java.lang.Record
com.cockroachlabs.data.continuum.mcp.McpClient.Config
- Enclosing interface:
McpClient
public static record McpClient.Config(boolean enabled, String endpoint, String token)
extends Record
Configuration for an MCP client. A blank endpoint selects the simulated client.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanenabled()Returns the value of theenabledrecord component.endpoint()Returns the value of theendpointrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.token()Returns the value of thetokenrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Config
Creates an instance of aConfigrecord class.- Parameters:
enabled- the value for theenabledrecord componentendpoint- the value for theendpointrecord componenttoken- the value for thetokenrecord 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 '=='. -
enabled
public boolean enabled()Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-
endpoint
Returns the value of theendpointrecord component.- Returns:
- the value of the
endpointrecord component
-
token
Returns the value of thetokenrecord component.- Returns:
- the value of the
tokenrecord component
-