Interface CodeReview.Builder

  • Method Details

    • codeReviewId

      CodeReview.Builder codeReviewId(String codeReviewId)

      The unique identifier of the code review.

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

      CodeReview.Builder agentSpaceId(String agentSpaceId)

      The unique identifier of the agent space that contains the code review.

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

      CodeReview.Builder title(String title)

      The title of the code review.

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

      CodeReview.Builder assets(Assets assets)

      The assets included in the code review.

      Parameters:
      assets - The assets included in the code review.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • assets

      default CodeReview.Builder assets(Consumer<Assets.Builder> assets)

      The assets included in the code review.

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

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

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

      CodeReview.Builder serviceRole(String serviceRole)

      The IAM service role used for the code review.

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

      CodeReview.Builder logConfig(CloudWatchLog logConfig)

      The CloudWatch Logs configuration for the code review.

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

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

      The CloudWatch Logs configuration for the code review.

      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:
    • codeRemediationStrategy

      CodeReview.Builder codeRemediationStrategy(String codeRemediationStrategy)

      The code remediation strategy for the code review.

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

      CodeReview.Builder codeRemediationStrategy(CodeRemediationStrategy codeRemediationStrategy)

      The code remediation strategy for the code review.

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

      CodeReview.Builder createdAt(Instant createdAt)

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

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

      CodeReview.Builder updatedAt(Instant updatedAt)

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

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