Record Class TasksCancelParams
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.TasksCancelParams
@CopilotExperimental
@Generated("copilot-sdk-codegen")
public record TasksCancelParams(String sessionId, String id, String clientTaskId, String cancellationId, ClientTaskCancelReason reason)
extends Record
Runtime-to-owner cancellation request for a client-owned task.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionTasksCancelParams(String sessionId, String id, String clientTaskId, String cancellationId, ClientTaskCancelReason reason) Creates an instance of aTasksCancelParamsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecancellationIdrecord component.Returns the value of theclientTaskIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.reason()Returns the value of thereasonrecord component.Returns the value of thesessionIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TasksCancelParams
public TasksCancelParams(String sessionId, String id, String clientTaskId, String cancellationId, ClientTaskCancelReason reason) Creates an instance of aTasksCancelParamsrecord class.- Parameters:
sessionId- the value for thesessionIdrecord componentid- the value for theidrecord componentclientTaskId- the value for theclientTaskIdrecord componentcancellationId- the value for thecancellationIdrecord componentreason- the value for thereasonrecord 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). -
sessionId
Returns the value of thesessionIdrecord component.- Returns:
- the value of the
sessionIdrecord component
-
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
clientTaskId
Returns the value of theclientTaskIdrecord component.- Returns:
- the value of the
clientTaskIdrecord component
-
cancellationId
Returns the value of thecancellationIdrecord component.- Returns:
- the value of the
cancellationIdrecord component
-
reason
Returns the value of thereasonrecord component.- Returns:
- the value of the
reasonrecord component
-