public static interface Commit.Builder extends CopyableBuilder<Commit.Builder,Commit>
Modifier and Type | Method and Description |
---|---|
Commit.Builder |
additionalData(String additionalData)
Any additional data associated with the specified commit.
|
default Commit.Builder |
author(Consumer<UserInfo.Builder> author)
Information about the author of the specified commit.
|
Commit.Builder |
author(UserInfo author)
Information about the author of the specified commit.
|
Commit.Builder |
commitId(String commitId)
The full SHA of the specified commit.
|
default Commit.Builder |
committer(Consumer<UserInfo.Builder> committer)
Information about the person who committed the specified commit, also known as the committer.
|
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(Collection<String> parents)
The parent list for the specified commit.
|
Commit.Builder |
parents(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 commitId(String commitId)
The full SHA of the specified commit.
commitId
- The full SHA of the specified commit.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.
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.default Commit.Builder author(Consumer<UserInfo.Builder> 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.
This is a convenience that creates an instance of theUserInfo.Builder
avoiding the need to create
one manually via UserInfo.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result is
passed to author(UserInfo)
.author
- a consumer that will call methods on UserInfo.Builder
author(UserInfo)
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.
default Commit.Builder committer(Consumer<UserInfo.Builder> 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.
This is a convenience that creates an instance of theUserInfo.Builder
avoiding the need to create
one manually via UserInfo.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result is
passed to committer(UserInfo)
.committer
- a consumer that will call methods on UserInfo.Builder
committer(UserInfo)
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.