Interface CodeReviewSummary.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<CodeReviewSummary.Builder,
,CodeReviewSummary> SdkBuilder<CodeReviewSummary.Builder,
,CodeReviewSummary> SdkPojo
- Enclosing class:
CodeReviewSummary
-
Method Summary
Modifier and TypeMethodDescriptioncodeReviewArn
(String codeReviewArn) The Amazon Resource Name (ARN) of the CodeReview object.createdTimeStamp
(Instant createdTimeStamp) The time, in milliseconds since the epoch, when the code review was created.lastUpdatedTimeStamp
(Instant lastUpdatedTimeStamp) The time, in milliseconds since the epoch, when the code review was last updated.default CodeReviewSummary.Builder
metricsSummary
(Consumer<MetricsSummary.Builder> metricsSummary) The statistics from the code review.metricsSummary
(MetricsSummary metricsSummary) The statistics from the code review.The name of the code review.The owner of the repository.providerType
(String providerType) The provider type of the repository association.providerType
(ProviderType providerType) The provider type of the repository association.pullRequestId
(String pullRequestId) The pull request ID for the code review.repositoryName
(String repositoryName) The name of the repository.default CodeReviewSummary.Builder
sourceCodeType
(Consumer<SourceCodeType.Builder> sourceCodeType) Sets the value of the SourceCodeType property for this object.sourceCodeType
(SourceCodeType sourceCodeType) Sets the value of the SourceCodeType property for this object.The state of the code review.The state of the code review.The type of the code review.The type of the code review.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
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
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
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
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
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
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
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
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
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
The statistics from the code review.
This is a convenience method that creates an instance of theMetricsSummary.Builder
avoiding the need to create one manually viaMetricsSummary.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tometricsSummary(MetricsSummary)
.- Parameters:
metricsSummary
- a consumer that will call methods onMetricsSummary.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
Sets the value of the SourceCodeType property for this object. This is a convenience method that creates an instance of theSourceCodeType.Builder
avoiding the need to create one manually viaSourceCodeType.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosourceCodeType(SourceCodeType)
.- Parameters:
sourceCodeType
- a consumer that will call methods onSourceCodeType.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-