Module com.github.copilot.java
Package com.github.copilot.generated.rpc
Record Class ConnectedRemoteSessionMetadata
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.ConnectedRemoteSessionMetadata
@Generated("copilot-sdk-codegen")
public record ConnectedRemoteSessionMetadata(String sessionId, String name, String summary, OffsetDateTime startTime, OffsetDateTime modifiedTime, ConnectedRemoteSessionMetadataRepository repository, Long pullRequestNumber, String resourceId, ConnectedRemoteSessionMetadataKind kind, OffsetDateTime staleAt, String state)
extends Record
Metadata for a connected remote session.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionConnectedRemoteSessionMetadata(String sessionId, String name, String summary, OffsetDateTime startTime, OffsetDateTime modifiedTime, ConnectedRemoteSessionMetadataRepository repository, Long pullRequestNumber, String resourceId, ConnectedRemoteSessionMetadataKind kind, OffsetDateTime staleAt, String state) Creates an instance of aConnectedRemoteSessionMetadatarecord 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.kind()Returns the value of thekindrecord component.Returns the value of themodifiedTimerecord component.name()Returns the value of thenamerecord component.Returns the value of thepullRequestNumberrecord 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.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ConnectedRemoteSessionMetadata
public ConnectedRemoteSessionMetadata(String sessionId, String name, String summary, OffsetDateTime startTime, OffsetDateTime modifiedTime, ConnectedRemoteSessionMetadataRepository repository, Long pullRequestNumber, String resourceId, ConnectedRemoteSessionMetadataKind kind, OffsetDateTime staleAt, String state) Creates an instance of aConnectedRemoteSessionMetadatarecord class.- Parameters:
sessionId- the value for thesessionIdrecord componentname- the value for thenamerecord componentsummary- the value for thesummaryrecord componentstartTime- the value for thestartTimerecord componentmodifiedTime- the value for themodifiedTimerecord componentrepository- the value for therepositoryrecord componentpullRequestNumber- the value for thepullRequestNumberrecord componentresourceId- the value for theresourceIdrecord componentkind- the value for thekindrecord componentstaleAt- the value for thestaleAtrecord componentstate- the value for thestaterecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
summary
Returns the value of thesummaryrecord component.- Returns:
- the value of the
summaryrecord 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
-
repository
Returns the value of therepositoryrecord component.- Returns:
- the value of the
repositoryrecord component
-
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
-
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord 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
-