Class Overview
Represents a request to edit a file, this request can be used to create a new file as well as updating an
existing file.
The following properties are required:
getBranch()
()}: The name of the branch on which the edit should happen
getPath()
()}: The path of the file
getRepository()
: The repository in which the edit operation should be done
getContent()
: A supplier providing access to the file content
If
getSourceCommitId()
is not provided, it's assumed the file doesn't exist on the branch and a
new file will be created.
Summary
Nested Classes |
class |
EditFileRequest.Builder |
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Public Methods
@Nonnull
public
String
getBranch
()
Returns
- the branch on which the edit operation would happen
Returns
- a supplier providing access to the file content
@Nonnull
public
Optional<String>
getMessage
()
@Nonnull
public
String
getPath
()
@Nonnull
public
Repository
getRepository
()
Returns
- the repository in which the edit operation would be executed
@Nonnull
public
String
getSourceBranch
()
Returns
- the name of the branch that should serve as the start point for the edit operation
@Nonnull
public
Optional<String>
getSourceCommitId
()
Returns
- the commit ID of the existing file in the repository, or
Optional#empty
if this is a new file