Interface CreateCommitRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CodeCommitRequest.Builder
,CopyableBuilder<CreateCommitRequest.Builder,
,CreateCommitRequest> SdkBuilder<CreateCommitRequest.Builder,
,CreateCommitRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateCommitRequest
-
Method Summary
Modifier and TypeMethodDescriptionauthorName
(String authorName) The name of the author who created the commit.branchName
(String branchName) The name of the branch where you create the commit.commitMessage
(String commitMessage) The commit message you want to include in the commit.deleteFiles
(Collection<DeleteFileEntry> deleteFiles) The files to delete in this commit.deleteFiles
(Consumer<DeleteFileEntry.Builder>... deleteFiles) The files to delete in this commit.deleteFiles
(DeleteFileEntry... deleteFiles) The files to delete in this commit.The email address of the person who created the commit.keepEmptyFolders
(Boolean keepEmptyFolders) If the commit contains deletions, whether to keep a folder or folder structure if the changes leave the folders empty.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.parentCommitId
(String parentCommitId) The ID of the commit that is the parent of the commit you create.putFiles
(Collection<PutFileEntry> putFiles) The files to add or update in this commit.putFiles
(Consumer<PutFileEntry.Builder>... putFiles) The files to add or update in this commit.putFiles
(PutFileEntry... putFiles) The files to add or update in this commit.repositoryName
(String repositoryName) The name of the repository where you create the commit.setFileModes
(Collection<SetFileModeEntry> setFileModes) The file modes to update for files in this commit.setFileModes
(Consumer<SetFileModeEntry.Builder>... setFileModes) The file modes to update for files in this commit.setFileModes
(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, sdkFields
-
Method Details
-
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
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
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
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
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
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
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
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
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
The files to add or update in this commit.
This is a convenience method that creates an instance of thePutFileEntry.Builder
avoiding the need to create one manually viaPutFileEntry.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toputFiles(List<PutFileEntry>)
.- 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:
-
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
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
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.Builder
avoiding the need to create one manually viaDeleteFileEntry.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todeleteFiles(List<DeleteFileEntry>)
.- 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:
-
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
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
The file modes to update for files in this commit.
This is a convenience method that creates an instance of theSetFileModeEntry.Builder
avoiding the need to create one manually viaSetFileModeEntry.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosetFileModes(List<SetFileModeEntry>)
.- 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:
-
overrideConfiguration
CreateCommitRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateCommitRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-