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 Details

    • 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:
    • 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

      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

      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

      PutFileRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.