Class DiffStatsSummaryRequest.Builder

java.lang.Object
com.atlassian.bitbucket.util.BuilderSupport
com.atlassian.bitbucket.content.DiffStatsSummaryRequest.Builder
Enclosing class:
DiffStatsSummaryRequest

public static class DiffStatsSummaryRequest.Builder extends BuilderSupport
  • Constructor Details

    • Builder

      public Builder(@Nonnull Repository repository, @Nonnull String untilId)
  • Method Details

    • autoSrcPath

      @Nonnull public DiffStatsSummaryRequest.Builder autoSrcPath(boolean value)
      Parameters:
      value - true if attempting to resolve the source path in case of a rename, false otherwise
      Returns:
      this
    • build

      @Nonnull public DiffStatsSummaryRequest build()
    • path

      @Nonnull public DiffStatsSummaryRequest.Builder path(@Nullable String value)
      Parameters:
      value - limits diff to include only the specific path
      Returns:
      this
    • secondaryRepository

      @Nonnull public DiffStatsSummaryRequest.Builder secondaryRepository(@Nullable Repository value)
      Parameters:
      value - the secondary repository from which to generate the diff
      Returns:
      this
    • sinceId

      @Nonnull public DiffStatsSummaryRequest.Builder sinceId(@Nullable String value)
      Specifies the "since" commit for the diff. Generally this is an ancestor of the "until" commit, but it is not required to be.

      If the "since" and "until" commit are not directly related, the returned diff may not make sense. For example, it may show files as added, removed or modified that have not actually been changed. When an explicit "since" commit is provided, it is recommended to always use an ancestor of the "until" commit.

      Parameters:
      value - the "since" commit's ID, which will be trimmed to null if blank
      Returns:
      this
    • whitespace

      @Nonnull public DiffStatsSummaryRequest.Builder whitespace(@Nonnull DiffWhitespace value)
      Parameters:
      value - the whitespace mode for showing diff
      Returns:
      this