Record Class SessionHistoryPreviewRewindResult
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.SessionHistoryPreviewRewindResult
@CopilotExperimental
@Generated("copilot-sdk-codegen")
public record SessionHistoryPreviewRewindResult(Boolean available, HistoryRewindUnavailableReason reason, Long fileCount, List<HistoryRewindFilePreview> files)
extends Record
Files and aggregate changes for a prospective rewind.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionSessionHistoryPreviewRewindResult(Boolean available, HistoryRewindUnavailableReason reason, Long fileCount, List<HistoryRewindFilePreview> files) Creates an instance of aSessionHistoryPreviewRewindResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theavailablerecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefileCountrecord component.files()Returns the value of thefilesrecord component.final inthashCode()Returns a hash code value for this object.reason()Returns the value of thereasonrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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). -
available
Returns the value of theavailablerecord component.- Returns:
- the value of the
availablerecord component
-
reason
Returns the value of thereasonrecord component.- Returns:
- the value of the
reasonrecord component
-
fileCount
Returns the value of thefileCountrecord component.- Returns:
- the value of the
fileCountrecord component
-
files
Returns the value of thefilesrecord component.- Returns:
- the value of the
filesrecord component
-