Class BranchBuilder

    • Field Detail

      • value$name$java$lang$String

        protected String value$name$java$lang$String
      • isSet$name$java$lang$String

        protected boolean isSet$name$java$lang$String
      • value$protectedBranch$java$lang$Boolean

        protected Boolean value$protectedBranch$java$lang$Boolean
      • isSet$protectedBranch$java$lang$Boolean

        protected boolean isSet$protectedBranch$java$lang$Boolean
      • value$commit$com$dabsquared$gitlabjenkins$gitlab$api$model$Commit

        protected Commit value$commit$com$dabsquared$gitlabjenkins$gitlab$api$model$Commit
      • isSet$commit$com$dabsquared$gitlabjenkins$gitlab$api$model$Commit

        protected boolean isSet$commit$com$dabsquared$gitlabjenkins$gitlab$api$model$Commit
    • Constructor Detail

      • BranchBuilder

        public BranchBuilder()
        Creates a new BranchBuilder.
    • Method Detail

      • branch

        public static BranchBuilder branch()
        Factory Method to construct a BranchBuilder
        Returns:
        a new BranchBuilder
      • withName

        public BranchBuilder withName​(String value)
        Sets the default value for the name property.
        Parameters:
        value - the default value
        Returns:
        this builder
      • withProtectedBranch

        public BranchBuilder withProtectedBranch​(Boolean value)
        Sets the default value for the protectedBranch property.
        Parameters:
        value - the default value
        Returns:
        this builder
      • withCommit

        public BranchBuilder withCommit​(Commit value)
        Sets the default value for the commit property.
        Parameters:
        value - the default value
        Returns:
        this builder
      • clone

        @GwtIncompatible
        public Object clone()
        Returns a clone of this builder.
        Overrides:
        clone in class Object
        Returns:
        the clone
      • but

        @GwtIncompatible
        public BranchBuilder but()
        Returns a clone of this builder.
        Returns:
        the clone
      • build

        public Branch build()
        Creates a new Branch based on this builder's settings.
        Returns:
        the created Branch