@Generated(value="PojoBuilder") public class BranchBuilder extends Object implements Cloneable
Modifier and Type | Field and 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 and Description |
---|
BranchBuilder()
Creates a new
BranchBuilder . |
Modifier and Type | Method and Description |
---|---|
static BranchBuilder |
branch()
Factory Method to construct a BranchBuilder
|
Branch |
build()
Creates a new
Branch 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.
|
protected BranchBuilder self
protected String value$name$java$lang$String
protected boolean isSet$name$java$lang$String
protected Boolean value$protectedBranch$java$lang$Boolean
protected boolean isSet$protectedBranch$java$lang$Boolean
protected Commit value$commit$com$dabsquared$gitlabjenkins$gitlab$api$model$Commit
protected boolean isSet$commit$com$dabsquared$gitlabjenkins$gitlab$api$model$Commit
public BranchBuilder()
BranchBuilder
.public static BranchBuilder branch()
public BranchBuilder withName(String value)
value
- the default valuepublic BranchBuilder withProtectedBranch(Boolean value)
value
- the default valuepublic BranchBuilder withCommit(Commit value)
value
- the default value@GwtIncompatible public Object clone()
@GwtIncompatible public BranchBuilder but()
Copyright © 2016–2022. All rights reserved.