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 Details

    • 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

      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 the MergeHunkDetail.Builder avoiding the need to create one manually via MergeHunkDetail.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to source(MergeHunkDetail).

      Parameters:
      source - a consumer that will call methods on MergeHunkDetail.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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 the MergeHunkDetail.Builder avoiding the need to create one manually via MergeHunkDetail.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to destination(MergeHunkDetail).

      Parameters:
      destination - a consumer that will call methods on MergeHunkDetail.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 the MergeHunkDetail.Builder avoiding the need to create one manually via MergeHunkDetail.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to base(MergeHunkDetail).

      Parameters:
      base - a consumer that will call methods on MergeHunkDetail.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: