Record Class SessionTasksRegisterResult
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.SessionTasksRegisterResult
@CopilotExperimental
@Generated("copilot-sdk-codegen")
public record SessionTasksRegisterResult(TaskClientInfo task, Boolean created, Boolean reclaimed)
extends Record
Result of registering or reclaiming a client-owned task.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionSessionTasksRegisterResult(TaskClientInfo task, Boolean created, Boolean reclaimed) Creates an instance of aSessionTasksRegisterResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncreated()Returns the value of thecreatedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thereclaimedrecord component.task()Returns the value of thetaskrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SessionTasksRegisterResult
Creates an instance of aSessionTasksRegisterResultrecord class.- Parameters:
task- the value for thetaskrecord componentcreated- the value for thecreatedrecord componentreclaimed- the value for thereclaimedrecord 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). -
task
Returns the value of thetaskrecord component.- Returns:
- the value of the
taskrecord component
-
created
Returns the value of thecreatedrecord component.- Returns:
- the value of the
createdrecord component
-
reclaimed
Returns the value of thereclaimedrecord component.- Returns:
- the value of the
reclaimedrecord component
-