Record Class TaskClientInfo
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.TaskClientInfo
@Generated("copilot-sdk-codegen")
public record TaskClientInfo(TaskClientType type, String id, String clientTaskId, String displayName, String description, TaskClientStatus status, TaskClientOwner owner, OffsetDateTime startedAt, OffsetDateTime updatedAt, OffsetDateTime completedAt, Long activeTimeMs, OffsetDateTime activeStartedAt, OffsetDateTime idleSince, OffsetDateTime orphanedAt, OffsetDateTime reclaimedAt, TaskClientExecutionMode executionMode, Boolean canCancel, Long sequence, Object result, String error, String errorCode, String cancellationReason)
extends Record
Tracked client-owned task metadata.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionTaskClientInfo(TaskClientType type, String id, String clientTaskId, String displayName, String description, TaskClientStatus status, TaskClientOwner owner, OffsetDateTime startedAt, OffsetDateTime updatedAt, OffsetDateTime completedAt, Long activeTimeMs, OffsetDateTime activeStartedAt, OffsetDateTime idleSince, OffsetDateTime orphanedAt, OffsetDateTime reclaimedAt, TaskClientExecutionMode executionMode, Boolean canCancel, Long sequence, Object result, String error, String errorCode, String cancellationReason) Creates an instance of aTaskClientInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactiveStartedAtrecord component.Returns the value of theactiveTimeMsrecord component.Returns the value of thecanCancelrecord component.Returns the value of thecancellationReasonrecord component.Returns the value of theclientTaskIdrecord component.Returns the value of thecompletedAtrecord component.Returns the value of thedescriptionrecord component.Returns the value of thedisplayNamerecord component.final booleanIndicates whether some other object is "equal to" this one.error()Returns the value of theerrorrecord component.Returns the value of theerrorCoderecord component.Returns the value of theexecutionModerecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of theidleSincerecord component.Returns the value of theorphanedAtrecord component.owner()Returns the value of theownerrecord component.Returns the value of thereclaimedAtrecord component.result()Returns the value of theresultrecord component.sequence()Returns the value of thesequencerecord component.Returns the value of thestartedAtrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.Returns the value of theupdatedAtrecord component.
-
Constructor Details
-
TaskClientInfo
public TaskClientInfo(TaskClientType type, String id, String clientTaskId, String displayName, String description, TaskClientStatus status, TaskClientOwner owner, OffsetDateTime startedAt, OffsetDateTime updatedAt, OffsetDateTime completedAt, Long activeTimeMs, OffsetDateTime activeStartedAt, OffsetDateTime idleSince, OffsetDateTime orphanedAt, OffsetDateTime reclaimedAt, TaskClientExecutionMode executionMode, Boolean canCancel, Long sequence, Object result, String error, String errorCode, String cancellationReason) Creates an instance of aTaskClientInforecord class.- Parameters:
type- the value for thetyperecord componentid- the value for theidrecord componentclientTaskId- the value for theclientTaskIdrecord componentdisplayName- the value for thedisplayNamerecord componentdescription- the value for thedescriptionrecord componentstatus- the value for thestatusrecord componentowner- the value for theownerrecord componentstartedAt- the value for thestartedAtrecord componentupdatedAt- the value for theupdatedAtrecord componentcompletedAt- the value for thecompletedAtrecord componentactiveTimeMs- the value for theactiveTimeMsrecord componentactiveStartedAt- the value for theactiveStartedAtrecord componentidleSince- the value for theidleSincerecord componentorphanedAt- the value for theorphanedAtrecord componentreclaimedAt- the value for thereclaimedAtrecord componentexecutionMode- the value for theexecutionModerecord componentcanCancel- the value for thecanCancelrecord componentsequence- the value for thesequencerecord componentresult- the value for theresultrecord componenterror- the value for theerrorrecord componenterrorCode- the value for theerrorCoderecord componentcancellationReason- the value for thecancellationReasonrecord 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). -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord 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
-
displayName
Returns the value of thedisplayNamerecord component.- Returns:
- the value of the
displayNamerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
owner
Returns the value of theownerrecord component.- Returns:
- the value of the
ownerrecord component
-
startedAt
Returns the value of thestartedAtrecord component.- Returns:
- the value of the
startedAtrecord component
-
updatedAt
Returns the value of theupdatedAtrecord component.- Returns:
- the value of the
updatedAtrecord component
-
completedAt
Returns the value of thecompletedAtrecord component.- Returns:
- the value of the
completedAtrecord component
-
activeTimeMs
Returns the value of theactiveTimeMsrecord component.- Returns:
- the value of the
activeTimeMsrecord component
-
activeStartedAt
Returns the value of theactiveStartedAtrecord component.- Returns:
- the value of the
activeStartedAtrecord component
-
idleSince
Returns the value of theidleSincerecord component.- Returns:
- the value of the
idleSincerecord component
-
orphanedAt
Returns the value of theorphanedAtrecord component.- Returns:
- the value of the
orphanedAtrecord component
-
reclaimedAt
Returns the value of thereclaimedAtrecord component.- Returns:
- the value of the
reclaimedAtrecord component
-
executionMode
Returns the value of theexecutionModerecord component.- Returns:
- the value of the
executionModerecord component
-
canCancel
Returns the value of thecanCancelrecord component.- Returns:
- the value of the
canCancelrecord component
-
sequence
Returns the value of thesequencerecord component.- Returns:
- the value of the
sequencerecord component
-
result
Returns the value of theresultrecord component.- Returns:
- the value of the
resultrecord component
-
error
Returns the value of theerrorrecord component.- Returns:
- the value of the
errorrecord component
-
errorCode
Returns the value of theerrorCoderecord component.- Returns:
- the value of the
errorCoderecord component
-
cancellationReason
Returns the value of thecancellationReasonrecord component.- Returns:
- the value of the
cancellationReasonrecord component
-