Interface CreateCommitRequest.Builder

    • Method Detail

      • repositoryName

        CreateCommitRequest.Builder repositoryName​(String repositoryName)

        The name of the repository where you create the commit.

        Parameters:
        repositoryName - The name of the repository where you create the commit.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • branchName

        CreateCommitRequest.Builder branchName​(String branchName)

        The name of the branch where you create the commit.

        Parameters:
        branchName - The name of the branch where you create the commit.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • parentCommitId

        CreateCommitRequest.Builder parentCommitId​(String parentCommitId)

        The ID of the commit that is the parent of the commit you create. Not required if this is an empty repository.

        Parameters:
        parentCommitId - The ID of the commit that is the parent of the commit you create. Not required if this is an empty repository.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • authorName

        CreateCommitRequest.Builder authorName​(String authorName)

        The name of the author who created the commit. This information is used as both the author and committer for the commit.

        Parameters:
        authorName - The name of the author who created the commit. This information is used as both the author and committer for the commit.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • email

        CreateCommitRequest.Builder email​(String email)

        The email address of the person who created the commit.

        Parameters:
        email - The email address of the person who created the commit.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • commitMessage

        CreateCommitRequest.Builder commitMessage​(String commitMessage)

        The commit message you want to include in the commit. Commit messages are limited to 256 KB. If no message is specified, a default message is used.

        Parameters:
        commitMessage - The commit message you want to include in the commit. Commit messages are limited to 256 KB. If no message is specified, a default message is used.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • keepEmptyFolders

        CreateCommitRequest.Builder keepEmptyFolders​(Boolean keepEmptyFolders)

        If the commit contains deletions, whether to keep a folder or folder structure if the changes leave the folders empty. If true, a ..gitkeep file is created for empty folders. The default is false.

        Parameters:
        keepEmptyFolders - If the commit contains deletions, whether to keep a folder or folder structure if the changes leave the folders empty. If true, a ..gitkeep file is created for empty folders. The default is false.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • putFiles

        CreateCommitRequest.Builder putFiles​(Collection<PutFileEntry> putFiles)

        The files to add or update in this commit.

        Parameters:
        putFiles - The files to add or update in this commit.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • putFiles

        CreateCommitRequest.Builder putFiles​(PutFileEntry... putFiles)

        The files to add or update in this commit.

        Parameters:
        putFiles - The files to add or update in this commit.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • deleteFiles

        CreateCommitRequest.Builder deleteFiles​(Collection<DeleteFileEntry> deleteFiles)

        The files to delete in this commit. These files still exist in earlier commits.

        Parameters:
        deleteFiles - The files to delete in this commit. These files still exist in earlier commits.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • deleteFiles

        CreateCommitRequest.Builder deleteFiles​(DeleteFileEntry... deleteFiles)

        The files to delete in this commit. These files still exist in earlier commits.

        Parameters:
        deleteFiles - The files to delete in this commit. These files still exist in earlier commits.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setFileModes

        CreateCommitRequest.Builder setFileModes​(Collection<SetFileModeEntry> setFileModes)

        The file modes to update for files in this commit.

        Parameters:
        setFileModes - The file modes to update for files in this commit.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setFileModes

        CreateCommitRequest.Builder setFileModes​(SetFileModeEntry... setFileModes)

        The file modes to update for files in this commit.

        Parameters:
        setFileModes - The file modes to update for files in this commit.
        Returns:
        Returns a reference to this object so that method calls can be chained together.