@Generated(value="PojoBuilder") public class CommitBuilder extends Object implements Cloneable
Modifier and Type | Field and 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 and Description |
---|
CommitBuilder()
Creates a new
CommitBuilder . |
Modifier and Type | Method and Description |
---|---|
Commit |
build()
Creates a new
Commit 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 CommitBuilder
|
CommitBuilder |
withAdded(List<String> value)
Sets the default value for the
Commit.added property. |
CommitBuilder |
withAuthor(User value)
Sets the default value for the
Commit.author property. |
CommitBuilder |
withId(String value)
Sets the default value for the
Commit.id property. |
CommitBuilder |
withMessage(String value)
Sets the default value for the
Commit.message property. |
CommitBuilder |
withModified(List<String> value)
Sets the default value for the
Commit.modified property. |
CommitBuilder |
withRemoved(List<String> value)
Sets the default value for the
Commit.removed property. |
CommitBuilder |
withTimestamp(Date value)
Sets the default value for the
Commit.timestamp property. |
CommitBuilder |
withUrl(String value)
Sets the default value for the
Commit.url property. |
protected CommitBuilder self
protected String value$id$java$lang$String
protected boolean isSet$id$java$lang$String
protected String value$message$java$lang$String
protected boolean isSet$message$java$lang$String
protected Date value$timestamp$java$util$Date
protected boolean isSet$timestamp$java$util$Date
protected String value$url$java$lang$String
protected boolean isSet$url$java$lang$String
protected User value$author$com$dabsquared$gitlabjenkins$gitlab$hook$model$User
protected boolean isSet$author$com$dabsquared$gitlabjenkins$gitlab$hook$model$User
protected boolean isSet$added$java$util$List
protected boolean isSet$modified$java$util$List
protected boolean isSet$removed$java$util$List
public CommitBuilder()
CommitBuilder
.public static CommitBuilder commit()
public CommitBuilder withId(String value)
Commit.id
property.value
- the default valuepublic CommitBuilder withMessage(String value)
Commit.message
property.value
- the default valuepublic CommitBuilder withTimestamp(Date value)
Commit.timestamp
property.value
- the default valuepublic CommitBuilder withUrl(String value)
Commit.url
property.value
- the default valuepublic CommitBuilder withAuthor(User value)
Commit.author
property.value
- the default valuepublic CommitBuilder withAdded(List<String> value)
Commit.added
property.value
- the default valuepublic CommitBuilder withModified(List<String> value)
Commit.modified
property.value
- the default valuepublic CommitBuilder withRemoved(List<String> value)
Commit.removed
property.value
- the default valuepublic Object clone()
public CommitBuilder but()
Copyright © 2016. All rights reserved.