Class BranchDataBuilder
- java.lang.Object
-
- com.gitee.jenkins.gitee.hook.model.builder.generated.BranchDataBuilder
-
- All Implemented Interfaces:
Cloneable
@Generated("PojoBuilder") public class BranchDataBuilder extends Object implements Cloneable
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
isSet$label$java$lang$String
protected boolean
isSet$ref$java$lang$String
protected boolean
isSet$repo$com$gitee$jenkins$gitee$hook$model$Project
protected boolean
isSet$sha$java$lang$String
protected boolean
isSet$user$com$gitee$jenkins$gitee$hook$model$User
protected BranchDataBuilder
self
protected String
value$label$java$lang$String
protected String
value$ref$java$lang$String
protected Project
value$repo$com$gitee$jenkins$gitee$hook$model$Project
protected String
value$sha$java$lang$String
protected User
value$user$com$gitee$jenkins$gitee$hook$model$User
-
Constructor Summary
Constructors Constructor Description BranchDataBuilder()
Creates a newBranchDataBuilder
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BranchDataBuilder
branchData()
Factory Method to construct a BranchDataBuilderBranchData
build()
Creates a newBranchData
based on this builder's settings.BranchDataBuilder
but()
Returns a clone of this builder.Object
clone()
Returns a clone of this builder.BranchDataBuilder
withLabel(String value)
Sets the default value for the label property.BranchDataBuilder
withRef(String value)
Sets the default value for the ref property.BranchDataBuilder
withRepo(Project value)
Sets the default value for the repo property.BranchDataBuilder
withSha(String value)
Sets the default value for the sha property.BranchDataBuilder
withUser(User value)
Sets the default value for the user property.
-
-
-
Field Detail
-
self
protected BranchDataBuilder self
-
value$label$java$lang$String
protected String value$label$java$lang$String
-
isSet$label$java$lang$String
protected boolean isSet$label$java$lang$String
-
value$ref$java$lang$String
protected String value$ref$java$lang$String
-
isSet$ref$java$lang$String
protected boolean isSet$ref$java$lang$String
-
value$sha$java$lang$String
protected String value$sha$java$lang$String
-
isSet$sha$java$lang$String
protected boolean isSet$sha$java$lang$String
-
value$user$com$gitee$jenkins$gitee$hook$model$User
protected User value$user$com$gitee$jenkins$gitee$hook$model$User
-
isSet$user$com$gitee$jenkins$gitee$hook$model$User
protected boolean isSet$user$com$gitee$jenkins$gitee$hook$model$User
-
value$repo$com$gitee$jenkins$gitee$hook$model$Project
protected Project value$repo$com$gitee$jenkins$gitee$hook$model$Project
-
isSet$repo$com$gitee$jenkins$gitee$hook$model$Project
protected boolean isSet$repo$com$gitee$jenkins$gitee$hook$model$Project
-
-
Constructor Detail
-
BranchDataBuilder
public BranchDataBuilder()
Creates a newBranchDataBuilder
.
-
-
Method Detail
-
branchData
public static BranchDataBuilder branchData()
Factory Method to construct a BranchDataBuilder- Returns:
- a new BranchDataBuilder
-
withLabel
public BranchDataBuilder withLabel(String value)
Sets the default value for the label property.- Parameters:
value
- the default value- Returns:
- this builder
-
withRef
public BranchDataBuilder withRef(String value)
Sets the default value for the ref property.- Parameters:
value
- the default value- Returns:
- this builder
-
withSha
public BranchDataBuilder withSha(String value)
Sets the default value for the sha property.- Parameters:
value
- the default value- Returns:
- this builder
-
withUser
public BranchDataBuilder withUser(User value)
Sets the default value for the user property.- Parameters:
value
- the default value- Returns:
- this builder
-
withRepo
public BranchDataBuilder withRepo(Project value)
Sets the default value for the repo property.- Parameters:
value
- the default value- Returns:
- this builder
-
clone
@GwtIncompatible public Object clone()
Returns a clone of this builder.
-
but
@GwtIncompatible public BranchDataBuilder but()
Returns a clone of this builder.- Returns:
- the clone
-
build
public BranchData build()
Creates a newBranchData
based on this builder's settings.- Returns:
- the created BranchData
-
-