Package com.oracle.bmc.devops.model
Class DiffResponse.Builder
- java.lang.Object
-
- com.oracle.bmc.devops.model.DiffResponse.Builder
-
- Enclosing class:
- DiffResponse
public static class DiffResponse.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DiffResponse.Builder
addedLinesCount(Integer addedLinesCount)
The number of lines added in whole difference.DiffResponse.Builder
areAllChangesIncluded(Boolean areAllChangesIncluded)
Boolean value to indicate if all changes are included in the response.DiffResponse
build()
DiffResponse.Builder
changes(List<DiffResponseEntry> changes)
List of changes in the difference.DiffResponse.Builder
changeTypeCount(Map<String,Integer> changeTypeCount)
Count of each type of change in difference.DiffResponse.Builder
commitsAheadCount(Integer commitsAheadCount)
The number of commits source is ahead of target by.DiffResponse.Builder
commitsBehindCount(Integer commitsBehindCount)
The number of commits source is behind target by.DiffResponse.Builder
commonCommit(String commonCommit)
The ID of the common commit between source and target.DiffResponse.Builder
copy(DiffResponse model)
DiffResponse.Builder
deletedLinesCount(Integer deletedLinesCount)
The number of lines deleted in whole difference.
-
-
-
Method Detail
-
areAllChangesIncluded
public DiffResponse.Builder areAllChangesIncluded(Boolean areAllChangesIncluded)
Boolean value to indicate if all changes are included in the response.- Parameters:
areAllChangesIncluded
- the value to set- Returns:
- this builder
-
changeTypeCount
public DiffResponse.Builder changeTypeCount(Map<String,Integer> changeTypeCount)
Count of each type of change in difference.- Parameters:
changeTypeCount
- the value to set- Returns:
- this builder
-
commonCommit
public DiffResponse.Builder commonCommit(String commonCommit)
The ID of the common commit between source and target.- Parameters:
commonCommit
- the value to set- Returns:
- this builder
-
commitsAheadCount
public DiffResponse.Builder commitsAheadCount(Integer commitsAheadCount)
The number of commits source is ahead of target by.- Parameters:
commitsAheadCount
- the value to set- Returns:
- this builder
-
commitsBehindCount
public DiffResponse.Builder commitsBehindCount(Integer commitsBehindCount)
The number of commits source is behind target by.- Parameters:
commitsBehindCount
- the value to set- Returns:
- this builder
-
addedLinesCount
public DiffResponse.Builder addedLinesCount(Integer addedLinesCount)
The number of lines added in whole difference.- Parameters:
addedLinesCount
- the value to set- Returns:
- this builder
-
deletedLinesCount
public DiffResponse.Builder deletedLinesCount(Integer deletedLinesCount)
The number of lines deleted in whole difference.- Parameters:
deletedLinesCount
- the value to set- Returns:
- this builder
-
changes
public DiffResponse.Builder changes(List<DiffResponseEntry> changes)
List of changes in the difference.- Parameters:
changes
- the value to set- Returns:
- this builder
-
build
public DiffResponse build()
-
copy
public DiffResponse.Builder copy(DiffResponse model)
-
-