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)
extends Record
Data payload for
SessionMcpServerStatusChangedEvent.- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionSessionMcpServerStatusChangedEventData(String serverName, McpServerStatus status, String error) Creates an instance of aSessionMcpServerStatusChangedEventDatarecord 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.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) Creates an instance of aSessionMcpServerStatusChangedEventDatarecord class.- Parameters:
serverName- the value for theserverNamerecord componentstatus- the value for thestatusrecord componenterror- the value for theerrorrecord 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
-