Class PushHookBuilder
java.lang.Object
com.dabsquared.gitlabjenkins.gitlab.hook.model.builder.generated.PushHookBuilder
- All Implemented Interfaces:
Cloneable
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
protected boolean
protected boolean
protected boolean
protected boolean
protected boolean
protected boolean
protected boolean
protected boolean
protected boolean
protected boolean
protected boolean
protected boolean
protected boolean
protected PushHookBuilder
protected String
protected String
protected String
protected Project
protected Integer
protected String
protected Repository
protected Integer
protected String
protected String
protected Integer
protected String
protected String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Creates a newPushHook
based on this builder's settings.but()
Returns a clone of this builder.clone()
Returns a clone of this builder.static PushHookBuilder
pushHook()
Factory Method to construct a PushHookBuilderSets the default value for the after property.withBefore
(String value) Sets the default value for the before property.withCommits
(List<Commit> value) Sets the default value for the commits property.withObjectKind
(String value) Sets the default value for the objectKind property.withProject
(Project value) Sets the default value for the project property.withProjectId
(Integer value) Sets the default value for the projectId property.Sets the default value for the ref property.withRepository
(Repository value) Sets the default value for the repository property.withTotalCommitsCount
(Integer value) Sets the default value for the totalCommitsCount property.withUserAvatar
(String value) Sets the default value for the userAvatar property.withUserEmail
(String value) Sets the default value for the userEmail property.withUserId
(Integer value) Sets the default value for the userId property.withUserName
(String value) Sets the default value for the userName property.withUserUsername
(String value) Sets the default value for the userUsername property.
-
Field Details
-
self
-
value$objectKind$java$lang$String
-
isSet$objectKind$java$lang$String
protected boolean isSet$objectKind$java$lang$String -
value$repository$com$dabsquared$gitlabjenkins$gitlab$hook$model$Repository
-
isSet$repository$com$dabsquared$gitlabjenkins$gitlab$hook$model$Repository
protected boolean isSet$repository$com$dabsquared$gitlabjenkins$gitlab$hook$model$Repository -
value$before$java$lang$String
-
isSet$before$java$lang$String
protected boolean isSet$before$java$lang$String -
value$after$java$lang$String
-
isSet$after$java$lang$String
protected boolean isSet$after$java$lang$String -
value$ref$java$lang$String
-
isSet$ref$java$lang$String
protected boolean isSet$ref$java$lang$String -
value$userId$java$lang$Integer
-
isSet$userId$java$lang$Integer
protected boolean isSet$userId$java$lang$Integer -
value$userName$java$lang$String
-
isSet$userName$java$lang$String
protected boolean isSet$userName$java$lang$String -
value$userUsername$java$lang$String
-
isSet$userUsername$java$lang$String
protected boolean isSet$userUsername$java$lang$String -
value$userEmail$java$lang$String
-
isSet$userEmail$java$lang$String
protected boolean isSet$userEmail$java$lang$String -
value$userAvatar$java$lang$String
-
isSet$userAvatar$java$lang$String
protected boolean isSet$userAvatar$java$lang$String -
value$projectId$java$lang$Integer
-
isSet$projectId$java$lang$Integer
protected boolean isSet$projectId$java$lang$Integer -
value$project$com$dabsquared$gitlabjenkins$gitlab$hook$model$Project
-
isSet$project$com$dabsquared$gitlabjenkins$gitlab$hook$model$Project
protected boolean isSet$project$com$dabsquared$gitlabjenkins$gitlab$hook$model$Project -
value$commits$java$util$List
-
isSet$commits$java$util$List
protected boolean isSet$commits$java$util$List -
value$totalCommitsCount$java$lang$Integer
-
isSet$totalCommitsCount$java$lang$Integer
protected boolean isSet$totalCommitsCount$java$lang$Integer
-
-
Constructor Details
-
PushHookBuilder
public PushHookBuilder()Creates a newPushHookBuilder
.
-
-
Method Details
-
pushHook
Factory Method to construct a PushHookBuilder- Returns:
- a new PushHookBuilder
-
withObjectKind
Sets the default value for the objectKind property.- Parameters:
value
- the default value- Returns:
- this builder
-
withRepository
Sets the default value for the repository property.- Parameters:
value
- the default value- Returns:
- this builder
-
withBefore
Sets the default value for the before property.- Parameters:
value
- the default value- Returns:
- this builder
-
withAfter
Sets the default value for the after property.- Parameters:
value
- the default value- Returns:
- this builder
-
withRef
Sets the default value for the ref property.- Parameters:
value
- the default value- Returns:
- this builder
-
withUserId
Sets the default value for the userId property.- Parameters:
value
- the default value- Returns:
- this builder
-
withUserName
Sets the default value for the userName property.- Parameters:
value
- the default value- Returns:
- this builder
-
withUserUsername
Sets the default value for the userUsername property.- Parameters:
value
- the default value- Returns:
- this builder
-
withUserEmail
Sets the default value for the userEmail property.- Parameters:
value
- the default value- Returns:
- this builder
-
withUserAvatar
Sets the default value for the userAvatar property.- Parameters:
value
- the default value- Returns:
- this builder
-
withProjectId
Sets the default value for the projectId property.- Parameters:
value
- the default value- Returns:
- this builder
-
withProject
Sets the default value for the project property.- Parameters:
value
- the default value- Returns:
- this builder
-
withCommits
Sets the default value for the commits property.- Parameters:
value
- the default value- Returns:
- this builder
-
withTotalCommitsCount
Sets the default value for the totalCommitsCount 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 newPushHook
based on this builder's settings.- Returns:
- the created PushHook
-