Class CommitBuilder
- java.lang.Object
-
- com.dabsquared.gitlabjenkins.gitlab.hook.model.builder.generated.CommitBuilder
-
- All Implemented Interfaces:
Cloneable
@Generated("PojoBuilder") public class CommitBuilder extends Object implements Cloneable
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
isSet$added$java$util$List
protected boolean
isSet$author$com$dabsquared$gitlabjenkins$gitlab$hook$model$User
protected boolean
isSet$id$java$lang$String
protected boolean
isSet$message$java$lang$String
protected boolean
isSet$modified$java$util$List
protected boolean
isSet$removed$java$util$List
protected boolean
isSet$timestamp$java$util$Date
protected boolean
isSet$url$java$lang$String
protected CommitBuilder
self
protected List<String>
value$added$java$util$List
protected User
value$author$com$dabsquared$gitlabjenkins$gitlab$hook$model$User
protected String
value$id$java$lang$String
protected String
value$message$java$lang$String
protected List<String>
value$modified$java$util$List
protected List<String>
value$removed$java$util$List
protected Date
value$timestamp$java$util$Date
protected String
value$url$java$lang$String
-
Constructor Summary
Constructors Constructor Description CommitBuilder()
Creates a newCommitBuilder
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Commit
build()
Creates a newCommit
based on this builder's settings.CommitBuilder
but()
Returns a clone of this builder.Object
clone()
Returns a clone of this builder.static CommitBuilder
commit()
Factory Method to construct a CommitBuilderCommitBuilder
withAdded(List<String> value)
Sets the default value for the added property.CommitBuilder
withAuthor(User value)
Sets the default value for the author property.CommitBuilder
withId(String value)
Sets the default value for the id property.CommitBuilder
withMessage(String value)
Sets the default value for the message property.CommitBuilder
withModified(List<String> value)
Sets the default value for the modified property.CommitBuilder
withRemoved(List<String> value)
Sets the default value for the removed property.CommitBuilder
withTimestamp(Date value)
Sets the default value for the timestamp property.CommitBuilder
withUrl(String value)
Sets the default value for the url property.
-
-
-
Field Detail
-
self
protected CommitBuilder self
-
value$id$java$lang$String
protected String value$id$java$lang$String
-
isSet$id$java$lang$String
protected boolean isSet$id$java$lang$String
-
value$message$java$lang$String
protected String value$message$java$lang$String
-
isSet$message$java$lang$String
protected boolean isSet$message$java$lang$String
-
value$timestamp$java$util$Date
protected Date value$timestamp$java$util$Date
-
isSet$timestamp$java$util$Date
protected boolean isSet$timestamp$java$util$Date
-
value$url$java$lang$String
protected String value$url$java$lang$String
-
isSet$url$java$lang$String
protected boolean isSet$url$java$lang$String
-
value$author$com$dabsquared$gitlabjenkins$gitlab$hook$model$User
protected User value$author$com$dabsquared$gitlabjenkins$gitlab$hook$model$User
-
isSet$author$com$dabsquared$gitlabjenkins$gitlab$hook$model$User
protected boolean isSet$author$com$dabsquared$gitlabjenkins$gitlab$hook$model$User
-
isSet$added$java$util$List
protected boolean isSet$added$java$util$List
-
isSet$modified$java$util$List
protected boolean isSet$modified$java$util$List
-
isSet$removed$java$util$List
protected boolean isSet$removed$java$util$List
-
-
Constructor Detail
-
CommitBuilder
public CommitBuilder()
Creates a newCommitBuilder
.
-
-
Method Detail
-
commit
public static CommitBuilder commit()
Factory Method to construct a CommitBuilder- Returns:
- a new CommitBuilder
-
withId
public CommitBuilder withId(String value)
Sets the default value for the id property.- Parameters:
value
- the default value- Returns:
- this builder
-
withMessage
public CommitBuilder withMessage(String value)
Sets the default value for the message property.- Parameters:
value
- the default value- Returns:
- this builder
-
withTimestamp
public CommitBuilder withTimestamp(Date value)
Sets the default value for the timestamp property.- Parameters:
value
- the default value- Returns:
- this builder
-
withUrl
public CommitBuilder withUrl(String value)
Sets the default value for the url property.- Parameters:
value
- the default value- Returns:
- this builder
-
withAuthor
public CommitBuilder withAuthor(User value)
Sets the default value for the author property.- Parameters:
value
- the default value- Returns:
- this builder
-
withAdded
public CommitBuilder withAdded(List<String> value)
Sets the default value for the added property.- Parameters:
value
- the default value- Returns:
- this builder
-
withModified
public CommitBuilder withModified(List<String> value)
Sets the default value for the modified property.- Parameters:
value
- the default value- Returns:
- this builder
-
withRemoved
public CommitBuilder withRemoved(List<String> value)
Sets the default value for the removed property.- Parameters:
value
- the default value- Returns:
- this builder
-
clone
@GwtIncompatible public Object clone()
Returns a clone of this builder.
-
but
@GwtIncompatible public CommitBuilder but()
Returns a clone of this builder.- Returns:
- the clone
-
-