Record Class McpDiagnosticDetails
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.McpDiagnosticDetails
@Generated("copilot-sdk-codegen")
public record McpDiagnosticDetails(McpDiagnosticKind kind, String serverName, String connectionId, McpDiagnosticDirection direction, String data)
extends Record
MCP-specific detail for a source-discriminated diagnostic entry.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionMcpDiagnosticDetails(McpDiagnosticKind kind, String serverName, String connectionId, McpDiagnosticDirection direction, String data) Creates an instance of aMcpDiagnosticDetailsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconnectionIdrecord component.data()Returns the value of thedatarecord component.Returns the value of thedirectionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.Returns the value of theserverNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
McpDiagnosticDetails
public McpDiagnosticDetails(McpDiagnosticKind kind, String serverName, String connectionId, McpDiagnosticDirection direction, String data) Creates an instance of aMcpDiagnosticDetailsrecord class.- Parameters:
kind- the value for thekindrecord componentserverName- the value for theserverNamerecord componentconnectionId- the value for theconnectionIdrecord componentdirection- the value for thedirectionrecord componentdata- the value for thedatarecord 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). -
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
serverName
Returns the value of theserverNamerecord component.- Returns:
- the value of the
serverNamerecord component
-
connectionId
Returns the value of theconnectionIdrecord component.- Returns:
- the value of the
connectionIdrecord component
-
direction
Returns the value of thedirectionrecord component.- Returns:
- the value of the
directionrecord component
-
data
Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-