Interface MergeHunk.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<MergeHunk.Builder,,MergeHunk> SdkBuilder<MergeHunk.Builder,,MergeHunk> SdkPojo
- Enclosing class:
MergeHunk
-
Method Summary
Modifier and TypeMethodDescriptiondefault MergeHunk.Builderbase(Consumer<MergeHunkDetail.Builder> base) Information about the merge hunk in the base of a merge or pull request.base(MergeHunkDetail base) Information about the merge hunk in the base of a merge or pull request.default MergeHunk.Builderdestination(Consumer<MergeHunkDetail.Builder> destination) Information about the merge hunk in the destination of a merge or pull request.destination(MergeHunkDetail destination) Information about the merge hunk in the destination of a merge or pull request.isConflict(Boolean isConflict) A Boolean value indicating whether a combination of hunks contains a conflict.default MergeHunk.Buildersource(Consumer<MergeHunkDetail.Builder> source) Information about the merge hunk in the source of a merge or pull request.source(MergeHunkDetail source) Information about the merge hunk in the source of a merge or pull request.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
isConflict
A Boolean value indicating whether a combination of hunks contains a conflict. Conflicts occur when the same file or the same lines in a file were modified in both the source and destination of a merge or pull request. Valid values include true, false, and null. True when the hunk represents a conflict and one or more files contains a line conflict. File mode conflicts in a merge do not set this to true.
- Parameters:
isConflict- A Boolean value indicating whether a combination of hunks contains a conflict. Conflicts occur when the same file or the same lines in a file were modified in both the source and destination of a merge or pull request. Valid values include true, false, and null. True when the hunk represents a conflict and one or more files contains a line conflict. File mode conflicts in a merge do not set this to true.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
source
Information about the merge hunk in the source of a merge or pull request.
- Parameters:
source- Information about the merge hunk in the source of a merge or pull request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
source
Information about the merge hunk in the source of a merge or pull request.
This is a convenience method that creates an instance of theMergeHunkDetail.Builderavoiding the need to create one manually viaMergeHunkDetail.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosource(MergeHunkDetail).- Parameters:
source- a consumer that will call methods onMergeHunkDetail.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
destination
Information about the merge hunk in the destination of a merge or pull request.
- Parameters:
destination- Information about the merge hunk in the destination of a merge or pull request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
destination
Information about the merge hunk in the destination of a merge or pull request.
This is a convenience method that creates an instance of theMergeHunkDetail.Builderavoiding the need to create one manually viaMergeHunkDetail.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todestination(MergeHunkDetail).- Parameters:
destination- a consumer that will call methods onMergeHunkDetail.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
base
Information about the merge hunk in the base of a merge or pull request.
- Parameters:
base- Information about the merge hunk in the base of a merge or pull request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
base
Information about the merge hunk in the base of a merge or pull request.
This is a convenience method that creates an instance of theMergeHunkDetail.Builderavoiding the need to create one manually viaMergeHunkDetail.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tobase(MergeHunkDetail).- Parameters:
base- a consumer that will call methods onMergeHunkDetail.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-