Class PipelineHookBuilder
java.lang.Object
com.dabsquared.gitlabjenkins.gitlab.hook.model.builder.generated.PipelineHookBuilder
- All Implemented Interfaces:
Cloneable
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
protected boolean
protected boolean
protected boolean
protected boolean
protected boolean
protected boolean
protected PipelineHookBuilder
protected PipelineEventObjectAttributes
protected String
protected Project
protected Integer
protected Repository
protected User
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Creates a newPipelineHook
based on this builder's settings.but()
Returns a clone of this builder.clone()
Returns a clone of this builder.static PipelineHookBuilder
Factory Method to construct a PipelineHookBuilderwithCommits
(List<Commit> value) Sets the default value for the commits property.Sets the default value for the objectAttributes 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 thePipelineHook.projectId
property.withRepository
(Repository value) Sets the default value for the repository property.Sets the default value for the user property.
-
Field Details
-
self
-
value$projectId$java$lang$Integer
-
isSet$projectId$java$lang$Integer
protected boolean isSet$projectId$java$lang$Integer -
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$user$com$dabsquared$gitlabjenkins$gitlab$hook$model$User
-
isSet$user$com$dabsquared$gitlabjenkins$gitlab$hook$model$User
protected boolean isSet$user$com$dabsquared$gitlabjenkins$gitlab$hook$model$User -
value$commits$java$util$List
-
isSet$commits$java$util$List
protected boolean isSet$commits$java$util$List -
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$objectAttributes$com$dabsquared$gitlabjenkins$gitlab$hook$model$PipelineEventObjectAttributes
protected PipelineEventObjectAttributes value$objectAttributes$com$dabsquared$gitlabjenkins$gitlab$hook$model$PipelineEventObjectAttributes -
isSet$objectAttributes$com$dabsquared$gitlabjenkins$gitlab$hook$model$PipelineEventObjectAttributes
protected boolean isSet$objectAttributes$com$dabsquared$gitlabjenkins$gitlab$hook$model$PipelineEventObjectAttributes
-
-
Constructor Details
-
PipelineHookBuilder
public PipelineHookBuilder()Creates a newPipelineHookBuilder
.
-
-
Method Details
-
pipelineHook
Factory Method to construct a PipelineHookBuilder- Returns:
- a new PipelineHookBuilder
-
withProjectId
Sets the default value for thePipelineHook.projectId
property.- Parameters:
value
- the default value- Returns:
- this builder
-
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
-
withUser
Sets the default value for the user 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
-
withProject
Sets the default value for the project property.- Parameters:
value
- the default value- Returns:
- this builder
-
withObjectAttributes
Sets the default value for the objectAttributes 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 newPipelineHook
based on this builder's settings.- Returns:
- the created PipelineHook
-