Interface Task.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Task.Builder,Task>, SdkBuilder<Task.Builder,Task>, SdkPojo
Enclosing class:
Task

@Mutable @NotThreadSafe public static interface Task.Builder extends SdkPojo, CopyableBuilder<Task.Builder,Task>
  • Method Details

    • agentSpaceId

      Task.Builder agentSpaceId(String agentSpaceId)

      The unique identifier for the agent space containing this task

      Parameters:
      agentSpaceId - The unique identifier for the agent space containing this task
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • taskId

      Task.Builder taskId(String taskId)

      The unique identifier for this task

      Parameters:
      taskId - The unique identifier for this task
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • executionId

      Task.Builder executionId(String executionId)

      The execution ID associated with this task, if any

      Parameters:
      executionId - The execution ID associated with this task, if any
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • title

      Task.Builder title(String title)

      The title of the task

      Parameters:
      title - The title of the task
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      Task.Builder description(String description)

      Optional detailed description of the task

      Parameters:
      description - Optional detailed description of the task
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • reference

      Task.Builder reference(ReferenceOutput reference)

      Optional reference information linking this task to external systems

      Parameters:
      reference - Optional reference information linking this task to external systems
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • reference

      default Task.Builder reference(Consumer<ReferenceOutput.Builder> reference)

      Optional reference information linking this task to external systems

      This is a convenience method that creates an instance of the ReferenceOutput.Builder avoiding the need to create one manually via ReferenceOutput.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to reference(ReferenceOutput).

      Parameters:
      reference - a consumer that will call methods on ReferenceOutput.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • taskType

      Task.Builder taskType(String taskType)

      The type of this task

      Parameters:
      taskType - The type of this task
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • taskType

      Task.Builder taskType(TaskType taskType)

      The type of this task

      Parameters:
      taskType - The type of this task
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • priority

      Task.Builder priority(String priority)

      The priority level of this task

      Parameters:
      priority - The priority level of this task
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • priority

      Task.Builder priority(Priority priority)

      The priority level of this task

      Parameters:
      priority - The priority level of this task
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      Task.Builder status(String status)

      The current status of this task

      Parameters:
      status - The current status of this task
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      Task.Builder status(TaskStatus status)

      The current status of this task

      Parameters:
      status - The current status of this task
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • createdAt

      Task.Builder createdAt(Instant createdAt)

      Timestamp when this task was created

      Parameters:
      createdAt - Timestamp when this task was created
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • updatedAt

      Task.Builder updatedAt(Instant updatedAt)

      Timestamp when this task was last updated

      Parameters:
      updatedAt - Timestamp when this task was last updated
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • version

      Task.Builder version(Integer version)

      Version number for optimistic locking

      Parameters:
      version - Version number for optimistic locking
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • supportMetadata

      Task.Builder supportMetadata(Document supportMetadata)

      Optional support metadata for the task

      Parameters:
      supportMetadata - Optional support metadata for the task
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metadata

      Task.Builder metadata(Document metadata)

      Optional metadata for the task

      Parameters:
      metadata - Optional metadata for the task
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • primaryTaskId

      Task.Builder primaryTaskId(String primaryTaskId)

      The task ID of the primary investigation this task is linked to

      Parameters:
      primaryTaskId - The task ID of the primary investigation this task is linked to
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • statusReason

      Task.Builder statusReason(String statusReason)

      Explanation for why the task status was changed (e.g., linked reason)

      Parameters:
      statusReason - Explanation for why the task status was changed (e.g., linked reason)
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • hasLinkedTasks

      Task.Builder hasLinkedTasks(Boolean hasLinkedTasks)

      Indicates if this task has other tasks linked to it

      Parameters:
      hasLinkedTasks - Indicates if this task has other tasks linked to it
      Returns:
      Returns a reference to this object so that method calls can be chained together.