public static interface CodeReview.Builder extends SdkPojo, CopyableBuilder<CodeReview.Builder,CodeReview>
| Modifier and Type | Method and Description |
|---|---|
CodeReview.Builder |
associationArn(String associationArn)
The Amazon Resource Name (ARN) of the
RepositoryAssociation that contains the reviewed source code. |
CodeReview.Builder |
codeReviewArn(String codeReviewArn)
The Amazon Resource Name (ARN) of the
CodeReview
object. |
CodeReview.Builder |
createdTimeStamp(Instant createdTimeStamp)
The time, in milliseconds since the epoch, when the code review was created.
|
CodeReview.Builder |
lastUpdatedTimeStamp(Instant lastUpdatedTimeStamp)
The time, in milliseconds since the epoch, when the code review was last updated.
|
default CodeReview.Builder |
metrics(Consumer<Metrics.Builder> metrics)
The statistics from the code review.
|
CodeReview.Builder |
metrics(Metrics metrics)
The statistics from the code review.
|
CodeReview.Builder |
name(String name)
The name of the code review.
|
CodeReview.Builder |
owner(String owner)
The owner of the repository.
|
CodeReview.Builder |
providerType(ProviderType providerType)
The type of repository that contains the reviewed code (for example, GitHub or Bitbucket).
|
CodeReview.Builder |
providerType(String providerType)
The type of repository that contains the reviewed code (for example, GitHub or Bitbucket).
|
CodeReview.Builder |
pullRequestId(String pullRequestId)
The pull request ID for the code review.
|
CodeReview.Builder |
repositoryName(String repositoryName)
The name of the repository.
|
default CodeReview.Builder |
sourceCodeType(Consumer<SourceCodeType.Builder> sourceCodeType)
The type of the source code for the code review.
|
CodeReview.Builder |
sourceCodeType(SourceCodeType sourceCodeType)
The type of the source code for the code review.
|
CodeReview.Builder |
state(JobState state)
The valid code review states are:
|
CodeReview.Builder |
state(String state)
The valid code review states are:
|
CodeReview.Builder |
stateReason(String stateReason)
The reason for the state of the code review.
|
CodeReview.Builder |
type(String type)
The type of code review.
|
CodeReview.Builder |
type(Type type)
The type of code review.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildCodeReview.Builder name(String name)
The name of the code review.
name - The name of the code review.CodeReview.Builder codeReviewArn(String codeReviewArn)
The Amazon Resource Name (ARN) of the CodeReview
object.
codeReviewArn - The Amazon Resource Name (ARN) of the
CodeReview object.CodeReview.Builder repositoryName(String repositoryName)
The name of the repository.
repositoryName - The name of the repository.CodeReview.Builder owner(String owner)
The owner of the repository. For an AWS CodeCommit repository, this is the AWS 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.
owner - The owner of the repository. For an AWS CodeCommit repository, this is the AWS 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.CodeReview.Builder providerType(String providerType)
The type of repository that contains the reviewed code (for example, GitHub or Bitbucket).
providerType - The type of repository that contains the reviewed code (for example, GitHub or Bitbucket).ProviderType,
ProviderTypeCodeReview.Builder providerType(ProviderType providerType)
The type of repository that contains the reviewed code (for example, GitHub or Bitbucket).
providerType - The type of repository that contains the reviewed code (for example, GitHub or Bitbucket).ProviderType,
ProviderTypeCodeReview.Builder state(String state)
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.
state - 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.
JobState,
JobStateCodeReview.Builder state(JobState state)
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.
state - 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.
JobState,
JobStateCodeReview.Builder stateReason(String stateReason)
The reason for the state of the code review.
stateReason - The reason for the state of the code review.CodeReview.Builder createdTimeStamp(Instant createdTimeStamp)
The time, in milliseconds since the epoch, when the code review was created.
createdTimeStamp - The time, in milliseconds since the epoch, when the code review was created.CodeReview.Builder lastUpdatedTimeStamp(Instant lastUpdatedTimeStamp)
The time, in milliseconds since the epoch, when the code review was last updated.
lastUpdatedTimeStamp - The time, in milliseconds since the epoch, when the code review was last updated.CodeReview.Builder type(String type)
The type of code review.
CodeReview.Builder type(Type type)
The type of code review.
CodeReview.Builder pullRequestId(String pullRequestId)
The pull request ID for the code review.
pullRequestId - The pull request ID for the code review.CodeReview.Builder sourceCodeType(SourceCodeType sourceCodeType)
The type of the source code for the code review.
sourceCodeType - The type of the source code for the code review.default CodeReview.Builder sourceCodeType(Consumer<SourceCodeType.Builder> sourceCodeType)
The type of the source code for the code review.
This is a convenience that creates an instance of theSourceCodeType.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).sourceCodeType - a consumer that will call methods on SourceCodeType.BuildersourceCodeType(SourceCodeType)CodeReview.Builder associationArn(String associationArn)
The Amazon Resource Name (ARN) of the
RepositoryAssociation that contains the reviewed source code. You can retrieve associated
repository ARNs by calling
ListRepositoryAssociations .
associationArn - The Amazon Resource Name (ARN) of the
RepositoryAssociation that contains the reviewed source code. You can retrieve
associated repository ARNs by calling
ListRepositoryAssociations .CodeReview.Builder metrics(Metrics metrics)
The statistics from the code review.
metrics - The statistics from the code review.default CodeReview.Builder metrics(Consumer<Metrics.Builder> metrics)
The statistics from the code review.
This is a convenience that creates an instance of theMetrics.Builder avoiding the need to create one
manually via Metrics.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its result is
passed to metrics(Metrics).metrics - a consumer that will call methods on Metrics.Buildermetrics(Metrics)Copyright © 2020. All rights reserved.