Class MergeRequestBuilder
java.lang.Object
com.dabsquared.gitlabjenkins.gitlab.api.model.builder.generated.MergeRequestBuilder
- 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 boolean
protected boolean
protected boolean
protected boolean
protected boolean
protected MergeRequestBuilder
protected User
protected User
protected String
protected String
protected Integer
protected Integer
protected Integer
protected String
protected Boolean
protected Integer
protected String
protected Integer
protected State
protected String
protected Integer
protected String
protected Integer
protected Boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Creates a newMergeRequest
based on this builder's settings.but()
Returns a clone of this builder.clone()
Returns a clone of this builder.static MergeRequestBuilder
Factory Method to construct a MergeRequestBuilderwithAssignee
(User value) Sets the default value for the assignee property.withAuthor
(User value) Sets the default value for the author property.withCommitSha
(String value) Sets the default value for the commitSha property.withDescription
(String value) Sets the default value for the description property.withDownvotes
(Integer value) Sets the default value for the downvotes property.Sets the default value for the id property.Sets the default value for the iid property.withLabels
(List<String> value) Sets the default value for the labels property.withMergeStatus
(String value) Sets the default value for the mergeStatus property.Sets the default value for the mergeWhenBuildSucceeds property.withProjectId
(Integer value) Sets the default value for the projectId property.withSourceBranch
(String value) Sets the default value for the sourceBranch property.withSourceProjectId
(Integer value) Sets the default value for the sourceProjectId property.Sets the default value for the state property.withTargetBranch
(String value) Sets the default value for the targetBranch property.withTargetProjectId
(Integer value) Sets the default value for the targetProjectId property.Sets the default value for the title property.withUpvotes
(Integer value) Sets the default value for the upvotes property.withWorkInProgress
(Boolean value) Sets the default value for the workInProgress property.
-
Field Details
-
self
-
value$id$java$lang$Integer
-
isSet$id$java$lang$Integer
protected boolean isSet$id$java$lang$Integer -
value$iid$java$lang$Integer
-
isSet$iid$java$lang$Integer
protected boolean isSet$iid$java$lang$Integer -
value$commitSha$java$lang$String
-
isSet$commitSha$java$lang$String
protected boolean isSet$commitSha$java$lang$String -
value$sourceBranch$java$lang$String
-
isSet$sourceBranch$java$lang$String
protected boolean isSet$sourceBranch$java$lang$String -
value$targetBranch$java$lang$String
-
isSet$targetBranch$java$lang$String
protected boolean isSet$targetBranch$java$lang$String -
value$projectId$java$lang$Integer
-
isSet$projectId$java$lang$Integer
protected boolean isSet$projectId$java$lang$Integer -
value$title$java$lang$String
-
isSet$title$java$lang$String
protected boolean isSet$title$java$lang$String -
value$state$com$dabsquared$gitlabjenkins$gitlab$hook$model$State
-
isSet$state$com$dabsquared$gitlabjenkins$gitlab$hook$model$State
protected boolean isSet$state$com$dabsquared$gitlabjenkins$gitlab$hook$model$State -
value$upvotes$java$lang$Integer
-
isSet$upvotes$java$lang$Integer
protected boolean isSet$upvotes$java$lang$Integer -
value$downvotes$java$lang$Integer
-
isSet$downvotes$java$lang$Integer
protected boolean isSet$downvotes$java$lang$Integer -
value$author$com$dabsquared$gitlabjenkins$gitlab$api$model$User
-
isSet$author$com$dabsquared$gitlabjenkins$gitlab$api$model$User
protected boolean isSet$author$com$dabsquared$gitlabjenkins$gitlab$api$model$User -
value$assignee$com$dabsquared$gitlabjenkins$gitlab$api$model$User
-
isSet$assignee$com$dabsquared$gitlabjenkins$gitlab$api$model$User
protected boolean isSet$assignee$com$dabsquared$gitlabjenkins$gitlab$api$model$User -
value$sourceProjectId$java$lang$Integer
-
isSet$sourceProjectId$java$lang$Integer
protected boolean isSet$sourceProjectId$java$lang$Integer -
value$targetProjectId$java$lang$Integer
-
isSet$targetProjectId$java$lang$Integer
protected boolean isSet$targetProjectId$java$lang$Integer -
value$labels$java$util$List
-
isSet$labels$java$util$List
protected boolean isSet$labels$java$util$List -
value$description$java$lang$String
-
isSet$description$java$lang$String
protected boolean isSet$description$java$lang$String -
value$workInProgress$java$lang$Boolean
-
isSet$workInProgress$java$lang$Boolean
protected boolean isSet$workInProgress$java$lang$Boolean -
value$mergeWhenBuildSucceeds$java$lang$Boolean
-
isSet$mergeWhenBuildSucceeds$java$lang$Boolean
protected boolean isSet$mergeWhenBuildSucceeds$java$lang$Boolean -
value$mergeStatus$java$lang$String
-
isSet$mergeStatus$java$lang$String
protected boolean isSet$mergeStatus$java$lang$String
-
-
Constructor Details
-
MergeRequestBuilder
public MergeRequestBuilder()Creates a newMergeRequestBuilder
.
-
-
Method Details
-
mergeRequest
Factory Method to construct a MergeRequestBuilder- Returns:
- a new MergeRequestBuilder
-
withId
Sets the default value for the id property.- Parameters:
value
- the default value- Returns:
- this builder
-
withIid
Sets the default value for the iid property.- Parameters:
value
- the default value- Returns:
- this builder
-
withCommitSha
Sets the default value for the commitSha property.- Parameters:
value
- the default value- Returns:
- this builder
-
withSourceBranch
Sets the default value for the sourceBranch property.- Parameters:
value
- the default value- Returns:
- this builder
-
withTargetBranch
Sets the default value for the targetBranch 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
-
withTitle
Sets the default value for the title property.- Parameters:
value
- the default value- Returns:
- this builder
-
withState
Sets the default value for the state property.- Parameters:
value
- the default value- Returns:
- this builder
-
withUpvotes
Sets the default value for the upvotes property.- Parameters:
value
- the default value- Returns:
- this builder
-
withDownvotes
Sets the default value for the downvotes 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
-
withAssignee
Sets the default value for the assignee property.- Parameters:
value
- the default value- Returns:
- this builder
-
withSourceProjectId
Sets the default value for the sourceProjectId property.- Parameters:
value
- the default value- Returns:
- this builder
-
withTargetProjectId
Sets the default value for the targetProjectId property.- Parameters:
value
- the default value- Returns:
- this builder
-
withLabels
Sets the default value for the labels property.- Parameters:
value
- the default value- Returns:
- this builder
-
withDescription
Sets the default value for the description property.- Parameters:
value
- the default value- Returns:
- this builder
-
withWorkInProgress
Sets the default value for the workInProgress property.- Parameters:
value
- the default value- Returns:
- this builder
-
withMergeWhenBuildSucceeds
Sets the default value for the mergeWhenBuildSucceeds property.- Parameters:
value
- the default value- Returns:
- this builder
-
withMergeStatus
Sets the default value for the mergeStatus 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 newMergeRequest
based on this builder's settings.- Returns:
- the created MergeRequest
-