public static interface PutFileRequest.Builder extends CodeCommitRequest.Builder, SdkPojo, CopyableBuilder<PutFileRequest.Builder,PutFileRequest>
Modifier and Type | Method and Description |
---|---|
PutFileRequest.Builder |
branchName(String branchName)
The name of the branch where you want to add or update the file.
|
PutFileRequest.Builder |
commitMessage(String commitMessage)
A message about why this file was added or updated.
|
PutFileRequest.Builder |
email(String email)
An email address for the person adding or updating the file.
|
PutFileRequest.Builder |
fileContent(SdkBytes fileContent)
The content of the file, in binary object format.
|
PutFileRequest.Builder |
fileMode(FileModeTypeEnum fileMode)
The file mode permissions of the blob.
|
PutFileRequest.Builder |
fileMode(String fileMode)
The file mode permissions of the blob.
|
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.
|
PutFileRequest.Builder |
name(String name)
The name of the person adding or updating the file.
|
PutFileRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
Add an optional request override configuration.
|
PutFileRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
Add an optional request override configuration.
|
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.
|
PutFileRequest.Builder |
repositoryName(String repositoryName)
The name of the repository where you want to add or update the file.
|
build
overrideConfiguration
copy
applyMutation, build
PutFileRequest.Builder repositoryName(String repositoryName)
The name of the repository where you want to add or update the file.
repositoryName
- The name of the repository where you want to add or update the file.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 will be created.
branchName
- The name of the branch where you want to add or update the file. If this is an empty repository, this
branch will be created.PutFileRequest.Builder fileContent(SdkBytes fileContent)
The content of the file, in binary object format.
fileContent
- The content of the file, in binary object format.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 will be created as part of adding the file.
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 will be created as part of adding the file.
PutFileRequest.Builder fileMode(String fileMode)
The file mode permissions of the blob. Valid file mode permissions are listed below.
fileMode
- The file mode permissions of the blob. Valid file mode permissions are listed below.FileModeTypeEnum
,
FileModeTypeEnum
PutFileRequest.Builder fileMode(FileModeTypeEnum fileMode)
The file mode permissions of the blob. Valid file mode permissions are listed below.
fileMode
- The file mode permissions of the blob. Valid file mode permissions are listed below.FileModeTypeEnum
,
FileModeTypeEnum
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, or an error will occur, and the file will not be added or updated.
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, or an error will occur, and the file will not be added or updated.
PutFileRequest.Builder commitMessage(String commitMessage)
A message about why this file was added or updated. While optional, adding a message is strongly encouraged in order to provide a more useful commit history for your repository.
commitMessage
- A message about why this file was added or updated. While optional, adding a message is strongly
encouraged in order to provide a more useful commit history for your repository.PutFileRequest.Builder name(String name)
The name of the person adding or updating the file. While optional, adding a name is strongly encouraged in order to provide a more useful commit history for your repository.
name
- The name of the person adding or updating the file. While optional, adding a name is strongly
encouraged in order to provide a more useful commit history for your repository.PutFileRequest.Builder email(String email)
An email address for the person adding or updating the file.
email
- An email address for the person adding or updating the file.PutFileRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
overrideConfiguration
- The override configuration.PutFileRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
builderConsumer
- A Consumer
to which an empty AwsRequestOverrideConfiguration.Builder
will be
given.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.