Class CauseDataBuilder
java.lang.Object
com.dabsquared.gitlabjenkins.cause.CauseDataBuilder
- 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 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 boolean
protected boolean
protected boolean
protected boolean
protected boolean
protected boolean
protected boolean
protected CauseDataBuilder
protected CauseData.ActionType
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected Integer
protected Integer
protected String
protected Integer
protected String
protected String
protected String
protected String
protected String
protected Integer
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected Integer
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Creates a newCauseData
based on this builder's settings.but()
Returns a clone of this builder.static CauseDataBuilder
Factory Method to construct a CauseDataBuilderclone()
Returns a clone of this builder.Sets the default value for the actionType property.Sets the default value for the after property.withBefore
(String value) Sets the default value for the before property.withBeforeSha
(String value) Sets the default value for the beforeSha property.withBranch
(String value) Sets the default value for the branch property.withBuildDuration
(String value) Sets the default value for the buildDuration property.withCommentAuthor
(String value) Sets the default value for the commentAuthor property.withCreatedAt
(String value) Sets the default value for the createdAt property.withFinishedAt
(String value) Sets the default value for the finishedAt property.Sets the default value for the isTag property.withLastCommit
(String value) Sets the default value for the lastCommit property.withMergeCommitSha
(String value) Sets the default value for the mergeCommitSha property.withMergedByUser
(String value) Sets the default value for the mergedByUser property.withMergeRequestAssignee
(String value) Sets the default value for the mergeRequestAssignee property.Sets the default value for the mergeRequestDescription property.withMergeRequestId
(Integer value) Sets the default value for the mergeRequestId property.withMergeRequestIid
(Integer value) Sets the default value for the mergeRequestIid property.withMergeRequestLabels
(List<String> value) Sets the default value for the mergeRequestLabels property.withMergeRequestState
(String value) Sets the default value for the mergeRequestState property.Sets the default value for the mergeRequestTargetProjectId property.withMergeRequestTitle
(String value) Sets the default value for the mergeRequestTitle property.Sets the default value for the ref property.Sets the default value for the sha property.withSourceBranch
(String value) Sets the default value for the sourceBranch property.withSourceNamespace
(String value) Sets the default value for the sourceNamespace property.withSourceProjectId
(Integer value) Sets the default value for the sourceProjectId property.withSourceRepoHomepage
(String value) Sets the default value for the sourceRepoHomepage property.withSourceRepoHttpUrl
(String value) Sets the default value for the sourceRepoHttpUrl property.withSourceRepoName
(String value) Sets the default value for the sourceRepoName property.withSourceRepoSshUrl
(String value) Sets the default value for the sourceRepoSshUrl property.withSourceRepoUrl
(String value) Sets the default value for the sourceRepoUrl property.withStages
(String value) Sets the default value for the stages property.withStatus
(String value) Sets the default value for the status property.withTargetBranch
(String value) Sets the default value for the targetBranch property.withTargetNamespace
(String value) Sets the default value for the targetNamespace property.withTargetProjectId
(Integer value) Sets the default value for the targetProjectId property.withTargetProjectUrl
(String value) Sets the default value for the targetProjectUrl property.withTargetRepoHttpUrl
(String value) Sets the default value for the targetRepoHttpUrl property.withTargetRepoName
(String value) Sets the default value for the targetRepoName property.withTargetRepoSshUrl
(String value) Sets the default value for the targetRepoSshUrl property.withTriggeredByUser
(String value) Sets the default value for the triggeredByUser property.withTriggerPhrase
(String value) Sets the default value for the triggerPhrase property.withUserEmail
(String value) Sets the default value for the userEmail property.withUserName
(String value) Sets the default value for the userName property.withUserUsername
(String value) Sets the default value for the userUsername property.
-
Field Details
-
self
-
value$actionType$com$dabsquared$gitlabjenkins$cause$CauseData$ActionType
protected CauseData.ActionType value$actionType$com$dabsquared$gitlabjenkins$cause$CauseData$ActionType -
isSet$actionType$com$dabsquared$gitlabjenkins$cause$CauseData$ActionType
protected boolean isSet$actionType$com$dabsquared$gitlabjenkins$cause$CauseData$ActionType -
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$branch$java$lang$String
-
isSet$branch$java$lang$String
protected boolean isSet$branch$java$lang$String -
value$sourceBranch$java$lang$String
-
isSet$sourceBranch$java$lang$String
protected boolean isSet$sourceBranch$java$lang$String -
value$userName$java$lang$String
-
isSet$userName$java$lang$String
protected boolean isSet$userName$java$lang$String -
value$userUsername$java$lang$String
-
isSet$userUsername$java$lang$String
protected boolean isSet$userUsername$java$lang$String -
value$userEmail$java$lang$String
-
isSet$userEmail$java$lang$String
protected boolean isSet$userEmail$java$lang$String -
value$sourceRepoHomepage$java$lang$String
-
isSet$sourceRepoHomepage$java$lang$String
protected boolean isSet$sourceRepoHomepage$java$lang$String -
value$sourceRepoName$java$lang$String
-
isSet$sourceRepoName$java$lang$String
protected boolean isSet$sourceRepoName$java$lang$String -
value$sourceNamespace$java$lang$String
-
isSet$sourceNamespace$java$lang$String
protected boolean isSet$sourceNamespace$java$lang$String -
value$sourceRepoUrl$java$lang$String
-
isSet$sourceRepoUrl$java$lang$String
protected boolean isSet$sourceRepoUrl$java$lang$String -
value$sourceRepoSshUrl$java$lang$String
-
isSet$sourceRepoSshUrl$java$lang$String
protected boolean isSet$sourceRepoSshUrl$java$lang$String -
value$sourceRepoHttpUrl$java$lang$String
-
isSet$sourceRepoHttpUrl$java$lang$String
protected boolean isSet$sourceRepoHttpUrl$java$lang$String -
value$mergeCommitSha$java$lang$String
-
isSet$mergeCommitSha$java$lang$String
protected boolean isSet$mergeCommitSha$java$lang$String -
value$mergeRequestTitle$java$lang$String
-
isSet$mergeRequestTitle$java$lang$String
protected boolean isSet$mergeRequestTitle$java$lang$String -
value$mergeRequestDescription$java$lang$String
-
isSet$mergeRequestDescription$java$lang$String
protected boolean isSet$mergeRequestDescription$java$lang$String -
value$mergeRequestId$java$lang$Integer
-
isSet$mergeRequestId$java$lang$Integer
protected boolean isSet$mergeRequestId$java$lang$Integer -
value$mergeRequestIid$java$lang$Integer
-
isSet$mergeRequestIid$java$lang$Integer
protected boolean isSet$mergeRequestIid$java$lang$Integer -
value$mergeRequestTargetProjectId$java$lang$Integer
-
isSet$mergeRequestTargetProjectId$java$lang$Integer
protected boolean isSet$mergeRequestTargetProjectId$java$lang$Integer -
value$mergeRequestLabels$java$util$List
-
isSet$mergeRequestLabels$java$util$List
protected boolean isSet$mergeRequestLabels$java$util$List -
value$targetBranch$java$lang$String
-
isSet$targetBranch$java$lang$String
protected boolean isSet$targetBranch$java$lang$String -
value$targetRepoName$java$lang$String
-
isSet$targetRepoName$java$lang$String
protected boolean isSet$targetRepoName$java$lang$String -
value$targetNamespace$java$lang$String
-
isSet$targetNamespace$java$lang$String
protected boolean isSet$targetNamespace$java$lang$String -
value$targetRepoSshUrl$java$lang$String
-
isSet$targetRepoSshUrl$java$lang$String
protected boolean isSet$targetRepoSshUrl$java$lang$String -
value$targetRepoHttpUrl$java$lang$String
-
isSet$targetRepoHttpUrl$java$lang$String
protected boolean isSet$targetRepoHttpUrl$java$lang$String -
value$triggeredByUser$java$lang$String
-
isSet$triggeredByUser$java$lang$String
protected boolean isSet$triggeredByUser$java$lang$String -
value$before$java$lang$String
-
isSet$before$java$lang$String
protected boolean isSet$before$java$lang$String -
value$after$java$lang$String
-
isSet$after$java$lang$String
protected boolean isSet$after$java$lang$String -
value$lastCommit$java$lang$String
-
isSet$lastCommit$java$lang$String
protected boolean isSet$lastCommit$java$lang$String -
value$targetProjectUrl$java$lang$String
-
isSet$targetProjectUrl$java$lang$String
protected boolean isSet$targetProjectUrl$java$lang$String -
value$triggerPhrase$java$lang$String
-
isSet$triggerPhrase$java$lang$String
protected boolean isSet$triggerPhrase$java$lang$String -
value$mergeRequestState$java$lang$String
-
isSet$mergeRequestState$java$lang$String
protected boolean isSet$mergeRequestState$java$lang$String -
value$mergedByUser$java$lang$String
-
isSet$mergedByUser$java$lang$String
protected boolean isSet$mergedByUser$java$lang$String -
value$mergeRequestAssignee$java$lang$String
-
isSet$mergeRequestAssignee$java$lang$String
protected boolean isSet$mergeRequestAssignee$java$lang$String -
value$ref$java$lang$String
-
isSet$ref$java$lang$String
protected boolean isSet$ref$java$lang$String -
value$isTag$java$lang$String
-
isSet$isTag$java$lang$String
protected boolean isSet$isTag$java$lang$String -
value$sha$java$lang$String
-
isSet$sha$java$lang$String
protected boolean isSet$sha$java$lang$String -
value$beforeSha$java$lang$String
-
isSet$beforeSha$java$lang$String
protected boolean isSet$beforeSha$java$lang$String -
value$status$java$lang$String
-
isSet$status$java$lang$String
protected boolean isSet$status$java$lang$String -
value$stages$java$lang$String
-
isSet$stages$java$lang$String
protected boolean isSet$stages$java$lang$String -
value$createdAt$java$lang$String
-
isSet$createdAt$java$lang$String
protected boolean isSet$createdAt$java$lang$String -
value$finishedAt$java$lang$String
-
isSet$finishedAt$java$lang$String
protected boolean isSet$finishedAt$java$lang$String -
value$buildDuration$java$lang$String
-
isSet$buildDuration$java$lang$String
protected boolean isSet$buildDuration$java$lang$String -
value$commentAuthor$java$lang$String
-
isSet$commentAuthor$java$lang$String
protected boolean isSet$commentAuthor$java$lang$String
-
-
Constructor Details
-
CauseDataBuilder
public CauseDataBuilder()Creates a newCauseDataBuilder
.
-
-
Method Details
-
causeData
Factory Method to construct a CauseDataBuilder- Returns:
- a new CauseDataBuilder
-
withActionType
Sets the default value for the actionType 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
-
withBranch
Sets the default value for the branch 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
-
withUserName
Sets the default value for the userName property.- Parameters:
value
- the default value- Returns:
- this builder
-
withUserUsername
Sets the default value for the userUsername property.- Parameters:
value
- the default value- Returns:
- this builder
-
withUserEmail
Sets the default value for the userEmail property.- Parameters:
value
- the default value- Returns:
- this builder
-
withSourceRepoHomepage
Sets the default value for the sourceRepoHomepage property.- Parameters:
value
- the default value- Returns:
- this builder
-
withSourceRepoName
Sets the default value for the sourceRepoName property.- Parameters:
value
- the default value- Returns:
- this builder
-
withSourceNamespace
Sets the default value for the sourceNamespace property.- Parameters:
value
- the default value- Returns:
- this builder
-
withSourceRepoUrl
Sets the default value for the sourceRepoUrl property.- Parameters:
value
- the default value- Returns:
- this builder
-
withSourceRepoSshUrl
Sets the default value for the sourceRepoSshUrl property.- Parameters:
value
- the default value- Returns:
- this builder
-
withSourceRepoHttpUrl
Sets the default value for the sourceRepoHttpUrl property.- Parameters:
value
- the default value- Returns:
- this builder
-
withMergeCommitSha
Sets the default value for the mergeCommitSha property.- Parameters:
value
- the default value- Returns:
- this builder
-
withMergeRequestTitle
Sets the default value for the mergeRequestTitle property.- Parameters:
value
- the default value- Returns:
- this builder
-
withMergeRequestDescription
Sets the default value for the mergeRequestDescription property.- Parameters:
value
- the default value- Returns:
- this builder
-
withMergeRequestId
Sets the default value for the mergeRequestId property.- Parameters:
value
- the default value- Returns:
- this builder
-
withMergeRequestIid
Sets the default value for the mergeRequestIid property.- Parameters:
value
- the default value- Returns:
- this builder
-
withMergeRequestTargetProjectId
Sets the default value for the mergeRequestTargetProjectId property.- Parameters:
value
- the default value- Returns:
- this builder
-
withMergeRequestLabels
Sets the default value for the mergeRequestLabels 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
-
withTargetRepoName
Sets the default value for the targetRepoName property.- Parameters:
value
- the default value- Returns:
- this builder
-
withTargetNamespace
Sets the default value for the targetNamespace property.- Parameters:
value
- the default value- Returns:
- this builder
-
withTargetRepoSshUrl
Sets the default value for the targetRepoSshUrl property.- Parameters:
value
- the default value- Returns:
- this builder
-
withTargetRepoHttpUrl
Sets the default value for the targetRepoHttpUrl property.- Parameters:
value
- the default value- Returns:
- this builder
-
withTriggeredByUser
Sets the default value for the triggeredByUser property.- Parameters:
value
- the default value- Returns:
- this builder
-
withBefore
Sets the default value for the before property.- Parameters:
value
- the default value- Returns:
- this builder
-
withAfter
Sets the default value for the after property.- Parameters:
value
- the default value- Returns:
- this builder
-
withLastCommit
Sets the default value for the lastCommit property.- Parameters:
value
- the default value- Returns:
- this builder
-
withTargetProjectUrl
Sets the default value for the targetProjectUrl property.- Parameters:
value
- the default value- Returns:
- this builder
-
withTriggerPhrase
Sets the default value for the triggerPhrase property.- Parameters:
value
- the default value- Returns:
- this builder
-
withMergeRequestState
Sets the default value for the mergeRequestState property.- Parameters:
value
- the default value- Returns:
- this builder
-
withMergedByUser
Sets the default value for the mergedByUser property.- Parameters:
value
- the default value- Returns:
- this builder
-
withMergeRequestAssignee
Sets the default value for the mergeRequestAssignee property.- Parameters:
value
- the default value- Returns:
- this builder
-
withRef
Sets the default value for the ref property.- Parameters:
value
- the default value- Returns:
- this builder
-
withIsTag
Sets the default value for the isTag property.- Parameters:
value
- the default value- Returns:
- this builder
-
withSha
Sets the default value for the sha property.- Parameters:
value
- the default value- Returns:
- this builder
-
withBeforeSha
Sets the default value for the beforeSha property.- Parameters:
value
- the default value- Returns:
- this builder
-
withStatus
Sets the default value for the status property.- Parameters:
value
- the default value- Returns:
- this builder
-
withStages
Sets the default value for the stages property.- Parameters:
value
- the default value- Returns:
- this builder
-
withCreatedAt
Sets the default value for the createdAt property.- Parameters:
value
- the default value- Returns:
- this builder
-
withFinishedAt
Sets the default value for the finishedAt property.- Parameters:
value
- the default value- Returns:
- this builder
-
withBuildDuration
Sets the default value for the buildDuration property.- Parameters:
value
- the default value- Returns:
- this builder
-
withCommentAuthor
Sets the default value for the commentAuthor 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 newCauseData
based on this builder's settings.- Returns:
- the created CauseData
-