Interface Commit.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Commit.Builder,
,Commit> SdkBuilder<Commit.Builder,
,Commit> SdkPojo
- Enclosing class:
Commit
-
Method Summary
Modifier and TypeMethodDescriptionadditionalData
(String additionalData) Any other data associated with the specified commit.default Commit.Builder
author
(Consumer<UserInfo.Builder> author) Information about the author of the specified commit.Information about the author of the specified commit.The full SHA ID 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.Information about the person who committed the specified commit, also known as the committer.The commit message associated with the specified commit.A list of parent commits for the specified commit.parents
(Collection<String> parents) A list of parent commits for the specified commit.Tree information for the specified commit.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
commitId
The full SHA ID of the specified commit.
- Parameters:
commitId
- The full SHA ID of the specified commit.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
treeId
Tree information for the specified commit.
- Parameters:
treeId
- Tree information for the specified commit.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
parents
A list of parent commits for the specified commit. Each parent commit ID is the full commit ID.
- Parameters:
parents
- A list of parent commits for the specified commit. Each parent commit ID is the full commit ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
parents
A list of parent commits for the specified commit. Each parent commit ID is the full commit ID.
- Parameters:
parents
- A list of parent commits for the specified commit. Each parent commit ID is the full commit ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
message
The commit message associated with the specified commit.
- Parameters:
message
- The commit message associated with the specified commit.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 method that creates an instance of theUserInfo.Builder
avoiding the need to create one manually viaUserInfo.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toauthor(UserInfo)
.- Parameters:
author
- a consumer that will call methods onUserInfo.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
- Parameters:
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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 method that creates an instance of theUserInfo.Builder
avoiding the need to create one manually viaUserInfo.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocommitter(UserInfo)
.- Parameters:
committer
- a consumer that will call methods onUserInfo.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
additionalData
Any other data associated with the specified commit.
- Parameters:
additionalData
- Any other data associated with the specified commit.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-