Module com.github.copilot.java
Package com.github.copilot.generated
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 error, McpServerTransport transport, String pluginName, String pluginVersion)
extends Record
Schema for the `McpServersLoadedServer` type.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionMcpServersLoadedServer(String name, McpServerStatus status, McpServerSource source, String error, McpServerTransport transport, String pluginName, String pluginVersion) Creates an instance of aMcpServersLoadedServerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal 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.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 error, 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 componenterror- the value for theerrorrecord componenttransport- the value for thetransportrecord componentpluginName- the value for thepluginNamerecord componentpluginVersion- the value for thepluginVersionrecord 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. 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
-
error
Returns the value of theerrorrecord component.- Returns:
- the value of the
errorrecord 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
-