Class PipelineHookBuilder
- java.lang.Object
-
- com.gitee.jenkins.gitee.hook.model.builder.generated.PipelineHookBuilder
-
- All Implemented Interfaces:
Cloneable
@Generated("PojoBuilder") public class PipelineHookBuilder extends Object implements Cloneable
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description PipelineHookBuilder()
Creates a newPipelineHookBuilder
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PipelineHook
build()
Creates a newPipelineHook
based on this builder's settings.PipelineHookBuilder
but()
Returns a clone of this builder.Object
clone()
Returns a clone of this builder.static PipelineHookBuilder
pipelineHook()
Factory Method to construct a PipelineHookBuilderPipelineHookBuilder
withCommits(List<Commit> value)
Sets the default value for the commits property.PipelineHookBuilder
withHookName(String value)
Sets the default value for the hookName property.PipelineHookBuilder
withJsonBody(String value)
Sets the default value for the jsonBody property.PipelineHookBuilder
withObjectAttributes(PipelineEventObjectAttributes value)
Sets the default value for the objectAttributes property.PipelineHookBuilder
withObjectKind(String value)
Sets the default value for the objectKind property.PipelineHookBuilder
withProject(Project value)
Sets the default value for the project property.PipelineHookBuilder
withProjectId(Integer value)
Sets the default value for thePipelineHook.projectId
property.PipelineHookBuilder
withRepository(Repository value)
Sets the default value for the repository property.PipelineHookBuilder
withSender(User value)
Sets the default value for the sender property.PipelineHookBuilder
withUser(User value)
Sets the default value for the user property.
-
-
-
Field Detail
-
self
protected PipelineHookBuilder self
-
value$projectId$java$lang$Integer
protected Integer value$projectId$java$lang$Integer
-
isSet$projectId$java$lang$Integer
protected boolean isSet$projectId$java$lang$Integer
-
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$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
-
isSet$commits$java$util$List
protected boolean isSet$commits$java$util$List
-
value$project$com$gitee$jenkins$gitee$hook$model$Project
protected Project 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$objectAttributes$com$gitee$jenkins$gitee$hook$model$PipelineEventObjectAttributes
protected PipelineEventObjectAttributes value$objectAttributes$com$gitee$jenkins$gitee$hook$model$PipelineEventObjectAttributes
-
isSet$objectAttributes$com$gitee$jenkins$gitee$hook$model$PipelineEventObjectAttributes
protected boolean isSet$objectAttributes$com$gitee$jenkins$gitee$hook$model$PipelineEventObjectAttributes
-
-
Constructor Detail
-
PipelineHookBuilder
public PipelineHookBuilder()
Creates a newPipelineHookBuilder
.
-
-
Method Detail
-
pipelineHook
public static PipelineHookBuilder pipelineHook()
Factory Method to construct a PipelineHookBuilder- Returns:
- a new PipelineHookBuilder
-
withProjectId
public PipelineHookBuilder withProjectId(Integer value)
Sets the default value for thePipelineHook.projectId
property.- Parameters:
value
- the default value- Returns:
- this builder
-
withJsonBody
public PipelineHookBuilder withJsonBody(String value)
Sets the default value for the jsonBody property.- Parameters:
value
- the default value- Returns:
- this builder
-
withHookName
public PipelineHookBuilder withHookName(String value)
Sets the default value for the hookName property.- Parameters:
value
- the default value- Returns:
- this builder
-
withObjectKind
public PipelineHookBuilder withObjectKind(String value)
Sets the default value for the objectKind property.- Parameters:
value
- the default value- Returns:
- this builder
-
withRepository
public PipelineHookBuilder withRepository(Repository value)
Sets the default value for the repository property.- Parameters:
value
- the default value- Returns:
- this builder
-
withSender
public PipelineHookBuilder withSender(User value)
Sets the default value for the sender property.- Parameters:
value
- the default value- Returns:
- this builder
-
withUser
public PipelineHookBuilder withUser(User value)
Sets the default value for the user property.- Parameters:
value
- the default value- Returns:
- this builder
-
withCommits
public PipelineHookBuilder withCommits(List<Commit> value)
Sets the default value for the commits property.- Parameters:
value
- the default value- Returns:
- this builder
-
withProject
public PipelineHookBuilder withProject(Project value)
Sets the default value for the project property.- Parameters:
value
- the default value- Returns:
- this builder
-
withObjectAttributes
public PipelineHookBuilder withObjectAttributes(PipelineEventObjectAttributes value)
Sets the default value for the objectAttributes property.- Parameters:
value
- the default value- Returns:
- this builder
-
clone
@GwtIncompatible public Object clone()
Returns a clone of this builder.
-
but
@GwtIncompatible public PipelineHookBuilder but()
Returns a clone of this builder.- Returns:
- the clone
-
build
public PipelineHook build()
Creates a newPipelineHook
based on this builder's settings.- Returns:
- the created PipelineHook
-
-