Record Class SessionMcpServerStatusChangedEvent.SessionMcpServerStatusChangedEventData
java.lang.Object
java.lang.Record
com.github.copilot.generated.SessionMcpServerStatusChangedEvent.SessionMcpServerStatusChangedEventData
- Enclosing class:
SessionMcpServerStatusChangedEvent
public static record SessionMcpServerStatusChangedEvent.SessionMcpServerStatusChangedEventData(String serverName, McpServerStatus status, String error, String errorClassification, String configSource)
extends Record
Data payload for
SessionMcpServerStatusChangedEvent.- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionSessionMcpServerStatusChangedEventData(String serverName, McpServerStatus status, String error, String errorClassification, String configSource) Creates an instance of aSessionMcpServerStatusChangedEventDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconfigSourcerecord component.final booleanIndicates whether some other object is "equal to" this one.error()Returns the value of theerrorrecord component.Returns the value of theerrorClassificationrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theserverNamerecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SessionMcpServerStatusChangedEventData
public SessionMcpServerStatusChangedEventData(String serverName, McpServerStatus status, String error, String errorClassification, String configSource) Creates an instance of aSessionMcpServerStatusChangedEventDatarecord class.- Parameters:
serverName- the value for theserverNamerecord componentstatus- the value for thestatusrecord componenterror- the value for theerrorrecord componenterrorClassification- the value for theerrorClassificationrecord componentconfigSource- the value for theconfigSourcerecord 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). -
serverName
Returns the value of theserverNamerecord component.- Returns:
- the value of the
serverNamerecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
error
Returns the value of theerrorrecord component.- Returns:
- the value of the
errorrecord component
-
errorClassification
Returns the value of theerrorClassificationrecord component.- Returns:
- the value of the
errorClassificationrecord component
-
configSource
Returns the value of theconfigSourcerecord component.- Returns:
- the value of the
configSourcerecord component
-