Interface Commit.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Commit.Builder,Commit>,SdkBuilder<Commit.Builder,Commit>,SdkPojo
- Enclosing class:
- Commit
public static interface Commit.Builder extends SdkPojo, CopyableBuilder<Commit.Builder,Commit>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Commit.BuilderadditionalData(String additionalData)Any other data associated with the specified commit.default Commit.Builderauthor(Consumer<UserInfo.Builder> author)Information about the author of the specified commit.Commit.Builderauthor(UserInfo author)Information about the author of the specified commit.Commit.BuildercommitId(String commitId)The full SHA ID of the specified commit.default Commit.Buildercommitter(Consumer<UserInfo.Builder> committer)Information about the person who committed the specified commit, also known as the committer.Commit.Buildercommitter(UserInfo committer)Information about the person who committed the specified commit, also known as the committer.Commit.Buildermessage(String message)The commit message associated with the specified commit.Commit.Builderparents(String... parents)A list of parent commits for the specified commit.Commit.Builderparents(Collection<String> parents)A list of parent commits for the specified commit.Commit.BuildertreeId(String treeId)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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
commitId
Commit.Builder commitId(String 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
Commit.Builder treeId(String 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
Commit.Builder parents(Collection<String> 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
Commit.Builder parents(String... 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
Commit.Builder message(String 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
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.
- 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
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 method that creates an instance of theUserInfo.Builderavoiding the need to create one manually viaUserInfo.builder().When the
Consumercompletes,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:
author(UserInfo)
-
committer
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.
- 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
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 method that creates an instance of theUserInfo.Builderavoiding the need to create one manually viaUserInfo.builder().When the
Consumercompletes,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:
committer(UserInfo)
-
additionalData
Commit.Builder additionalData(String 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.
-
-