Interface CreateCommitRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CodeCommitRequest.Builder,CopyableBuilder<CreateCommitRequest.Builder,CreateCommitRequest>,SdkBuilder<CreateCommitRequest.Builder,CreateCommitRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateCommitRequest
public static interface CreateCommitRequest.Builder extends CodeCommitRequest.Builder, SdkPojo, CopyableBuilder<CreateCommitRequest.Builder,CreateCommitRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CreateCommitRequest.BuilderauthorName(String authorName)The name of the author who created the commit.CreateCommitRequest.BuilderbranchName(String branchName)The name of the branch where you create the commit.CreateCommitRequest.BuildercommitMessage(String commitMessage)The commit message you want to include in the commit.CreateCommitRequest.BuilderdeleteFiles(Collection<DeleteFileEntry> deleteFiles)The files to delete in this commit.CreateCommitRequest.BuilderdeleteFiles(Consumer<DeleteFileEntry.Builder>... deleteFiles)The files to delete in this commit.CreateCommitRequest.BuilderdeleteFiles(DeleteFileEntry... deleteFiles)The files to delete in this commit.CreateCommitRequest.Builderemail(String email)The email address of the person who created the commit.CreateCommitRequest.BuilderkeepEmptyFolders(Boolean keepEmptyFolders)If the commit contains deletions, whether to keep a folder or folder structure if the changes leave the folders empty.CreateCommitRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateCommitRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)CreateCommitRequest.BuilderparentCommitId(String parentCommitId)The ID of the commit that is the parent of the commit you create.CreateCommitRequest.BuilderputFiles(Collection<PutFileEntry> putFiles)The files to add or update in this commit.CreateCommitRequest.BuilderputFiles(Consumer<PutFileEntry.Builder>... putFiles)The files to add or update in this commit.CreateCommitRequest.BuilderputFiles(PutFileEntry... putFiles)The files to add or update in this commit.CreateCommitRequest.BuilderrepositoryName(String repositoryName)The name of the repository where you create the commit.CreateCommitRequest.BuildersetFileModes(Collection<SetFileModeEntry> setFileModes)The file modes to update for files in this commit.CreateCommitRequest.BuildersetFileModes(Consumer<SetFileModeEntry.Builder>... setFileModes)The file modes to update for files in this commit.CreateCommitRequest.BuildersetFileModes(SetFileModeEntry... setFileModes)The file modes to update for files in this commit.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.services.codecommit.model.CodeCommitRequest.Builder
build
-
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
-
repositoryName
CreateCommitRequest.Builder repositoryName(String repositoryName)
The name of the repository where you create the commit.
- Parameters:
repositoryName- The name of the repository where you create the commit.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
branchName
CreateCommitRequest.Builder branchName(String branchName)
The name of the branch where you create the commit.
- Parameters:
branchName- The name of the branch where you create the commit.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
parentCommitId
CreateCommitRequest.Builder parentCommitId(String parentCommitId)
The ID of the commit that is the parent of the commit you create. Not required if this is an empty repository.
- Parameters:
parentCommitId- The ID of the commit that is the parent of the commit you create. Not required if this is an empty repository.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
authorName
CreateCommitRequest.Builder authorName(String authorName)
The name of the author who created the commit. This information is used as both the author and committer for the commit.
- Parameters:
authorName- The name of the author who created the commit. This information is used as both the author and committer for the commit.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
email
CreateCommitRequest.Builder email(String email)
The email address of the person who created the commit.
- Parameters:
email- The email address of the person who created the commit.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
commitMessage
CreateCommitRequest.Builder commitMessage(String commitMessage)
The commit message you want to include in the commit. Commit messages are limited to 256 KB. If no message is specified, a default message is used.
- Parameters:
commitMessage- The commit message you want to include in the commit. Commit messages are limited to 256 KB. If no message is specified, a default message is used.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
keepEmptyFolders
CreateCommitRequest.Builder keepEmptyFolders(Boolean keepEmptyFolders)
If the commit contains deletions, whether to keep a folder or folder structure if the changes leave the folders empty. If true, a ..gitkeep file is created for empty folders. The default is false.
- Parameters:
keepEmptyFolders- If the commit contains deletions, whether to keep a folder or folder structure if the changes leave the folders empty. If true, a ..gitkeep file is created for empty folders. The default is false.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
putFiles
CreateCommitRequest.Builder putFiles(Collection<PutFileEntry> putFiles)
The files to add or update in this commit.
- Parameters:
putFiles- The files to add or update in this commit.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
putFiles
CreateCommitRequest.Builder putFiles(PutFileEntry... putFiles)
The files to add or update in this commit.
- Parameters:
putFiles- The files to add or update in this commit.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
putFiles
CreateCommitRequest.Builder putFiles(Consumer<PutFileEntry.Builder>... putFiles)
The files to add or update in this commit.
This is a convenience method that creates an instance of thePutFileEntry.Builderavoiding the need to create one manually viaPutFileEntry.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#putFiles(List.) - Parameters:
putFiles- a consumer that will call methods onPutFileEntry.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#putFiles(java.util.Collection)
-
deleteFiles
CreateCommitRequest.Builder deleteFiles(Collection<DeleteFileEntry> deleteFiles)
The files to delete in this commit. These files still exist in earlier commits.
- Parameters:
deleteFiles- The files to delete in this commit. These files still exist in earlier commits.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deleteFiles
CreateCommitRequest.Builder deleteFiles(DeleteFileEntry... deleteFiles)
The files to delete in this commit. These files still exist in earlier commits.
- Parameters:
deleteFiles- The files to delete in this commit. These files still exist in earlier commits.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deleteFiles
CreateCommitRequest.Builder deleteFiles(Consumer<DeleteFileEntry.Builder>... deleteFiles)
The files to delete in this commit. These files still exist in earlier commits.
This is a convenience method that creates an instance of theDeleteFileEntry.Builderavoiding the need to create one manually viaDeleteFileEntry.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#deleteFiles(List.) - Parameters:
deleteFiles- a consumer that will call methods onDeleteFileEntry.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#deleteFiles(java.util.Collection)
-
setFileModes
CreateCommitRequest.Builder setFileModes(Collection<SetFileModeEntry> setFileModes)
The file modes to update for files in this commit.
- Parameters:
setFileModes- The file modes to update for files in this commit.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setFileModes
CreateCommitRequest.Builder setFileModes(SetFileModeEntry... setFileModes)
The file modes to update for files in this commit.
- Parameters:
setFileModes- The file modes to update for files in this commit.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setFileModes
CreateCommitRequest.Builder setFileModes(Consumer<SetFileModeEntry.Builder>... setFileModes)
The file modes to update for files in this commit.
This is a convenience method that creates an instance of theSetFileModeEntry.Builderavoiding the need to create one manually viaSetFileModeEntry.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#setFileModes(List.) - Parameters:
setFileModes- a consumer that will call methods onSetFileModeEntry.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#setFileModes(java.util.Collection)
-
overrideConfiguration
CreateCommitRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateCommitRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-