Interface PutFileRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CodeCommitRequest.Builder,CopyableBuilder<PutFileRequest.Builder,PutFileRequest>,SdkBuilder<PutFileRequest.Builder,PutFileRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- PutFileRequest
public static interface PutFileRequest.Builder extends CodeCommitRequest.Builder, SdkPojo, CopyableBuilder<PutFileRequest.Builder,PutFileRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PutFileRequest.BuilderbranchName(String branchName)The name of the branch where you want to add or update the file.PutFileRequest.BuildercommitMessage(String commitMessage)A message about why this file was added or updated.PutFileRequest.Builderemail(String email)An email address for the person adding or updating the file.PutFileRequest.BuilderfileContent(SdkBytes fileContent)The content of the file, in binary object format.PutFileRequest.BuilderfileMode(String fileMode)The file mode permissions of the blob.PutFileRequest.BuilderfileMode(FileModeTypeEnum fileMode)The file mode permissions of the blob.PutFileRequest.BuilderfilePath(String filePath)The name of the file you want to add or update, including the relative path to the file in the repository.PutFileRequest.Buildername(String name)The name of the person adding or updating the file.PutFileRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)PutFileRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)PutFileRequest.BuilderparentCommitId(String parentCommitId)The full commit ID of the head commit in the branch where you want to add or update the file.PutFileRequest.BuilderrepositoryName(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 Detail
-
repositoryName
PutFileRequest.Builder repositoryName(String 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
PutFileRequest.Builder branchName(String 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
PutFileRequest.Builder fileContent(SdkBytes 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
PutFileRequest.Builder filePath(String 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
PutFileRequest.Builder fileMode(String 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:
FileModeTypeEnum,FileModeTypeEnum
-
fileMode
PutFileRequest.Builder fileMode(FileModeTypeEnum 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:
FileModeTypeEnum,FileModeTypeEnum
-
parentCommitId
PutFileRequest.Builder parentCommitId(String 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
PutFileRequest.Builder commitMessage(String 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
PutFileRequest.Builder name(String 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
PutFileRequest.Builder email(String 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
PutFileRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
PutFileRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-