Record Class SessionHistoryTruncateResult
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.SessionHistoryTruncateResult
@CopilotExperimental
@Generated("copilot-sdk-codegen")
public record SessionHistoryTruncateResult(Long eventsRemoved, Boolean checkpointCleanupFailed, String checkpointCleanupError)
extends Record
Number of events that were removed by the truncation.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionSessionHistoryTruncateResult(Long eventsRemoved, Boolean checkpointCleanupFailed, String checkpointCleanupError) Creates an instance of aSessionHistoryTruncateResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecheckpointCleanupErrorrecord component.Returns the value of thecheckpointCleanupFailedrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theeventsRemovedrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SessionHistoryTruncateResult
public SessionHistoryTruncateResult(Long eventsRemoved, Boolean checkpointCleanupFailed, String checkpointCleanupError) Creates an instance of aSessionHistoryTruncateResultrecord class.- Parameters:
eventsRemoved- the value for theeventsRemovedrecord componentcheckpointCleanupFailed- the value for thecheckpointCleanupFailedrecord componentcheckpointCleanupError- the value for thecheckpointCleanupErrorrecord 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). -
eventsRemoved
Returns the value of theeventsRemovedrecord component.- Returns:
- the value of the
eventsRemovedrecord component
-
checkpointCleanupFailed
Returns the value of thecheckpointCleanupFailedrecord component.- Returns:
- the value of the
checkpointCleanupFailedrecord component
-
checkpointCleanupError
Returns the value of thecheckpointCleanupErrorrecord component.- Returns:
- the value of the
checkpointCleanupErrorrecord component
-