Interface CodeReviewJob.Builder

  • Method Details

    • codeReviewJobId

      CodeReviewJob.Builder codeReviewJobId(String codeReviewJobId)

      The unique identifier of the code review job.

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

      CodeReviewJob.Builder codeReviewId(String codeReviewId)

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

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

      The title of the code review job.

      Parameters:
      title - The title of the code review job.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overview

      CodeReviewJob.Builder overview(String overview)

      An overview of the code review job results.

      Parameters:
      overview - An overview of the code review job results.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • status

      CodeReviewJob.Builder status(String status)

      The current status of the code review job.

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

      The current status of the code review job.

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

      The list of documents providing context for the code review job.

      Parameters:
      documents - The list of documents providing context for the code review job.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • documents

      CodeReviewJob.Builder documents(DocumentInfo... documents)

      The list of documents providing context for the code review job.

      Parameters:
      documents - The list of documents providing context for the code review job.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • documents

      The list of documents providing context for the code review job.

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

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

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

      The list of source code repositories analyzed during the code review job.

      Parameters:
      sourceCode - The list of source code repositories analyzed during the code review job.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sourceCode

      CodeReviewJob.Builder sourceCode(SourceCodeRepository... sourceCode)

      The list of source code repositories analyzed during the code review job.

      Parameters:
      sourceCode - The list of source code repositories analyzed during the code review job.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sourceCode

      The list of source code repositories analyzed during the code review job.

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

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

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

      The list of steps in the code review job execution.

      Parameters:
      steps - The list of steps in the code review job execution.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • steps

      CodeReviewJob.Builder steps(Step... steps)

      The list of steps in the code review job execution.

      Parameters:
      steps - The list of steps in the code review job execution.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • steps

      The list of steps in the code review job execution.

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

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

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

      CodeReviewJob.Builder executionContext(Collection<ExecutionContext> executionContext)

      The execution context messages for the code review job.

      Parameters:
      executionContext - The execution context messages for the code review job.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • executionContext

      CodeReviewJob.Builder executionContext(ExecutionContext... executionContext)

      The execution context messages for the code review job.

      Parameters:
      executionContext - The execution context messages for the code review job.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • executionContext

      CodeReviewJob.Builder executionContext(Consumer<ExecutionContext.Builder>... executionContext)

      The execution context messages for the code review job.

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

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

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

      CodeReviewJob.Builder serviceRole(String serviceRole)

      The IAM service role used for the code review job.

      Parameters:
      serviceRole - The IAM service role used for the code review job.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • logConfig

      CodeReviewJob.Builder logConfig(CloudWatchLog logConfig)

      The CloudWatch Logs configuration for the code review job.

      Parameters:
      logConfig - The CloudWatch Logs configuration for the code review job.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • logConfig

      default CodeReviewJob.Builder logConfig(Consumer<CloudWatchLog.Builder> logConfig)

      The CloudWatch Logs configuration for the code review job.

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

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

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

      CodeReviewJob.Builder errorInformation(ErrorInformation errorInformation)

      Error information if the code review job encountered an error.

      Parameters:
      errorInformation - Error information if the code review job encountered an error.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • errorInformation

      default CodeReviewJob.Builder errorInformation(Consumer<ErrorInformation.Builder> errorInformation)

      Error information if the code review job encountered an error.

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

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

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

      CodeReviewJob.Builder integratedRepositories(Collection<IntegratedRepository> integratedRepositories)

      The list of integrated repositories associated with the code review job.

      Parameters:
      integratedRepositories - The list of integrated repositories associated with the code review job.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • integratedRepositories

      CodeReviewJob.Builder integratedRepositories(IntegratedRepository... integratedRepositories)

      The list of integrated repositories associated with the code review job.

      Parameters:
      integratedRepositories - The list of integrated repositories associated with the code review job.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • integratedRepositories

      CodeReviewJob.Builder integratedRepositories(Consumer<IntegratedRepository.Builder>... integratedRepositories)

      The list of integrated repositories associated with the code review job.

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

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

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

      CodeReviewJob.Builder codeRemediationStrategy(String codeRemediationStrategy)

      The code remediation strategy for the code review job.

      Parameters:
      codeRemediationStrategy - The code remediation strategy for the code review job.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • codeRemediationStrategy

      CodeReviewJob.Builder codeRemediationStrategy(CodeRemediationStrategy codeRemediationStrategy)

      The code remediation strategy for the code review job.

      Parameters:
      codeRemediationStrategy - The code remediation strategy for the code review job.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • maxTaskHours

      CodeReviewJob.Builder maxTaskHours(Double maxTaskHours)

      The maximum number of billable task hours allowed for this code review job. If the cumulative task hours reach this limit, the job is gracefully stopped.

      Parameters:
      maxTaskHours - The maximum number of billable task hours allowed for this code review job. If the cumulative task hours reach this limit, the job is gracefully stopped.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • createdAt

      CodeReviewJob.Builder createdAt(Instant createdAt)

      The date and time the code review job was created, in UTC format.

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

      CodeReviewJob.Builder updatedAt(Instant updatedAt)

      The date and time the code review job was last updated, in UTC format.

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