@Generated(value="OracleSDKGenerator", comments="API Version: 20210630") public final class RepositoryCommit extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Commit object with commit information.
Note: Objects should always be created or deserialized using the RepositoryCommit.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 RepositoryCommit.Builder
, which maintain a
set of all explicitly set fields called RepositoryCommit.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 |
RepositoryCommit.Builder |
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
RepositoryCommit(String commitId,
String commitMessage,
String authorName,
String authorEmail,
String committerName,
String committerEmail,
List<String> parentCommitIds,
Date timeCreated,
String treeId)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static RepositoryCommit.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
String |
getAuthorEmail()
Email of the author of the repository.
|
String |
getAuthorName()
Name of the author of the repository.
|
String |
getCommitId()
Commit hash pointed to by reference name.
|
String |
getCommitMessage()
The commit message.
|
String |
getCommitterEmail()
Email of who creates the commit.
|
String |
getCommitterName()
Name of who creates the commit.
|
List<String> |
getParentCommitIds()
An array of parent commit IDs of created commit.
|
Date |
getTimeCreated()
The time at which commit was created.
|
String |
getTreeId()
Tree information for the specified commit.
|
int |
hashCode() |
RepositoryCommit.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"commitId","commitMessage","authorName","authorEmail","committerName","committerEmail","parentCommitIds","timeCreated","treeId"}) public RepositoryCommit(String commitId, String commitMessage, String authorName, String authorEmail, String committerName, String committerEmail, List<String> parentCommitIds, Date timeCreated, String treeId)
public static RepositoryCommit.Builder builder()
Create a new builder.
public RepositoryCommit.Builder toBuilder()
public String getCommitId()
Commit hash pointed to by reference name.
public String getCommitMessage()
The commit message.
public String getAuthorName()
Name of the author of the repository.
public String getAuthorEmail()
Email of the author of the repository.
public String getCommitterName()
Name of who creates the commit.
public String getCommitterEmail()
Email of who creates the commit.
public List<String> getParentCommitIds()
An array of parent commit IDs of created commit.
public Date getTimeCreated()
The time at which commit was created.
public String getTreeId()
Tree information for the specified commit.
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.