Interface PutFileRequest.Builder

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