Record Class CreateSessionResponse
java.lang.Object
java.lang.Record
com.github.copilot.rpc.CreateSessionResponse
- Record Components:
sessionId- the session ID assigned by the serverworkspacePath- the workspace path, ornullif infinite sessions are disabledcapabilities- the capabilities reported by the host, ornull
public record CreateSessionResponse(String sessionId, String workspacePath, SessionCapabilities capabilities)
extends Record
Internal response object from creating a session.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionCreateSessionResponse(String sessionId, String workspacePath, SessionCapabilities capabilities) Creates an instance of aCreateSessionResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecapabilitiesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thesessionIdrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theworkspacePathrecord component.
-
Constructor Details
-
CreateSessionResponse
public CreateSessionResponse(String sessionId, String workspacePath, SessionCapabilities capabilities) Creates an instance of aCreateSessionResponserecord class.- Parameters:
sessionId- the value for thesessionIdrecord componentworkspacePath- the value for theworkspacePathrecord componentcapabilities- the value for thecapabilitiesrecord 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). -
sessionId
-
workspacePath
Returns the value of theworkspacePathrecord component.- Returns:
- the value of the
workspacePathrecord component
-
capabilities
Returns the value of thecapabilitiesrecord component.- Returns:
- the value of the
capabilitiesrecord component
-