Interface SourceCodeType.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<SourceCodeType.Builder,
,SourceCodeType> SdkBuilder<SourceCodeType.Builder,
,SourceCodeType> SdkPojo
- Enclosing class:
SourceCodeType
-
Method Summary
Modifier and TypeMethodDescriptiondefault SourceCodeType.Builder
branchDiff
(Consumer<BranchDiffSourceCodeType.Builder> branchDiff) A type of SourceCodeType that specifies a source branch name and a destination branch name in an associated repository.branchDiff
(BranchDiffSourceCodeType branchDiff) A type of SourceCodeType that specifies a source branch name and a destination branch name in an associated repository.default SourceCodeType.Builder
commitDiff
(Consumer<CommitDiffSourceCodeType.Builder> commitDiff) A SourceCodeType that specifies a commit diff created by a pull request on an associated repository.commitDiff
(CommitDiffSourceCodeType commitDiff) A SourceCodeType that specifies a commit diff created by a pull request on an associated repository.default SourceCodeType.Builder
repositoryHead
(Consumer<RepositoryHeadSourceCodeType.Builder> repositoryHead) Sets the value of the RepositoryHead property for this object.repositoryHead
(RepositoryHeadSourceCodeType repositoryHead) Sets the value of the RepositoryHead property for this object.default SourceCodeType.Builder
requestMetadata
(Consumer<RequestMetadata.Builder> requestMetadata) Metadata that is associated with a code review.requestMetadata
(RequestMetadata requestMetadata) Metadata that is associated with a code review.default SourceCodeType.Builder
s3BucketRepository
(Consumer<S3BucketRepository.Builder> s3BucketRepository) Information about an associated repository in an S3 bucket that includes its name and anS3RepositoryDetails
object.s3BucketRepository
(S3BucketRepository s3BucketRepository) Information about an associated repository in an S3 bucket that includes its name and anS3RepositoryDetails
object.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
-
commitDiff
A SourceCodeType that specifies a commit diff created by a pull request on an associated repository.
- Parameters:
commitDiff
- A SourceCodeType that specifies a commit diff created by a pull request on an associated repository.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
commitDiff
A SourceCodeType that specifies a commit diff created by a pull request on an associated repository.
This is a convenience method that creates an instance of theCommitDiffSourceCodeType.Builder
avoiding the need to create one manually viaCommitDiffSourceCodeType.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocommitDiff(CommitDiffSourceCodeType)
.- Parameters:
commitDiff
- a consumer that will call methods onCommitDiffSourceCodeType.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
repositoryHead
Sets the value of the RepositoryHead property for this object.- Parameters:
repositoryHead
- The new value for the RepositoryHead property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
repositoryHead
default SourceCodeType.Builder repositoryHead(Consumer<RepositoryHeadSourceCodeType.Builder> repositoryHead) Sets the value of the RepositoryHead property for this object. This is a convenience method that creates an instance of theRepositoryHeadSourceCodeType.Builder
avoiding the need to create one manually viaRepositoryHeadSourceCodeType.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torepositoryHead(RepositoryHeadSourceCodeType)
.- Parameters:
repositoryHead
- a consumer that will call methods onRepositoryHeadSourceCodeType.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
branchDiff
A type of SourceCodeType that specifies a source branch name and a destination branch name in an associated repository.
- Parameters:
branchDiff
- A type of SourceCodeType that specifies a source branch name and a destination branch name in an associated repository.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
branchDiff
A type of SourceCodeType that specifies a source branch name and a destination branch name in an associated repository.
This is a convenience method that creates an instance of theBranchDiffSourceCodeType.Builder
avoiding the need to create one manually viaBranchDiffSourceCodeType.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tobranchDiff(BranchDiffSourceCodeType)
.- Parameters:
branchDiff
- a consumer that will call methods onBranchDiffSourceCodeType.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
s3BucketRepository
Information about an associated repository in an S3 bucket that includes its name and an
S3RepositoryDetails
object. TheS3RepositoryDetails
object includes the name of an S3 bucket, an S3 key for a source code .zip file, and an S3 key for a build artifacts .zip file.S3BucketRepository
is required in SourceCodeType forS3BucketRepository
based code reviews.- Parameters:
s3BucketRepository
- Information about an associated repository in an S3 bucket that includes its name and anS3RepositoryDetails
object. TheS3RepositoryDetails
object includes the name of an S3 bucket, an S3 key for a source code .zip file, and an S3 key for a build artifacts .zip file.S3BucketRepository
is required in SourceCodeType forS3BucketRepository
based code reviews.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
s3BucketRepository
default SourceCodeType.Builder s3BucketRepository(Consumer<S3BucketRepository.Builder> s3BucketRepository) Information about an associated repository in an S3 bucket that includes its name and an
This is a convenience method that creates an instance of theS3RepositoryDetails
object. TheS3RepositoryDetails
object includes the name of an S3 bucket, an S3 key for a source code .zip file, and an S3 key for a build artifacts .zip file.S3BucketRepository
is required in SourceCodeType forS3BucketRepository
based code reviews.S3BucketRepository.Builder
avoiding the need to create one manually viaS3BucketRepository.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tos3BucketRepository(S3BucketRepository)
.- Parameters:
s3BucketRepository
- a consumer that will call methods onS3BucketRepository.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
requestMetadata
Metadata that is associated with a code review. This applies to any type of code review supported by CodeGuru Reviewer. The
RequestMetadaa
field captures any event metadata. For example, it might capture metadata associated with an event trigger, such as a push or a pull request.- Parameters:
requestMetadata
- Metadata that is associated with a code review. This applies to any type of code review supported by CodeGuru Reviewer. TheRequestMetadaa
field captures any event metadata. For example, it might capture metadata associated with an event trigger, such as a push or a pull request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
requestMetadata
Metadata that is associated with a code review. This applies to any type of code review supported by CodeGuru Reviewer. The
This is a convenience method that creates an instance of theRequestMetadaa
field captures any event metadata. For example, it might capture metadata associated with an event trigger, such as a push or a pull request.RequestMetadata.Builder
avoiding the need to create one manually viaRequestMetadata.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torequestMetadata(RequestMetadata)
.- Parameters:
requestMetadata
- a consumer that will call methods onRequestMetadata.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-