public static class FileDiffResponse.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
FileDiffResponse.Builder |
areConflictsInFile(Boolean areConflictsInFile)
Indicates whether the changed file contains conflicts.
|
FileDiffResponse |
build() |
FileDiffResponse.Builder |
changes(List<DiffChunk> changes)
List of changed section in the file.
|
FileDiffResponse.Builder |
copy(FileDiffResponse model) |
FileDiffResponse.Builder |
isBinary(Boolean isBinary)
Indicates whether the file is binary.
|
FileDiffResponse.Builder |
isLarge(Boolean isLarge)
Indicates whether the file is large.
|
FileDiffResponse.Builder |
newId(String newId)
The ID of the changed object on the target version.
|
FileDiffResponse.Builder |
newPath(String newPath)
The path on the target version to the changed object.
|
FileDiffResponse.Builder |
oldId(String oldId)
The ID of the changed object on the base version.
|
FileDiffResponse.Builder |
oldPath(String oldPath)
The path on the base version to the changed object.
|
public FileDiffResponse.Builder oldPath(String oldPath)
The path on the base version to the changed object.
oldPath
- the value to setpublic FileDiffResponse.Builder newPath(String newPath)
The path on the target version to the changed object.
newPath
- the value to setpublic FileDiffResponse.Builder oldId(String oldId)
The ID of the changed object on the base version.
oldId
- the value to setpublic FileDiffResponse.Builder newId(String newId)
The ID of the changed object on the target version.
newId
- the value to setpublic FileDiffResponse.Builder areConflictsInFile(Boolean areConflictsInFile)
Indicates whether the changed file contains conflicts.
areConflictsInFile
- the value to setpublic FileDiffResponse.Builder isLarge(Boolean isLarge)
Indicates whether the file is large.
isLarge
- the value to setpublic FileDiffResponse.Builder isBinary(Boolean isBinary)
Indicates whether the file is binary.
isBinary
- the value to setpublic FileDiffResponse.Builder changes(List<DiffChunk> changes)
List of changed section in the file.
changes
- the value to setpublic FileDiffResponse build()
public FileDiffResponse.Builder copy(FileDiffResponse model)
Copyright © 2016–2024. All rights reserved.