Class UpdateFileOptions


  • public class UpdateFileOptions
    extends java.lang.Object
    UpdateFileOptions options for updating files Note: `author` and `committer` are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used)
    • Constructor Detail

      • UpdateFileOptions

        public UpdateFileOptions()
    • Method Detail

      • getAuthor

        public Identity getAuthor()
        Get author
        Returns:
        author
      • setAuthor

        public void setAuthor​(Identity author)
      • getBranch

        public java.lang.String getBranch()
        branch (optional) to base this file from. if not given, the default branch is used
        Returns:
        branch
      • setBranch

        public void setBranch​(java.lang.String branch)
      • getCommitter

        public Identity getCommitter()
        Get committer
        Returns:
        committer
      • setCommitter

        public void setCommitter​(Identity committer)
      • getContent

        public java.lang.String getContent()
        content must be base64 encoded
        Returns:
        content
      • setContent

        public void setContent​(java.lang.String content)
      • getFromPath

        public java.lang.String getFromPath()
        from_path (optional) is the path of the original file which will be moved/renamed to the path in the URL
        Returns:
        fromPath
      • setFromPath

        public void setFromPath​(java.lang.String fromPath)
      • getMessage

        public java.lang.String getMessage()
        message (optional) for the commit of this file. if not supplied, a default message will be used
        Returns:
        message
      • setMessage

        public void setMessage​(java.lang.String message)
      • getNewBranch

        public java.lang.String getNewBranch()
        new_branch (optional) will make a new branch from `branch` before creating the file
        Returns:
        newBranch
      • setNewBranch

        public void setNewBranch​(java.lang.String newBranch)
      • getSha

        public java.lang.String getSha()
        sha is the SHA for the file that already exists
        Returns:
        sha
      • setSha

        public void setSha​(java.lang.String sha)
      • isSignoff

        public java.lang.Boolean isSignoff()
        Add a Signed-off-by trailer by the committer at the end of the commit log message.
        Returns:
        signoff
      • setSignoff

        public void setSignoff​(java.lang.Boolean signoff)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object