Class PullRequestCreateRequest.AbstractBuilder<T extends PullRequestCreateRequest.AbstractBuilder<T>>

java.lang.Object
com.atlassian.bitbucket.util.BuilderSupport
com.atlassian.bitbucket.pull.PullRequestCreateRequest.AbstractBuilder<T>
Direct Known Subclasses:
PullRequestCreateRequest.Builder
Enclosing class:
PullRequestCreateRequest

public abstract static class PullRequestCreateRequest.AbstractBuilder<T extends PullRequestCreateRequest.AbstractBuilder<T>> extends BuilderSupport
  • Constructor Details

    • AbstractBuilder

      protected AbstractBuilder()
  • Method Details

    • build

      @Nonnull public abstract PullRequestCreateRequest build()
    • description

      @Nonnull public T description(@Nullable String value)
    • draft

      @Nonnull public T draft(boolean value)
      Since:
      8.18
    • fromRefId

      @Nonnull public T fromRefId(@Nonnull String value)
    • fromRepository

      @Nonnull public T fromRepository(@Nonnull Repository value)
    • repository

      @Nonnull public T repository(@Nonnull Repository value)
    • reviewer

      @Nonnull public T reviewer(@Nonnull String value)
    • reviewers

      @Nonnull public T reviewers(@Nonnull Set<String> value)
    • title

      @Nonnull public T title(@Nonnull String value)
    • toBranchId

      @Nonnull public T toBranchId(@Nonnull String value)
    • toRepository

      @Nonnull public T toRepository(@Nonnull Repository value)
    • self

      @Nonnull protected abstract T self()
      Overridden in concrete builder implementations to return this.
      Returns:
      this