Module com.github.copilot.java
Package com.github.copilot.generated.rpc
Record Class SessionsPruneOldParams
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.SessionsPruneOldParams
@Generated("copilot-sdk-codegen")
public record SessionsPruneOldParams(Long olderThanDays, Boolean dryRun, Boolean includeNamed, List<String> excludeSessionIds)
extends Record
Age threshold and optional flags controlling which old sessions are pruned (or simulated when dryRun is true).
- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondryRun()Returns the value of thedryRunrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexcludeSessionIdsrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theincludeNamedrecord component.Returns the value of theolderThanDaysrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SessionsPruneOldParams
public SessionsPruneOldParams(Long olderThanDays, Boolean dryRun, Boolean includeNamed, List<String> excludeSessionIds) Creates an instance of aSessionsPruneOldParamsrecord class.- Parameters:
olderThanDays- the value for theolderThanDaysrecord componentdryRun- the value for thedryRunrecord componentincludeNamed- the value for theincludeNamedrecord componentexcludeSessionIds- the value for theexcludeSessionIdsrecord 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). -
olderThanDays
Returns the value of theolderThanDaysrecord component.- Returns:
- the value of the
olderThanDaysrecord component
-
dryRun
Returns the value of thedryRunrecord component.- Returns:
- the value of the
dryRunrecord component
-
includeNamed
Returns the value of theincludeNamedrecord component.- Returns:
- the value of the
includeNamedrecord component
-
excludeSessionIds
Returns the value of theexcludeSessionIdsrecord component.- Returns:
- the value of the
excludeSessionIdsrecord component
-