Record Class RemoteSessionMetadataValue
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.RemoteSessionMetadataValue
@Generated("copilot-sdk-codegen")
public record RemoteSessionMetadataValue(String sessionId, String startTime, String modifiedTime, String summary, String name, Boolean isRemote, SessionContext context, RemoteSessionMetadataRepository repository, List<String> remoteSessionIds, Long pullRequestNumber, String resourceId, RemoteSessionMetadataTaskType taskType, String staleAt, String state)
extends Record
Remote session metadata for the session to hand off (typically obtained from `sessions.list` with `source: "remote"`).
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionRemoteSessionMetadataValue(String sessionId, String startTime, String modifiedTime, String summary, String name, Boolean isRemote, SessionContext context, RemoteSessionMetadataRepository repository, List<String> remoteSessionIds, Long pullRequestNumber, String resourceId, RemoteSessionMetadataTaskType taskType, String staleAt, String state) Creates an instance of aRemoteSessionMetadataValuerecord class. -
Method Summary
Modifier and TypeMethodDescriptioncontext()Returns the value of thecontextrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.isRemote()Returns the value of theisRemoterecord component.Returns the value of themodifiedTimerecord component.name()Returns the value of thenamerecord component.Returns the value of thepullRequestNumberrecord component.Returns the value of theremoteSessionIdsrecord component.Returns the value of therepositoryrecord component.Returns the value of theresourceIdrecord component.Returns the value of thesessionIdrecord component.staleAt()Returns the value of thestaleAtrecord component.Returns the value of thestartTimerecord component.state()Returns the value of thestaterecord component.summary()Returns the value of thesummaryrecord component.taskType()Returns the value of thetaskTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RemoteSessionMetadataValue
public RemoteSessionMetadataValue(String sessionId, String startTime, String modifiedTime, String summary, String name, Boolean isRemote, SessionContext context, RemoteSessionMetadataRepository repository, List<String> remoteSessionIds, Long pullRequestNumber, String resourceId, RemoteSessionMetadataTaskType taskType, String staleAt, String state) Creates an instance of aRemoteSessionMetadataValuerecord class.- Parameters:
sessionId- the value for thesessionIdrecord componentstartTime- the value for thestartTimerecord componentmodifiedTime- the value for themodifiedTimerecord componentsummary- the value for thesummaryrecord componentname- the value for thenamerecord componentisRemote- the value for theisRemoterecord componentcontext- the value for thecontextrecord componentrepository- the value for therepositoryrecord componentremoteSessionIds- the value for theremoteSessionIdsrecord componentpullRequestNumber- the value for thepullRequestNumberrecord componentresourceId- the value for theresourceIdrecord componenttaskType- the value for thetaskTyperecord componentstaleAt- the value for thestaleAtrecord componentstate- the value for thestaterecord 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
-
startTime
Returns the value of thestartTimerecord component.- Returns:
- the value of the
startTimerecord component
-
modifiedTime
Returns the value of themodifiedTimerecord component.- Returns:
- the value of the
modifiedTimerecord component
-
summary
Returns the value of thesummaryrecord component.- Returns:
- the value of the
summaryrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
isRemote
Returns the value of theisRemoterecord component.- Returns:
- the value of the
isRemoterecord component
-
context
Returns the value of thecontextrecord component.- Returns:
- the value of the
contextrecord component
-
repository
Returns the value of therepositoryrecord component.- Returns:
- the value of the
repositoryrecord component
-
remoteSessionIds
-
pullRequestNumber
Returns the value of thepullRequestNumberrecord component.- Returns:
- the value of the
pullRequestNumberrecord component
-
resourceId
Returns the value of theresourceIdrecord component.- Returns:
- the value of the
resourceIdrecord component
-
taskType
Returns the value of thetaskTyperecord component.- Returns:
- the value of the
taskTyperecord component
-
staleAt
Returns the value of thestaleAtrecord component.- Returns:
- the value of the
staleAtrecord component
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-