Record Class McpServersLoadedServer
java.lang.Object
java.lang.Record
com.github.copilot.generated.McpServersLoadedServer
@Generated("copilot-sdk-codegen")
public record McpServersLoadedServer(String name, McpServerStatus status, McpServerSource source, String displayName, String error, McpServerMetadata serverMetadata, McpServerTransport transport, String pluginName, String pluginVersion)
extends Record
A single MCP server status summary in `session.mcp_servers_loaded`, including name, status, source, transport, and plugin metadata.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionMcpServersLoadedServer(String name, McpServerStatus status, McpServerSource source, String displayName, String error, McpServerMetadata serverMetadata, McpServerTransport transport, String pluginName, String pluginVersion) Creates an instance of aMcpServersLoadedServerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedisplayNamerecord component.final booleanIndicates whether some other object is "equal to" this one.error()Returns the value of theerrorrecord component.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.Returns the value of thepluginNamerecord component.Returns the value of thepluginVersionrecord component.Returns the value of theserverMetadatarecord component.source()Returns the value of thesourcerecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetransportrecord component.
-
Constructor Details
-
McpServersLoadedServer
public McpServersLoadedServer(String name, McpServerStatus status, McpServerSource source, String displayName, String error, McpServerMetadata serverMetadata, McpServerTransport transport, String pluginName, String pluginVersion) Creates an instance of aMcpServersLoadedServerrecord class.- Parameters:
name- the value for thenamerecord componentstatus- the value for thestatusrecord componentsource- the value for thesourcerecord componentdisplayName- the value for thedisplayNamerecord componenterror- the value for theerrorrecord componentserverMetadata- the value for theserverMetadatarecord componenttransport- the value for thetransportrecord componentpluginName- the value for thepluginNamerecord componentpluginVersion- the value for thepluginVersionrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
displayName
Returns the value of thedisplayNamerecord component.- Returns:
- the value of the
displayNamerecord component
-
error
Returns the value of theerrorrecord component.- Returns:
- the value of the
errorrecord component
-
serverMetadata
Returns the value of theserverMetadatarecord component.- Returns:
- the value of the
serverMetadatarecord component
-
transport
Returns the value of thetransportrecord component.- Returns:
- the value of the
transportrecord component
-
pluginName
Returns the value of thepluginNamerecord component.- Returns:
- the value of the
pluginNamerecord component
-
pluginVersion
Returns the value of thepluginVersionrecord component.- Returns:
- the value of the
pluginVersionrecord component
-