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 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 a TaskClientInfo record class.
      Parameters:
      type - the value for the type record component
      id - the value for the id record component
      clientTaskId - the value for the clientTaskId record component
      displayName - the value for the displayName record component
      description - the value for the description record component
      status - the value for the status record component
      owner - the value for the owner record component
      startedAt - the value for the startedAt record component
      updatedAt - the value for the updatedAt record component
      completedAt - the value for the completedAt record component
      activeTimeMs - the value for the activeTimeMs record component
      activeStartedAt - the value for the activeStartedAt record component
      idleSince - the value for the idleSince record component
      orphanedAt - the value for the orphanedAt record component
      reclaimedAt - the value for the reclaimedAt record component
      executionMode - the value for the executionMode record component
      canCancel - the value for the canCancel record component
      sequence - the value for the sequence record component
      result - the value for the result record component
      error - the value for the error record component
      errorCode - the value for the errorCode record component
      cancellationReason - the value for the cancellationReason record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • type

      public TaskClientType type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • id

      public String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • clientTaskId

      public String clientTaskId()
      Returns the value of the clientTaskId record component.
      Returns:
      the value of the clientTaskId record component
    • displayName

      public String displayName()
      Returns the value of the displayName record component.
      Returns:
      the value of the displayName record component
    • description

      public String description()
      Returns the value of the description record component.
      Returns:
      the value of the description record component
    • status

      public TaskClientStatus status()
      Returns the value of the status record component.
      Returns:
      the value of the status record component
    • owner

      public TaskClientOwner owner()
      Returns the value of the owner record component.
      Returns:
      the value of the owner record component
    • startedAt

      public OffsetDateTime startedAt()
      Returns the value of the startedAt record component.
      Returns:
      the value of the startedAt record component
    • updatedAt

      public OffsetDateTime updatedAt()
      Returns the value of the updatedAt record component.
      Returns:
      the value of the updatedAt record component
    • completedAt

      public OffsetDateTime completedAt()
      Returns the value of the completedAt record component.
      Returns:
      the value of the completedAt record component
    • activeTimeMs

      public Long activeTimeMs()
      Returns the value of the activeTimeMs record component.
      Returns:
      the value of the activeTimeMs record component
    • activeStartedAt

      public OffsetDateTime activeStartedAt()
      Returns the value of the activeStartedAt record component.
      Returns:
      the value of the activeStartedAt record component
    • idleSince

      public OffsetDateTime idleSince()
      Returns the value of the idleSince record component.
      Returns:
      the value of the idleSince record component
    • orphanedAt

      public OffsetDateTime orphanedAt()
      Returns the value of the orphanedAt record component.
      Returns:
      the value of the orphanedAt record component
    • reclaimedAt

      public OffsetDateTime reclaimedAt()
      Returns the value of the reclaimedAt record component.
      Returns:
      the value of the reclaimedAt record component
    • executionMode

      public TaskClientExecutionMode executionMode()
      Returns the value of the executionMode record component.
      Returns:
      the value of the executionMode record component
    • canCancel

      public Boolean canCancel()
      Returns the value of the canCancel record component.
      Returns:
      the value of the canCancel record component
    • sequence

      public Long sequence()
      Returns the value of the sequence record component.
      Returns:
      the value of the sequence record component
    • result

      public Object result()
      Returns the value of the result record component.
      Returns:
      the value of the result record component
    • error

      public String error()
      Returns the value of the error record component.
      Returns:
      the value of the error record component
    • errorCode

      public String errorCode()
      Returns the value of the errorCode record component.
      Returns:
      the value of the errorCode record component
    • cancellationReason

      public String cancellationReason()
      Returns the value of the cancellationReason record component.
      Returns:
      the value of the cancellationReason record component