Interface PutFileRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CodeCommitRequest.Builder
,CopyableBuilder<PutFileRequest.Builder,
,PutFileRequest> SdkBuilder<PutFileRequest.Builder,
,PutFileRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
PutFileRequest
-
Method Summary
Modifier and TypeMethodDescriptionbranchName
(String branchName) The name of the branch where you want to add or update the file.commitMessage
(String commitMessage) A message about why this file was added or updated.An email address for the person adding or updating the file.fileContent
(SdkBytes fileContent) The content of the file, in binary object format.The file mode permissions of the blob.fileMode
(FileModeTypeEnum fileMode) The file mode permissions of the blob.The name of the file you want to add or update, including the relative path to the file in the repository.The name of the person adding or updating the file.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.parentCommitId
(String parentCommitId) The full commit ID of the head commit in the branch where you want to add or update the file.repositoryName
(String repositoryName) The name of the repository where you want to add or update the file.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 want to add or update the file.
- Parameters:
repositoryName
- The name of the repository where you want to add or update the file.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
branchName
The name of the branch where you want to add or update the file. If this is an empty repository, this branch is created.
- Parameters:
branchName
- The name of the branch where you want to add or update the file. If this is an empty repository, this branch is created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fileContent
The content of the file, in binary object format.
- Parameters:
fileContent
- The content of the file, in binary object format.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filePath
The name of the file you want to add or update, including the relative path to the file in the repository.
If the path does not currently exist in the repository, the path is created as part of adding the file.
- Parameters:
filePath
- The name of the file you want to add or update, including the relative path to the file in the repository.If the path does not currently exist in the repository, the path is created as part of adding the file.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fileMode
The file mode permissions of the blob. Valid file mode permissions are listed here.
- Parameters:
fileMode
- The file mode permissions of the blob. Valid file mode permissions are listed here.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
fileMode
The file mode permissions of the blob. Valid file mode permissions are listed here.
- Parameters:
fileMode
- The file mode permissions of the blob. Valid file mode permissions are listed here.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
parentCommitId
The full commit ID of the head commit in the branch where you want to add or update the file. If this is an empty repository, no commit ID is required. If this is not an empty repository, a commit ID is required.
The commit ID must match the ID of the head commit at the time of the operation. Otherwise, an error occurs, and the file is not added or updated.
- Parameters:
parentCommitId
- The full commit ID of the head commit in the branch where you want to add or update the file. If this is an empty repository, no commit ID is required. If this is not an empty repository, a commit ID is required.The commit ID must match the ID of the head commit at the time of the operation. Otherwise, an error occurs, and the file is not added or updated.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
commitMessage
A message about why this file was added or updated. Although it is optional, a message makes the commit history for your repository more useful.
- Parameters:
commitMessage
- A message about why this file was added or updated. Although it is optional, a message makes the commit history for your repository more useful.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The name of the person adding or updating the file. Although it is optional, a name makes the commit history for your repository more useful.
- Parameters:
name
- The name of the person adding or updating the file. Although it is optional, a name makes the commit history for your repository more useful.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
email
An email address for the person adding or updating the file.
- Parameters:
email
- An email address for the person adding or updating the file.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
PutFileRequest.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.
-