Class CommitBuilder
java.lang.Object
com.dabsquared.gitlabjenkins.gitlab.hook.model.builder.generated.CommitBuilder
- All Implemented Interfaces:
Cloneable
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Creates a newCommit
based on this builder's settings.but()
Returns a clone of this builder.clone()
Returns a clone of this builder.static CommitBuilder
commit()
Factory Method to construct a CommitBuilderSets the default value for the added property.withAuthor
(User value) Sets the default value for the author property.Sets the default value for the id property.withMessage
(String value) Sets the default value for the message property.withModified
(List<String> value) Sets the default value for the modified property.withRemoved
(List<String> value) Sets the default value for the removed property.withTimestamp
(Date value) Sets the default value for the timestamp property.Sets the default value for the url property.
-
Field Details
-
self
-
value$id$java$lang$String
-
isSet$id$java$lang$String
protected boolean isSet$id$java$lang$String -
value$message$java$lang$String
-
isSet$message$java$lang$String
protected boolean isSet$message$java$lang$String -
value$timestamp$java$util$Date
-
isSet$timestamp$java$util$Date
protected boolean isSet$timestamp$java$util$Date -
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
-
isSet$author$com$dabsquared$gitlabjenkins$gitlab$hook$model$User
protected boolean isSet$author$com$dabsquared$gitlabjenkins$gitlab$hook$model$User -
value$added$java$util$List
-
isSet$added$java$util$List
protected boolean isSet$added$java$util$List -
value$modified$java$util$List
-
isSet$modified$java$util$List
protected boolean isSet$modified$java$util$List -
value$removed$java$util$List
-
isSet$removed$java$util$List
protected boolean isSet$removed$java$util$List
-
-
Constructor Details
-
CommitBuilder
public CommitBuilder()Creates a newCommitBuilder
.
-
-
Method Details
-
commit
Factory Method to construct a CommitBuilder- Returns:
- a new CommitBuilder
-
withId
Sets the default value for the id property.- Parameters:
value
- the default value- Returns:
- this builder
-
withMessage
Sets the default value for the message property.- Parameters:
value
- the default value- Returns:
- this builder
-
withTimestamp
Sets the default value for the timestamp property.- Parameters:
value
- the default value- Returns:
- this builder
-
withUrl
Sets the default value for the url property.- Parameters:
value
- the default value- Returns:
- this builder
-
withAuthor
Sets the default value for the author property.- Parameters:
value
- the default value- Returns:
- this builder
-
withAdded
Sets the default value for the added property.- Parameters:
value
- the default value- Returns:
- this builder
-
withModified
Sets the default value for the modified property.- Parameters:
value
- the default value- Returns:
- this builder
-
withRemoved
Sets the default value for the removed 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 newCommit
based on this builder's settings.- Returns:
- the created Commit
-