@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Commit extends Object implements Serializable, Cloneable, StructuredPojo
Returns information about a specific commit.
Constructor and Description |
---|
Commit() |
Modifier and Type | Method and Description |
---|---|
Commit |
clone() |
boolean |
equals(Object obj) |
String |
getAdditionalData()
Any additional data associated with the specified commit.
|
UserInfo |
getAuthor()
Information about the author of the specified commit.
|
String |
getCommitId()
The full SHA of the specified commit.
|
UserInfo |
getCommitter()
Information about the person who committed the specified commit, also known as the committer.
|
String |
getMessage()
The commit message associated with the specified commit.
|
List<String> |
getParents()
The parent list for the specified commit.
|
String |
getTreeId()
Tree information for the specified commit.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAdditionalData(String additionalData)
Any additional data associated with the specified commit.
|
void |
setAuthor(UserInfo author)
Information about the author of the specified commit.
|
void |
setCommitId(String commitId)
The full SHA of the specified commit.
|
void |
setCommitter(UserInfo committer)
Information about the person who committed the specified commit, also known as the committer.
|
void |
setMessage(String message)
The commit message associated with the specified commit.
|
void |
setParents(Collection<String> parents)
The parent list for the specified commit.
|
void |
setTreeId(String treeId)
Tree information for the specified commit.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
Commit |
withAdditionalData(String additionalData)
Any additional data associated with the specified commit.
|
Commit |
withAuthor(UserInfo author)
Information about the author of the specified commit.
|
Commit |
withCommitId(String commitId)
The full SHA of the specified commit.
|
Commit |
withCommitter(UserInfo committer)
Information about the person who committed the specified commit, also known as the committer.
|
Commit |
withMessage(String message)
The commit message associated with the specified commit.
|
Commit |
withParents(Collection<String> parents)
The parent list for the specified commit.
|
Commit |
withParents(String... parents)
The parent list for the specified commit.
|
Commit |
withTreeId(String treeId)
Tree information for the specified commit.
|
public void setCommitId(String commitId)
The full SHA of the specified commit.
commitId
- The full SHA of the specified commit.public String getCommitId()
The full SHA of the specified commit.
public Commit withCommitId(String commitId)
The full SHA of the specified commit.
commitId
- The full SHA of the specified commit.public void setTreeId(String treeId)
Tree information for the specified commit.
treeId
- Tree information for the specified commit.public String getTreeId()
Tree information for the specified commit.
public Commit withTreeId(String treeId)
Tree information for the specified commit.
treeId
- Tree information for the specified commit.public List<String> getParents()
The parent list for the specified commit.
public void setParents(Collection<String> parents)
The parent list for the specified commit.
parents
- The parent list for the specified commit.public Commit withParents(String... parents)
The parent list for the specified commit.
NOTE: This method appends the values to the existing list (if any). Use
setParents(java.util.Collection)
or withParents(java.util.Collection)
if you want to override
the existing values.
parents
- The parent list for the specified commit.public Commit withParents(Collection<String> parents)
The parent list for the specified commit.
parents
- The parent list for the specified commit.public void setMessage(String message)
The commit message associated with the specified commit.
message
- The commit message associated with the specified commit.public String getMessage()
The commit message associated with the specified commit.
public Commit withMessage(String message)
The commit message associated with the specified commit.
message
- The commit message associated with the specified commit.public void setAuthor(UserInfo author)
Information about the author of the specified commit. Information includes the date in timestamp format with GMT offset, the name of the author, and the email address for the author, as configured in Git.
author
- Information about the author of the specified commit. Information includes the date in timestamp format
with GMT offset, the name of the author, and the email address for the author, as configured in Git.public UserInfo getAuthor()
Information about the author of the specified commit. Information includes the date in timestamp format with GMT offset, the name of the author, and the email address for the author, as configured in Git.
public Commit withAuthor(UserInfo author)
Information about the author of the specified commit. Information includes the date in timestamp format with GMT offset, the name of the author, and the email address for the author, as configured in Git.
author
- Information about the author of the specified commit. Information includes the date in timestamp format
with GMT offset, the name of the author, and the email address for the author, as configured in Git.public void setCommitter(UserInfo committer)
Information about the person who committed the specified commit, also known as the committer. Information includes the date in timestamp format with GMT offset, the name of the committer, and the email address for the committer, as configured in Git.
For more information about the difference between an author and a committer in Git, see Viewing the Commit History in Pro Git by Scott Chacon and Ben Straub.
committer
- Information about the person who committed the specified commit, also known as the committer. Information
includes the date in timestamp format with GMT offset, the name of the committer, and the email address
for the committer, as configured in Git.
For more information about the difference between an author and a committer in Git, see Viewing the Commit History in Pro Git by Scott Chacon and Ben Straub.
public UserInfo getCommitter()
Information about the person who committed the specified commit, also known as the committer. Information includes the date in timestamp format with GMT offset, the name of the committer, and the email address for the committer, as configured in Git.
For more information about the difference between an author and a committer in Git, see Viewing the Commit History in Pro Git by Scott Chacon and Ben Straub.
For more information about the difference between an author and a committer in Git, see Viewing the Commit History in Pro Git by Scott Chacon and Ben Straub.
public Commit withCommitter(UserInfo committer)
Information about the person who committed the specified commit, also known as the committer. Information includes the date in timestamp format with GMT offset, the name of the committer, and the email address for the committer, as configured in Git.
For more information about the difference between an author and a committer in Git, see Viewing the Commit History in Pro Git by Scott Chacon and Ben Straub.
committer
- Information about the person who committed the specified commit, also known as the committer. Information
includes the date in timestamp format with GMT offset, the name of the committer, and the email address
for the committer, as configured in Git.
For more information about the difference between an author and a committer in Git, see Viewing the Commit History in Pro Git by Scott Chacon and Ben Straub.
public void setAdditionalData(String additionalData)
Any additional data associated with the specified commit.
additionalData
- Any additional data associated with the specified commit.public String getAdditionalData()
Any additional data associated with the specified commit.
public Commit withAdditionalData(String additionalData)
Any additional data associated with the specified commit.
additionalData
- Any additional data associated with the specified commit.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.