Class PullRequestHookBuilder
java.lang.Object
com.gitee.jenkins.gitee.hook.model.builder.generated.PullRequestHookBuilder
- All Implemented Interfaces:
Cloneable
-
Field Summary
FieldsModifier 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 PullRequestHookBuilder
protected Action
protected ActionDesc
protected User
protected String
protected String
protected List<PullRequestLabel>
protected String
protected PullRequestObjectAttributes
protected Project
protected Repository
protected User
protected State
protected User
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Creates a newPullRequestHook
based on this builder's settings.but()
Returns a clone of this builder.clone()
Returns a clone of this builder.static PullRequestHookBuilder
Factory Method to construct a PullRequestHookBuilderwithAction
(Action value) Sets the default value for the action property.withActionDesc
(ActionDesc value) Sets the default value for the actionDesc property.withAssignee
(User value) Sets the default value for the assignee property.withHookName
(String value) Sets the default value for the hookName property.withJsonBody
(String value) Sets the default value for the jsonBody property.withLabels
(List<PullRequestLabel> value) Sets the default value for the labels property.withObjectKind
(String value) Sets the default value for the objectKind property.Sets the default value for the pullRequest property.Sets the default value for the repo property.withRepository
(Repository value) Sets the default value for the repository property.withSender
(User value) Sets the default value for the sender property.Sets the default value for the state property.Sets the default value for the user property.
-
Field Details
-
self
-
value$jsonBody$java$lang$String
-
isSet$jsonBody$java$lang$String
protected boolean isSet$jsonBody$java$lang$String -
value$hookName$java$lang$String
-
isSet$hookName$java$lang$String
protected boolean isSet$hookName$java$lang$String -
value$objectKind$java$lang$String
-
isSet$objectKind$java$lang$String
protected boolean isSet$objectKind$java$lang$String -
value$repository$com$gitee$jenkins$gitee$hook$model$Repository
-
isSet$repository$com$gitee$jenkins$gitee$hook$model$Repository
protected boolean isSet$repository$com$gitee$jenkins$gitee$hook$model$Repository -
value$sender$com$gitee$jenkins$gitee$hook$model$User
-
isSet$sender$com$gitee$jenkins$gitee$hook$model$User
protected boolean isSet$sender$com$gitee$jenkins$gitee$hook$model$User -
value$action$com$gitee$jenkins$gitee$hook$model$Action
-
isSet$action$com$gitee$jenkins$gitee$hook$model$Action
protected boolean isSet$action$com$gitee$jenkins$gitee$hook$model$Action -
value$actionDesc$com$gitee$jenkins$gitee$hook$model$ActionDesc
-
isSet$actionDesc$com$gitee$jenkins$gitee$hook$model$ActionDesc
protected boolean isSet$actionDesc$com$gitee$jenkins$gitee$hook$model$ActionDesc -
value$state$com$gitee$jenkins$gitee$hook$model$State
-
isSet$state$com$gitee$jenkins$gitee$hook$model$State
protected boolean isSet$state$com$gitee$jenkins$gitee$hook$model$State -
value$user$com$gitee$jenkins$gitee$hook$model$User
-
isSet$user$com$gitee$jenkins$gitee$hook$model$User
protected boolean isSet$user$com$gitee$jenkins$gitee$hook$model$User -
value$assignee$com$gitee$jenkins$gitee$hook$model$User
-
isSet$assignee$com$gitee$jenkins$gitee$hook$model$User
protected boolean isSet$assignee$com$gitee$jenkins$gitee$hook$model$User -
value$repo$com$gitee$jenkins$gitee$hook$model$Project
-
isSet$repo$com$gitee$jenkins$gitee$hook$model$Project
protected boolean isSet$repo$com$gitee$jenkins$gitee$hook$model$Project -
value$pullRequest$com$gitee$jenkins$gitee$hook$model$PullRequestObjectAttributes
protected PullRequestObjectAttributes value$pullRequest$com$gitee$jenkins$gitee$hook$model$PullRequestObjectAttributes -
isSet$pullRequest$com$gitee$jenkins$gitee$hook$model$PullRequestObjectAttributes
protected boolean isSet$pullRequest$com$gitee$jenkins$gitee$hook$model$PullRequestObjectAttributes -
value$labels$java$util$List
-
isSet$labels$java$util$List
protected boolean isSet$labels$java$util$List
-
-
Constructor Details
-
PullRequestHookBuilder
public PullRequestHookBuilder()Creates a newPullRequestHookBuilder
.
-
-
Method Details
-
pullRequestHook
Factory Method to construct a PullRequestHookBuilder- Returns:
- a new PullRequestHookBuilder
-
withJsonBody
Sets the default value for the jsonBody property.- Parameters:
value
- the default value- Returns:
- this builder
-
withHookName
Sets the default value for the hookName 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
-
withSender
Sets the default value for the sender property.- Parameters:
value
- the default value- Returns:
- this builder
-
withAction
Sets the default value for the action property.- Parameters:
value
- the default value- Returns:
- this builder
-
withActionDesc
Sets the default value for the actionDesc 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
-
withUser
Sets the default value for the user 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
-
withRepo
Sets the default value for the repo property.- Parameters:
value
- the default value- Returns:
- this builder
-
withPullRequest
Sets the default value for the pullRequest 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
-
clone
Returns a clone of this builder. -
but
Returns a clone of this builder.- Returns:
- the clone
-
build
Creates a newPullRequestHook
based on this builder's settings.- Returns:
- the created PullRequestHook
-