java.lang.Object
com.dabsquared.gitlabjenkins.gitlab.api.model.builder.generated.BranchBuilder
All Implemented Interfaces:
Cloneable

@Generated("PojoBuilder") public class BranchBuilder extends Object implements Cloneable
  • Field Details Link icon

    • self Link icon

      protected BranchBuilder self
    • value$name$java$lang$String Link icon

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

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

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

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

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

      protected boolean isSet$commit$com$dabsquared$gitlabjenkins$gitlab$api$model$Commit
  • Constructor Details Link icon

    • BranchBuilder Link icon

      public BranchBuilder()
      Creates a new BranchBuilder.
  • Method Details Link icon

    • branch Link icon

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

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

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

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

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

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

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