Class RepositoryCommit.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • commitId

        public RepositoryCommit.Builder commitId​(String commitId)
        Commit hash pointed to by reference name.
        Parameters:
        commitId - the value to set
        Returns:
        this builder
      • commitMessage

        public RepositoryCommit.Builder commitMessage​(String commitMessage)
        The commit message.
        Parameters:
        commitMessage - the value to set
        Returns:
        this builder
      • authorName

        public RepositoryCommit.Builder authorName​(String authorName)
        Name of the author of the repository.
        Parameters:
        authorName - the value to set
        Returns:
        this builder
      • authorEmail

        public RepositoryCommit.Builder authorEmail​(String authorEmail)
        Email of the author of the repository.
        Parameters:
        authorEmail - the value to set
        Returns:
        this builder
      • committerName

        public RepositoryCommit.Builder committerName​(String committerName)
        Name of who creates the commit.
        Parameters:
        committerName - the value to set
        Returns:
        this builder
      • committerEmail

        public RepositoryCommit.Builder committerEmail​(String committerEmail)
        Email of who creates the commit.
        Parameters:
        committerEmail - the value to set
        Returns:
        this builder
      • parentCommitIds

        public RepositoryCommit.Builder parentCommitIds​(List<String> parentCommitIds)
        An array of parent commit IDs of created commit.
        Parameters:
        parentCommitIds - the value to set
        Returns:
        this builder
      • timeCreated

        public RepositoryCommit.Builder timeCreated​(Date timeCreated)
        The time at which commit was created.
        Parameters:
        timeCreated - the value to set
        Returns:
        this builder
      • treeId

        public RepositoryCommit.Builder treeId​(String treeId)
        Tree information for the specified commit.
        Parameters:
        treeId - the value to set
        Returns:
        this builder