Record Class McpConfiguredServer
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.McpConfiguredServer
@CopilotExperimental
@Generated("copilot-sdk-codegen")
public record McpConfiguredServer(String name, Boolean enabled, McpServerSource source, String sourcePlugin, String sourcePluginVersion, String displayName, McpConfiguredServerState live)
extends Record
Effective MCP configuration entry. Configuration enablement is distinct from the optional live observation.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionMcpConfiguredServer(String name, Boolean enabled, McpServerSource source, String sourcePlugin, String sourcePluginVersion, String displayName, McpConfiguredServerState live) Creates an instance of aMcpConfiguredServerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedisplayNamerecord component.enabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.live()Returns the value of theliverecord component.name()Returns the value of thenamerecord component.source()Returns the value of thesourcerecord component.Returns the value of thesourcePluginrecord component.Returns the value of thesourcePluginVersionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
McpConfiguredServer
public McpConfiguredServer(String name, Boolean enabled, McpServerSource source, String sourcePlugin, String sourcePluginVersion, String displayName, McpConfiguredServerState live) Creates an instance of aMcpConfiguredServerrecord class.- Parameters:
name- the value for thenamerecord componentenabled- the value for theenabledrecord componentsource- the value for thesourcerecord componentsourcePlugin- the value for thesourcePluginrecord componentsourcePluginVersion- the value for thesourcePluginVersionrecord componentdisplayName- the value for thedisplayNamerecord componentlive- the value for theliverecord 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
-
enabled
Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
sourcePlugin
Returns the value of thesourcePluginrecord component.- Returns:
- the value of the
sourcePluginrecord component
-
sourcePluginVersion
Returns the value of thesourcePluginVersionrecord component.- Returns:
- the value of the
sourcePluginVersionrecord component
-
displayName
Returns the value of thedisplayNamerecord component.- Returns:
- the value of the
displayNamerecord component
-
live
Returns the value of theliverecord component.- Returns:
- the value of the
liverecord component
-