Record Class McpHostState
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.McpHostState
@Generated("copilot-sdk-codegen")
public record McpHostState(Boolean mcp3pEnabled, List<String> disabledServers, List<String> filteredServers, List<String> clients, List<String> pendingConnections, Map<String, McpServerFailureInfo> failedServers, Map<String, McpServerNeedsAuthInfo> needsAuthServers)
extends Record
Host-level state, omitted when no MCP host is initialized.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionMcpHostState(Boolean mcp3pEnabled, List<String> disabledServers, List<String> filteredServers, List<String> clients, List<String> pendingConnections, Map<String, McpServerFailureInfo> failedServers, Map<String, McpServerNeedsAuthInfo> needsAuthServers) Creates an instance of aMcpHostStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionclients()Returns the value of theclientsrecord component.Returns the value of thedisabledServersrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefailedServersrecord component.Returns the value of thefilteredServersrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of themcp3pEnabledrecord component.Returns the value of theneedsAuthServersrecord component.Returns the value of thependingConnectionsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
McpHostState
public McpHostState(Boolean mcp3pEnabled, List<String> disabledServers, List<String> filteredServers, List<String> clients, List<String> pendingConnections, Map<String, McpServerFailureInfo> failedServers, Map<String, McpServerNeedsAuthInfo> needsAuthServers) Creates an instance of aMcpHostStaterecord class.- Parameters:
mcp3pEnabled- the value for themcp3pEnabledrecord componentdisabledServers- the value for thedisabledServersrecord componentfilteredServers- the value for thefilteredServersrecord componentclients- the value for theclientsrecord componentpendingConnections- the value for thependingConnectionsrecord componentfailedServers- the value for thefailedServersrecord componentneedsAuthServers- the value for theneedsAuthServersrecord 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). -
mcp3pEnabled
Returns the value of themcp3pEnabledrecord component.- Returns:
- the value of the
mcp3pEnabledrecord component
-
disabledServers
-
filteredServers
-
clients
-
pendingConnections
-
failedServers
Returns the value of thefailedServersrecord component.- Returns:
- the value of the
failedServersrecord component
-
needsAuthServers
Returns the value of theneedsAuthServersrecord component.- Returns:
- the value of the
needsAuthServersrecord component
-