@Generated(value="OracleSDKGenerator", comments="API Version: 20210630") public final class DiffResponse extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Response object for obtaining list of changed files.
Note: Objects should always be created or deserialized using the DiffResponse.Builder
. This model
distinguishes fields that are null
because they are unset from fields that are explicitly
set to null
. This is done in the setter methods of the DiffResponse.Builder
, which maintain a
set of all explicitly set fields called DiffResponse.Builder.__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take the explicitly set
fields into account. The constructor, on the other hand, does not take the explicitly set fields
into account (since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
DiffResponse.Builder |
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
DiffResponse(Boolean areAllChangesIncluded,
Map<String,Integer> changeTypeCount,
String commonCommit,
Integer commitsAheadCount,
Integer commitsBehindCount,
Integer addedLinesCount,
Integer deletedLinesCount,
List<DiffResponseEntry> changes)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static DiffResponse.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
Integer |
getAddedLinesCount()
The number of lines added in whole difference.
|
Boolean |
getAreAllChangesIncluded()
Boolean value to indicate if all changes are included in the response.
|
List<DiffResponseEntry> |
getChanges()
List of changes in the difference.
|
Map<String,Integer> |
getChangeTypeCount()
Count of each type of change in difference.
|
Integer |
getCommitsAheadCount()
The number of commits source is ahead of target by.
|
Integer |
getCommitsBehindCount()
The number of commits source is behind target by.
|
String |
getCommonCommit()
The ID of the common commit between source and target.
|
Integer |
getDeletedLinesCount()
The number of lines deleted in whole difference.
|
int |
hashCode() |
DiffResponse.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"areAllChangesIncluded","changeTypeCount","commonCommit","commitsAheadCount","commitsBehindCount","addedLinesCount","deletedLinesCount","changes"}) public DiffResponse(Boolean areAllChangesIncluded, Map<String,Integer> changeTypeCount, String commonCommit, Integer commitsAheadCount, Integer commitsBehindCount, Integer addedLinesCount, Integer deletedLinesCount, List<DiffResponseEntry> changes)
public static DiffResponse.Builder builder()
Create a new builder.
public DiffResponse.Builder toBuilder()
public Boolean getAreAllChangesIncluded()
Boolean value to indicate if all changes are included in the response.
public Map<String,Integer> getChangeTypeCount()
Count of each type of change in difference.
public String getCommonCommit()
The ID of the common commit between source and target.
public Integer getCommitsAheadCount()
The number of commits source is ahead of target by.
public Integer getCommitsBehindCount()
The number of commits source is behind target by.
public Integer getAddedLinesCount()
The number of lines added in whole difference.
public Integer getDeletedLinesCount()
The number of lines deleted in whole difference.
public List<DiffResponseEntry> getChanges()
List of changes in the difference.
public String toString()
toString
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2024. All rights reserved.