Interface CodeReviewSummary.Builder

    • Method Detail

      • name

        CodeReviewSummary.Builder name​(String 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

        CodeReviewSummary.Builder owner​(String 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, ProviderType
      • 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:
        ProviderType, ProviderType
      • state

        CodeReviewSummary.Builder state​(String 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:
        JobState, JobState
      • state

        CodeReviewSummary.Builder state​(JobState 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:
        JobState, JobState
      • 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

        CodeReviewSummary.Builder type​(String 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, Type
      • type

        CodeReviewSummary.Builder type​(Type 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, Type
      • 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.
      • 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.