Interface CodeReviewSummary.Builder

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

public static interface CodeReviewSummary.Builder extends SdkPojo, CopyableBuilder<CodeReviewSummary.Builder,CodeReviewSummary>
  • Method Details

    • name

      The name of the code review.

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

      CodeReviewSummary.Builder codeReviewArn(String codeReviewArn)

      The Amazon Resource Name (ARN) of the CodeReview object.

      Parameters:
      codeReviewArn - The Amazon Resource Name (ARN) of the CodeReview object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • repositoryName

      CodeReviewSummary.Builder repositoryName(String repositoryName)

      The name of the repository.

      Parameters:
      repositoryName - The name of the repository.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • owner

      The owner of the repository. For an Amazon Web Services CodeCommit repository, this is the Amazon Web Services account ID of the account that owns the repository. For a GitHub, GitHub Enterprise Server, or Bitbucket repository, this is the username for the account that owns the repository. For an S3 repository, it can be the username or Amazon Web Services account ID.

      Parameters:
      owner - The owner of the repository. For an Amazon Web Services CodeCommit repository, this is the Amazon Web Services account ID of the account that owns the repository. For a GitHub, GitHub Enterprise Server, or Bitbucket repository, this is the username for the account that owns the repository. For an S3 repository, it can be the username or Amazon Web Services account ID.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • providerType

      CodeReviewSummary.Builder providerType(String providerType)

      The provider type of the repository association.

      Parameters:
      providerType - The provider type of the repository association.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • providerType

      CodeReviewSummary.Builder providerType(ProviderType providerType)

      The provider type of the repository association.

      Parameters:
      providerType - The provider type of the repository association.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • state

      The state of the code review.

      The valid code review states are:

      • Completed: The code review is complete.

      • Pending: The code review started and has not completed or failed.

      • Failed: The code review failed.

      • Deleting: The code review is being deleted.

      Parameters:
      state - The state of the code review.

      The valid code review states are:

      • Completed: The code review is complete.

      • Pending: The code review started and has not completed or failed.

      • Failed: The code review failed.

      • Deleting: The code review is being deleted.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • state

      The state of the code review.

      The valid code review states are:

      • Completed: The code review is complete.

      • Pending: The code review started and has not completed or failed.

      • Failed: The code review failed.

      • Deleting: The code review is being deleted.

      Parameters:
      state - The state of the code review.

      The valid code review states are:

      • Completed: The code review is complete.

      • Pending: The code review started and has not completed or failed.

      • Failed: The code review failed.

      • Deleting: The code review is being deleted.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • createdTimeStamp

      CodeReviewSummary.Builder createdTimeStamp(Instant createdTimeStamp)

      The time, in milliseconds since the epoch, when the code review was created.

      Parameters:
      createdTimeStamp - The time, in milliseconds since the epoch, when the code review was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lastUpdatedTimeStamp

      CodeReviewSummary.Builder lastUpdatedTimeStamp(Instant lastUpdatedTimeStamp)

      The time, in milliseconds since the epoch, when the code review was last updated.

      Parameters:
      lastUpdatedTimeStamp - The time, in milliseconds since the epoch, when the code review was last updated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • type

      The type of the code review.

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

      The type of the code review.

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

      CodeReviewSummary.Builder pullRequestId(String pullRequestId)

      The pull request ID for the code review.

      Parameters:
      pullRequestId - The pull request ID for the code review.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metricsSummary

      CodeReviewSummary.Builder metricsSummary(MetricsSummary metricsSummary)

      The statistics from the code review.

      Parameters:
      metricsSummary - The statistics from the code review.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metricsSummary

      default CodeReviewSummary.Builder metricsSummary(Consumer<MetricsSummary.Builder> metricsSummary)

      The statistics from the code review.

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

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

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

      CodeReviewSummary.Builder sourceCodeType(SourceCodeType sourceCodeType)
      Sets the value of the SourceCodeType property for this object.
      Parameters:
      sourceCodeType - The new value for the SourceCodeType property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sourceCodeType

      default CodeReviewSummary.Builder sourceCodeType(Consumer<SourceCodeType.Builder> sourceCodeType)
      Sets the value of the SourceCodeType property for this object. This is a convenience method that creates an instance of the SourceCodeType.Builder avoiding the need to create one manually via SourceCodeType.builder().

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

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