Record Class SessionsListParams
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.SessionsListParams
@CopilotExperimental
@Generated("copilot-sdk-codegen")
public record SessionsListParams(SessionSource source, Long metadataLimit, SessionListFilter filter, Boolean includeDetached, Boolean throwOnError)
extends Record
Optional source filter, metadata-load limit, and context filter applied to the returned sessions.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionSessionsListParams(SessionSource source, Long metadataLimit, SessionListFilter filter, Boolean includeDetached, Boolean throwOnError) Creates an instance of aSessionsListParamsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.filter()Returns the value of thefilterrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theincludeDetachedrecord component.Returns the value of themetadataLimitrecord component.source()Returns the value of thesourcerecord component.Returns the value of thethrowOnErrorrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SessionsListParams
public SessionsListParams(SessionSource source, Long metadataLimit, SessionListFilter filter, Boolean includeDetached, Boolean throwOnError) Creates an instance of aSessionsListParamsrecord class.- Parameters:
source- the value for thesourcerecord componentmetadataLimit- the value for themetadataLimitrecord componentfilter- the value for thefilterrecord componentincludeDetached- the value for theincludeDetachedrecord componentthrowOnError- the value for thethrowOnErrorrecord 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). -
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
metadataLimit
Returns the value of themetadataLimitrecord component.- Returns:
- the value of the
metadataLimitrecord component
-
filter
Returns the value of thefilterrecord component.- Returns:
- the value of the
filterrecord component
-
includeDetached
Returns the value of theincludeDetachedrecord component.- Returns:
- the value of the
includeDetachedrecord component
-
throwOnError
Returns the value of thethrowOnErrorrecord component.- Returns:
- the value of the
throwOnErrorrecord component
-