public static class

EditFileRequest.Builder

extends BuilderSupport
java.lang.Object
   ↳ com.atlassian.bitbucket.util.BuilderSupport
     ↳ com.atlassian.bitbucket.content.EditFileRequest.Builder

Summary

[Expand]
Inherited Fields
From class com.atlassian.bitbucket.util.BuilderSupport
Public Constructors
Builder(String branch, String path, Repository repository)
Public Methods
@Nonnull EditFileRequest build()
@Nonnull EditFileRequest.Builder content(InputSupplier<InputStream> value)
@Nonnull EditFileRequest.Builder message(String value)
@Nonnull EditFileRequest.Builder sourceBranch(String value)
@Nonnull EditFileRequest.Builder sourceCommitId(String value)
[Expand]
Inherited Methods
From class com.atlassian.bitbucket.util.BuilderSupport
From class java.lang.Object

Public Constructors

public Builder (String branch, String path, Repository repository)

Public Methods

@Nonnull public EditFileRequest build ()

@Nonnull public EditFileRequest.Builder content (InputSupplier<InputStream> value)

@Nonnull public EditFileRequest.Builder message (String value)

@Nonnull public EditFileRequest.Builder sourceBranch (String value)

Parameters
value the name of the branch that should serve as the starting point for the edit operation. If not set, this defaults to the branch provided in the constructor
Returns
  • the builder

@Nonnull public EditFileRequest.Builder sourceCommitId (String value)

Parameters
value the commit ID that the file was edited on, or null if this is a new file.
Returns
  • the builder