Class NoteHookBuilder
java.lang.Object
com.gitee.jenkins.gitee.hook.model.builder.generated.NoteHookBuilder
- 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 NoteHookBuilder
protected NoteAction
protected NoteObjectAttributes
protected String
protected String
protected String
protected Project
protected PullRequestObjectAttributes
protected Repository
protected User
protected User
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Creates a newNoteHook
based on this builder's settings.but()
Returns a clone of this builder.clone()
Returns a clone of this builder.static NoteHookBuilder
noteHook()
Factory Method to construct a NoteHookBuilderwithAction
(NoteAction value) Sets the default value for the action property.withComment
(NoteObjectAttributes value) Sets the default value for the comment property.withHookName
(String value) Sets the default value for the hookName property.withJsonBody
(String value) Sets the default value for the jsonBody property.withObjectKind
(String value) Sets the default value for the objectKind property.withProject
(Project value) Sets the default value for the project property.Sets the default value for the pullRequest 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 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$NoteAction
-
isSet$action$com$gitee$jenkins$gitee$hook$model$NoteAction
protected boolean isSet$action$com$gitee$jenkins$gitee$hook$model$NoteAction -
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$project$com$gitee$jenkins$gitee$hook$model$Project
-
isSet$project$com$gitee$jenkins$gitee$hook$model$Project
protected boolean isSet$project$com$gitee$jenkins$gitee$hook$model$Project -
value$comment$com$gitee$jenkins$gitee$hook$model$NoteObjectAttributes
protected NoteObjectAttributes value$comment$com$gitee$jenkins$gitee$hook$model$NoteObjectAttributes -
isSet$comment$com$gitee$jenkins$gitee$hook$model$NoteObjectAttributes
protected boolean isSet$comment$com$gitee$jenkins$gitee$hook$model$NoteObjectAttributes -
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
-
-
Constructor Details
-
NoteHookBuilder
public NoteHookBuilder()Creates a newNoteHookBuilder
.
-
-
Method Details
-
noteHook
Factory Method to construct a NoteHookBuilder- Returns:
- a new NoteHookBuilder
-
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
-
withUser
Sets the default value for the user 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
-
withComment
Sets the default value for the comment 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
-
clone
Returns a clone of this builder. -
but
Returns a clone of this builder.- Returns:
- the clone
-
build
Creates a newNoteHook
based on this builder's settings.- Returns:
- the created NoteHook
-