Class BranchBuilder
- 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 Summary
Fields Modifier and Type Field Description protected boolean
isSet$commit$com$dabsquared$gitlabjenkins$gitlab$api$model$Commit
protected boolean
isSet$name$java$lang$String
protected boolean
isSet$protectedBranch$java$lang$Boolean
protected BranchBuilder
self
protected Commit
value$commit$com$dabsquared$gitlabjenkins$gitlab$api$model$Commit
protected String
value$name$java$lang$String
protected Boolean
value$protectedBranch$java$lang$Boolean
-
Constructor Summary
Constructors Constructor Description BranchBuilder()
Creates a newBranchBuilder
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BranchBuilder
branch()
Factory Method to construct a BranchBuilderBranch
build()
Creates a newBranch
based on this builder's settings.BranchBuilder
but()
Returns a clone of this builder.Object
clone()
Returns a clone of this builder.BranchBuilder
withCommit(Commit value)
Sets the default value for the commit property.BranchBuilder
withName(String value)
Sets the default value for the name property.BranchBuilder
withProtectedBranch(Boolean value)
Sets the default value for the protectedBranch property.
-
-
-
Field Detail
-
self
protected BranchBuilder self
-
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 newBranchBuilder
.
-
-
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.
-
but
@GwtIncompatible public BranchBuilder but()
Returns a clone of this builder.- Returns:
- the clone
-
-