Record Class HostRegisterSessionRequest
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.HostRegisterSessionRequest
@Generated("copilot-sdk-codegen")
public record HostRegisterSessionRequest(String sessionId, String workingDirectory, List<String> additionalDirectories, String title, Long createdAtUnixMs, Long modifiedAtUnixMs)
extends Record
Listener-scoped registration, not a copy or durable adoption of a session.
- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadditionalDirectoriesrecord component.Returns the value of thecreatedAtUnixMsrecord 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 themodifiedAtUnixMsrecord component.Returns the value of thesessionIdrecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theworkingDirectoryrecord component.
-
Constructor Details
-
HostRegisterSessionRequest
public HostRegisterSessionRequest(String sessionId, String workingDirectory, List<String> additionalDirectories, String title, Long createdAtUnixMs, Long modifiedAtUnixMs) Creates an instance of aHostRegisterSessionRequestrecord class.- Parameters:
sessionId- the value for thesessionIdrecord componentworkingDirectory- the value for theworkingDirectoryrecord componentadditionalDirectories- the value for theadditionalDirectoriesrecord componenttitle- the value for thetitlerecord componentcreatedAtUnixMs- the value for thecreatedAtUnixMsrecord componentmodifiedAtUnixMs- the value for themodifiedAtUnixMsrecord 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
Returns the value of thesessionIdrecord component.- Returns:
- the value of the
sessionIdrecord component
-
workingDirectory
Returns the value of theworkingDirectoryrecord component.- Returns:
- the value of the
workingDirectoryrecord component
-
additionalDirectories
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
createdAtUnixMs
Returns the value of thecreatedAtUnixMsrecord component.- Returns:
- the value of the
createdAtUnixMsrecord component
-
modifiedAtUnixMs
Returns the value of themodifiedAtUnixMsrecord component.- Returns:
- the value of the
modifiedAtUnixMsrecord component
-