Class BranchBuilder
java.lang.Object
com.dabsquared.gitlabjenkins.gitlab.api.model.builder.generated.BranchBuilder
- All Implemented Interfaces:
Cloneable
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
protected boolean
protected boolean
protected BranchBuilder
protected Commit
protected String
protected Boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic BranchBuilder
branch()
Factory Method to construct a BranchBuilderbuild()
Creates a newBranch
based on this builder's settings.but()
Returns a clone of this builder.clone()
Returns a clone of this builder.withCommit
(Commit value) Sets the default value for the commit property.Sets the default value for the name property.withProtectedBranch
(Boolean value) Sets the default value for the protectedBranch property.
-
Field Details
-
self
-
value$name$java$lang$String
-
isSet$name$java$lang$String
protected boolean isSet$name$java$lang$String -
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
-
isSet$commit$com$dabsquared$gitlabjenkins$gitlab$api$model$Commit
protected boolean isSet$commit$com$dabsquared$gitlabjenkins$gitlab$api$model$Commit
-
-
Constructor Details
-
BranchBuilder
public BranchBuilder()Creates a newBranchBuilder
.
-
-
Method Details
-
branch
Factory Method to construct a BranchBuilder- Returns:
- a new BranchBuilder
-
withName
Sets the default value for the name property.- Parameters:
value
- the default value- Returns:
- this builder
-
withProtectedBranch
Sets the default value for the protectedBranch property.- Parameters:
value
- the default value- Returns:
- this builder
-
withCommit
Sets the default value for the commit property.- Parameters:
value
- the default value- Returns:
- this builder
-
clone
Returns a clone of this builder. -
but
Returns a clone of this builder.- Returns:
- the clone
-
build
Creates a newBranch
based on this builder's settings.- Returns:
- the created Branch
-