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