Interface CodeReviewJobTask.Builder

  • Method Details

    • taskId

      The unique identifier of the task.

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

      CodeReviewJobTask.Builder codeReviewId(String codeReviewId)

      The unique identifier of the code review associated with the task.

      Parameters:
      codeReviewId - The unique identifier of the code review associated with the task.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • codeReviewJobId

      CodeReviewJobTask.Builder codeReviewJobId(String codeReviewJobId)

      The unique identifier of the code review job that contains the task.

      Parameters:
      codeReviewJobId - The unique identifier of the code review job that contains the task.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • agentSpaceId

      CodeReviewJobTask.Builder agentSpaceId(String agentSpaceId)

      The unique identifier of the agent space.

      Parameters:
      agentSpaceId - The unique identifier of the agent space.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • 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

      CodeReviewJobTask.Builder description(String description)

      A description of the task.

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

      The list of categories assigned to the task.

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

      CodeReviewJobTask.Builder categories(Category... categories)

      The list of categories assigned to the task.

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

      The list of categories assigned to the task.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to categories(List<Category>).

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

      CodeReviewJobTask.Builder riskType(String riskType)

      The type of security risk the task is testing for.

      Parameters:
      riskType - The type of security risk the task is testing for.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • riskType

      CodeReviewJobTask.Builder riskType(RiskType riskType)

      The type of security risk the task is testing for.

      Parameters:
      riskType - The type of security risk the task is testing for.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • executionStatus

      CodeReviewJobTask.Builder executionStatus(String executionStatus)

      The current execution status of the task.

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

      CodeReviewJobTask.Builder executionStatus(TaskExecutionStatus executionStatus)

      The current execution status of the task.

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

      CodeReviewJobTask.Builder logsLocation(LogLocation logsLocation)

      The location of the task execution logs.

      Parameters:
      logsLocation - The location of the task execution logs.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • logsLocation

      default CodeReviewJobTask.Builder logsLocation(Consumer<LogLocation.Builder> logsLocation)

      The location of the task execution logs.

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

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

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

      CodeReviewJobTask.Builder createdAt(Instant createdAt)

      The date and time the task was created, in UTC format.

      Parameters:
      createdAt - The date and time the task was created, in UTC format.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • updatedAt

      CodeReviewJobTask.Builder updatedAt(Instant updatedAt)

      The date and time the task was last updated, in UTC format.

      Parameters:
      updatedAt - The date and time the task was last updated, in UTC format.
      Returns:
      Returns a reference to this object so that method calls can be chained together.