CopyableBuilder<Commit.Builder,Commit>
, SdkBuilder<Commit.Builder,Commit>
public static interface Commit.Builder extends CopyableBuilder<Commit.Builder,Commit>
Modifier and Type | Method | Description |
---|---|---|
Commit.Builder |
additionalData(String additionalData) |
Any additional data associated with the specified commit.
|
Commit.Builder |
author(UserInfo author) |
Information about the author of the specified commit.
|
Commit.Builder |
committer(UserInfo committer) |
Information about the person who committed the specified commit, also known as the committer.
|
Commit.Builder |
message(String message) |
The commit message associated with the specified commit.
|
Commit.Builder |
parents(String... parents) |
The parent list for the specified commit.
|
Commit.Builder |
parents(Collection<String> parents) |
The parent list for the specified commit.
|
Commit.Builder |
treeId(String treeId) |
Tree information for the specified commit.
|
copy
apply, build
Commit.Builder treeId(String treeId)
Tree information for the specified commit.
treeId
- Tree information for the specified commit.Commit.Builder parents(Collection<String> parents)
The parent list for the specified commit.
parents
- The parent list for the specified commit.Commit.Builder parents(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.Commit.Builder message(String message)
The commit message associated with the specified commit.
message
- The commit message associated with the specified commit.Commit.Builder author(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.Commit.Builder committer(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.
Commit.Builder additionalData(String additionalData)
Any additional data associated with the specified commit.
additionalData
- Any additional data associated with the specified commit.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.