Record Class SessionsOpenResult
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.SessionsOpenResult
@CopilotExperimental
@Generated("copilot-sdk-codegen")
public record SessionsOpenResult(SessionsOpenStatus status, String sessionId, Object sessionApi, List<String> startupPrompts, String remoteSessionId, RemoteSessionMetadataValue metadata, List<SessionsOpenProgress> progress)
extends Record
Result of opening a session.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionSessionsOpenResult(SessionsOpenStatus status, String sessionId, Object sessionApi, List<String> startupPrompts, String remoteSessionId, RemoteSessionMetadataValue metadata, List<SessionsOpenProgress> progress) Creates an instance of aSessionsOpenResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.metadata()Returns the value of themetadatarecord component.progress()Returns the value of theprogressrecord component.Returns the value of theremoteSessionIdrecord component.Returns the value of thesessionApirecord component.Returns the value of thesessionIdrecord component.Returns the value of thestartupPromptsrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SessionsOpenResult
public SessionsOpenResult(SessionsOpenStatus status, String sessionId, Object sessionApi, List<String> startupPrompts, String remoteSessionId, RemoteSessionMetadataValue metadata, List<SessionsOpenProgress> progress) Creates an instance of aSessionsOpenResultrecord class.- Parameters:
status- the value for thestatusrecord componentsessionId- the value for thesessionIdrecord componentsessionApi- the value for thesessionApirecord componentstartupPrompts- the value for thestartupPromptsrecord componentremoteSessionId- the value for theremoteSessionIdrecord componentmetadata- the value for themetadatarecord componentprogress- the value for theprogressrecord 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). -
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
sessionId
Returns the value of thesessionIdrecord component.- Returns:
- the value of the
sessionIdrecord component
-
sessionApi
Returns the value of thesessionApirecord component.- Returns:
- the value of the
sessionApirecord component
-
startupPrompts
-
remoteSessionId
Returns the value of theremoteSessionIdrecord component.- Returns:
- the value of the
remoteSessionIdrecord component
-
metadata
Returns the value of themetadatarecord component.- Returns:
- the value of the
metadatarecord component
-
progress
Returns the value of theprogressrecord component.- Returns:
- the value of the
progressrecord component
-