public static class EditFileRequest.Builder extends BuilderSupport
NOT_BLANK
Constructor and Description |
---|
Builder(String branch,
String path,
Repository repository) |
Modifier and Type | Method and Description |
---|---|
EditFileRequest |
build() |
EditFileRequest.Builder |
content(InputSupplier<InputStream> value) |
EditFileRequest.Builder |
message(String value) |
EditFileRequest.Builder |
sourceBranch(String value) |
EditFileRequest.Builder |
sourceCommitId(String value) |
addIf, addIf, addIf, addIf, addIf, addIf, checkNotBlank, requireNonBlank
@Nonnull public EditFileRequest build()
@Nonnull public EditFileRequest.Builder content(@Nonnull InputSupplier<InputStream> value)
@Nonnull public EditFileRequest.Builder message(@Nullable String value)
@Nonnull public EditFileRequest.Builder sourceBranch(@Nullable String value)
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 constructorthis
@Nonnull public EditFileRequest.Builder sourceCommitId(@Nullable String value)
value
- the commit ID that the file was edited on, or null
if this is a new file.this
Copyright © 2020 Atlassian. All rights reserved.