Interface SourceCodeType.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<SourceCodeType.Builder,SourceCodeType>,SdkBuilder<SourceCodeType.Builder,SourceCodeType>,SdkPojo
- Enclosing class:
- SourceCodeType
public static interface SourceCodeType.Builder extends SdkPojo, CopyableBuilder<SourceCodeType.Builder,SourceCodeType>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default SourceCodeType.BuilderbranchDiff(Consumer<BranchDiffSourceCodeType.Builder> branchDiff)A type of SourceCodeType that specifies a source branch name and a destination branch name in an associated repository.SourceCodeType.BuilderbranchDiff(BranchDiffSourceCodeType branchDiff)A type of SourceCodeType that specifies a source branch name and a destination branch name in an associated repository.default SourceCodeType.BuildercommitDiff(Consumer<CommitDiffSourceCodeType.Builder> commitDiff)A SourceCodeType that specifies a commit diff created by a pull request on an associated repository.SourceCodeType.BuildercommitDiff(CommitDiffSourceCodeType commitDiff)A SourceCodeType that specifies a commit diff created by a pull request on an associated repository.default SourceCodeType.BuilderrepositoryHead(Consumer<RepositoryHeadSourceCodeType.Builder> repositoryHead)Sets the value of the RepositoryHead property for this object.SourceCodeType.BuilderrepositoryHead(RepositoryHeadSourceCodeType repositoryHead)Sets the value of the RepositoryHead property for this object.default SourceCodeType.BuilderrequestMetadata(Consumer<RequestMetadata.Builder> requestMetadata)Metadata that is associated with a code review.SourceCodeType.BuilderrequestMetadata(RequestMetadata requestMetadata)Metadata that is associated with a code review.default SourceCodeType.Builders3BucketRepository(Consumer<S3BucketRepository.Builder> s3BucketRepository)Information about an associated repository in an S3 bucket that includes its name and anS3RepositoryDetailsobject.SourceCodeType.Builders3BucketRepository(S3BucketRepository s3BucketRepository)Information about an associated repository in an S3 bucket that includes its name and anS3RepositoryDetailsobject.-
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 Detail
-
commitDiff
SourceCodeType.Builder commitDiff(CommitDiffSourceCodeType 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
default SourceCodeType.Builder commitDiff(Consumer<CommitDiffSourceCodeType.Builder> 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.Builderavoiding the need to create one manually viaCommitDiffSourceCodeType.builder().When the
Consumercompletes,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:
commitDiff(CommitDiffSourceCodeType)
-
repositoryHead
SourceCodeType.Builder repositoryHead(RepositoryHeadSourceCodeType 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.Builderavoiding the need to create one manually viaRepositoryHeadSourceCodeType.builder().When the
Consumercompletes,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:
repositoryHead(RepositoryHeadSourceCodeType)
-
branchDiff
SourceCodeType.Builder branchDiff(BranchDiffSourceCodeType 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
default 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.
This is a convenience method that creates an instance of theBranchDiffSourceCodeType.Builderavoiding the need to create one manually viaBranchDiffSourceCodeType.builder().When the
Consumercompletes,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:
branchDiff(BranchDiffSourceCodeType)
-
s3BucketRepository
SourceCodeType.Builder s3BucketRepository(S3BucketRepository s3BucketRepository)
Information about an associated repository in an S3 bucket that includes its name and an
S3RepositoryDetailsobject. TheS3RepositoryDetailsobject 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.S3BucketRepositoryis required in SourceCodeType forS3BucketRepositorybased code reviews.- Parameters:
s3BucketRepository- Information about an associated repository in an S3 bucket that includes its name and anS3RepositoryDetailsobject. TheS3RepositoryDetailsobject 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.S3BucketRepositoryis required in SourceCodeType forS3BucketRepositorybased 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 theS3RepositoryDetailsobject. TheS3RepositoryDetailsobject 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.S3BucketRepositoryis required in SourceCodeType forS3BucketRepositorybased code reviews.S3BucketRepository.Builderavoiding the need to create one manually viaS3BucketRepository.builder().When the
Consumercompletes,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:
s3BucketRepository(S3BucketRepository)
-
requestMetadata
SourceCodeType.Builder requestMetadata(RequestMetadata requestMetadata)
Metadata that is associated with a code review. This applies to any type of code review supported by CodeGuru Reviewer. The
RequestMetadaafield 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. TheRequestMetadaafield 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
default SourceCodeType.Builder requestMetadata(Consumer<RequestMetadata.Builder> 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 theRequestMetadaafield captures any event metadata. For example, it might capture metadata associated with an event trigger, such as a push or a pull request.RequestMetadata.Builderavoiding the need to create one manually viaRequestMetadata.builder().When the
Consumercompletes,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:
requestMetadata(RequestMetadata)
-
-