Record Class SessionQueueSetDrainPausedParams
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.SessionQueueSetDrainPausedParams
@CopilotExperimental
@Generated("copilot-sdk-codegen")
public record SessionQueueSetDrainPausedParams(String sessionId, Boolean paused)
extends Record
Parameters for acquiring or releasing the queued-lane drain pause. Acquisition is exclusive and non-idempotent: `paused: true` against an already-paused session fails with `queue_already_paused`. The pause is never released automatically — it is not tied to the caller's lifetime, so a client that exits without sending `paused: false` leaves the lane frozen. Release is unowned: `paused: false` clears the pause for any caller, including one that never acquired it.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionSessionQueueSetDrainPausedParams(String sessionId, Boolean paused) Creates an instance of aSessionQueueSetDrainPausedParamsrecord 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.paused()Returns the value of thepausedrecord component.Returns the value of thesessionIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SessionQueueSetDrainPausedParams
-
-
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). -
sessionId
Returns the value of thesessionIdrecord component.- Returns:
- the value of the
sessionIdrecord component
-
paused
Returns the value of thepausedrecord component.- Returns:
- the value of the
pausedrecord component
-