Interface MergeHunk.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<MergeHunk.Builder,MergeHunk>,SdkBuilder<MergeHunk.Builder,MergeHunk>,SdkPojo
- Enclosing class:
- MergeHunk
public static interface MergeHunk.Builder extends SdkPojo, CopyableBuilder<MergeHunk.Builder,MergeHunk>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default MergeHunk.Builderbase(Consumer<MergeHunkDetail.Builder> base)Information about the merge hunk in the base of a merge or pull request.MergeHunk.Builderbase(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.MergeHunk.Builderdestination(MergeHunkDetail destination)Information about the merge hunk in the destination of a merge or pull request.MergeHunk.BuilderisConflict(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.MergeHunk.Buildersource(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
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
-
isConflict
MergeHunk.Builder isConflict(Boolean 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
MergeHunk.Builder source(MergeHunkDetail 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
default MergeHunk.Builder source(Consumer<MergeHunkDetail.Builder> 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:
source(MergeHunkDetail)
-
destination
MergeHunk.Builder destination(MergeHunkDetail 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
default MergeHunk.Builder destination(Consumer<MergeHunkDetail.Builder> 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:
destination(MergeHunkDetail)
-
base
MergeHunk.Builder base(MergeHunkDetail 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
default MergeHunk.Builder base(Consumer<MergeHunkDetail.Builder> 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:
base(MergeHunkDetail)
-
-