Class CreateBranchRequest

    • Constructor Detail

      • CreateBranchRequest

        public CreateBranchRequest()
    • Method Detail

      • setRepositoryName

        public void setRepositoryName​(String repositoryName)

        The name of the repository in which you want to create the new branch.

        Parameters:
        repositoryName - The name of the repository in which you want to create the new branch.
      • getRepositoryName

        public String getRepositoryName()

        The name of the repository in which you want to create the new branch.

        Returns:
        The name of the repository in which you want to create the new branch.
      • withRepositoryName

        public CreateBranchRequest withRepositoryName​(String repositoryName)

        The name of the repository in which you want to create the new branch.

        Parameters:
        repositoryName - The name of the repository in which you want to create the new branch.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setBranchName

        public void setBranchName​(String branchName)

        The name of the new branch to create.

        Parameters:
        branchName - The name of the new branch to create.
      • getBranchName

        public String getBranchName()

        The name of the new branch to create.

        Returns:
        The name of the new branch to create.
      • withBranchName

        public CreateBranchRequest withBranchName​(String branchName)

        The name of the new branch to create.

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

        public void setCommitId​(String commitId)

        The ID of the commit to point the new branch to.

        Parameters:
        commitId - The ID of the commit to point the new branch to.
      • getCommitId

        public String getCommitId()

        The ID of the commit to point the new branch to.

        Returns:
        The ID of the commit to point the new branch to.
      • withCommitId

        public CreateBranchRequest withCommitId​(String commitId)

        The ID of the commit to point the new branch to.

        Parameters:
        commitId - The ID of the commit to point the new branch to.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • toString

        public String toString()
        Returns a string representation of this object; useful for testing and debugging.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object