Class GiteePushTriggerBuilder
- java.lang.Object
-
- com.gitee.jenkins.trigger.builder.generated.GiteePushTriggerBuilder
-
- All Implemented Interfaces:
Cloneable
@Generated("PojoBuilder") public class GiteePushTriggerBuilder extends Object implements Cloneable
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description GiteePushTriggerBuilder()
Creates a newGiteePushTriggerBuilder
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GiteePushTrigger
build()
Creates a newGiteePushTrigger
based on this builder's settings.GiteePushTriggerBuilder
but()
Returns a clone of this builder.Object
clone()
Returns a clone of this builder.static GiteePushTriggerBuilder
giteePushTrigger()
Factory Method to construct a GiteePushTriggerBuilderGiteePushTriggerBuilder
withAcceptPullRequestOnSuccess(boolean value)
Sets the default value for the acceptPullRequestOnSuccess property.GiteePushTriggerBuilder
withAddCiMessage(boolean value)
Sets the default value for the addCiMessage property.GiteePushTriggerBuilder
withAddNoteOnPullRequest(boolean value)
Sets the default value for the addNoteOnPullRequest property.GiteePushTriggerBuilder
withAddVoteOnPullRequest(boolean value)
Sets the default value for the addVoteOnPullRequest property.GiteePushTriggerBuilder
withBranchFilterName(String value)
Sets the default value for the branchFilterName property.GiteePushTriggerBuilder
withBranchFilterType(BranchFilterType value)
Sets the default value for the branchFilterType property.GiteePushTriggerBuilder
withBuildInstructionFilterType(BuildInstructionFilterType value)
Sets the default value for the buildInstructionFilterType property.GiteePushTriggerBuilder
withCancelIncompleteBuildOnSamePullRequest(boolean value)
Sets the default value for the cancelIncompleteBuildOnSamePullRequest property.GiteePushTriggerBuilder
withCancelPendingBuildsOnUpdate(boolean value)
Sets the default value for the cancelPendingBuildsOnUpdate property.GiteePushTriggerBuilder
withCiBuildForDeleteRef(boolean value)
Sets the default value for the ciBuildForDeleteRef property.GiteePushTriggerBuilder
withCiSkip(boolean value)
Sets the default value for the ciSkip property.GiteePushTriggerBuilder
withCiSkipFroTestNotRequired(boolean value)
Sets the default value for the ciSkipFroTestNotRequired property.GiteePushTriggerBuilder
withExcludeBranchesSpec(String value)
Sets the default value for the excludeBranchesSpec property.GiteePushTriggerBuilder
withIgnorePullRequestConflicts(boolean value)
Sets the default value for the ignorePullRequestConflicts property.GiteePushTriggerBuilder
withIncludeBranchesSpec(String value)
Sets the default value for the includeBranchesSpec property.GiteePushTriggerBuilder
withNoteRegex(String value)
Sets the default value for the noteRegex property.GiteePushTriggerBuilder
withPendingBuildName(String value)
Sets the default value for the pendingBuildName property.GiteePushTriggerBuilder
withPullRequestLabelFilterConfig(PullRequestLabelFilterConfig value)
Sets the default value for the pullRequestLabelFilterConfig property.GiteePushTriggerBuilder
withSecretToken(String value)
Sets the default value for the secretToken property.GiteePushTriggerBuilder
withSetBuildDescription(boolean value)
Sets the default value for the setBuildDescription property.GiteePushTriggerBuilder
withSkipLastCommitHasBeenBuild(boolean value)
Sets the default value for the skipLastCommitHasBeenBuild property.GiteePushTriggerBuilder
withSkipWorkInProgressPullRequest(boolean value)
Sets the default value for the skipWorkInProgressPullRequest property.GiteePushTriggerBuilder
withTargetBranchRegex(String value)
Sets the default value for the targetBranchRegex property.GiteePushTriggerBuilder
withTriggerOnAcceptedPullRequest(boolean value)
Sets the default value for the triggerOnAcceptedPullRequest property.GiteePushTriggerBuilder
withTriggerOnApprovedPullRequest(boolean value)
Sets the default value for the triggerOnApprovedPullRequest property.GiteePushTriggerBuilder
withTriggerOnClosedPullRequest(boolean value)
Sets the default value for the triggerOnClosedPullRequest property.GiteePushTriggerBuilder
withTriggerOnCommitComment(boolean value)
Sets the default value for the triggerOnCommitComment property.GiteePushTriggerBuilder
withTriggerOnNoteRequest(boolean value)
Sets the default value for the triggerOnNoteRequest property.GiteePushTriggerBuilder
withTriggerOnOpenPullRequest(boolean value)
Sets the default value for the triggerOnOpenPullRequest property.GiteePushTriggerBuilder
withTriggerOnPipelineEvent(boolean value)
Sets the default value for the triggerOnPipelineEvent property.GiteePushTriggerBuilder
withTriggerOnPush(boolean value)
Sets the default value for the triggerOnPush property.GiteePushTriggerBuilder
withTriggerOnTestedPullRequest(boolean value)
Sets the default value for the triggerOnTestedPullRequest property.GiteePushTriggerBuilder
withTriggerOnUpdatePullRequest(String value)
Sets the default value for the triggerOnUpdatePullRequest property.
-
-
-
Field Detail
-
self
protected GiteePushTriggerBuilder self
-
value$triggerOnPush$boolean
protected boolean value$triggerOnPush$boolean
-
isSet$triggerOnPush$boolean
protected boolean isSet$triggerOnPush$boolean
-
value$triggerOnCommitComment$boolean
protected boolean value$triggerOnCommitComment$boolean
-
isSet$triggerOnCommitComment$boolean
protected boolean isSet$triggerOnCommitComment$boolean
-
value$triggerOnOpenPullRequest$boolean
protected boolean value$triggerOnOpenPullRequest$boolean
-
isSet$triggerOnOpenPullRequest$boolean
protected boolean isSet$triggerOnOpenPullRequest$boolean
-
value$triggerOnUpdatePullRequest$java$lang$String
protected String value$triggerOnUpdatePullRequest$java$lang$String
-
isSet$triggerOnUpdatePullRequest$java$lang$String
protected boolean isSet$triggerOnUpdatePullRequest$java$lang$String
-
value$triggerOnAcceptedPullRequest$boolean
protected boolean value$triggerOnAcceptedPullRequest$boolean
-
isSet$triggerOnAcceptedPullRequest$boolean
protected boolean isSet$triggerOnAcceptedPullRequest$boolean
-
value$triggerOnClosedPullRequest$boolean
protected boolean value$triggerOnClosedPullRequest$boolean
-
isSet$triggerOnClosedPullRequest$boolean
protected boolean isSet$triggerOnClosedPullRequest$boolean
-
value$triggerOnNoteRequest$boolean
protected boolean value$triggerOnNoteRequest$boolean
-
isSet$triggerOnNoteRequest$boolean
protected boolean isSet$triggerOnNoteRequest$boolean
-
value$noteRegex$java$lang$String
protected String value$noteRegex$java$lang$String
-
isSet$noteRegex$java$lang$String
protected boolean isSet$noteRegex$java$lang$String
-
value$skipWorkInProgressPullRequest$boolean
protected boolean value$skipWorkInProgressPullRequest$boolean
-
isSet$skipWorkInProgressPullRequest$boolean
protected boolean isSet$skipWorkInProgressPullRequest$boolean
-
value$ciSkip$boolean
protected boolean value$ciSkip$boolean
-
isSet$ciSkip$boolean
protected boolean isSet$ciSkip$boolean
-
value$buildInstructionFilterType$com$gitee$jenkins$trigger$filter$BuildInstructionFilterType
protected BuildInstructionFilterType value$buildInstructionFilterType$com$gitee$jenkins$trigger$filter$BuildInstructionFilterType
-
isSet$buildInstructionFilterType$com$gitee$jenkins$trigger$filter$BuildInstructionFilterType
protected boolean isSet$buildInstructionFilterType$com$gitee$jenkins$trigger$filter$BuildInstructionFilterType
-
value$setBuildDescription$boolean
protected boolean value$setBuildDescription$boolean
-
isSet$setBuildDescription$boolean
protected boolean isSet$setBuildDescription$boolean
-
value$addNoteOnPullRequest$boolean
protected boolean value$addNoteOnPullRequest$boolean
-
isSet$addNoteOnPullRequest$boolean
protected boolean isSet$addNoteOnPullRequest$boolean
-
value$addCiMessage$boolean
protected boolean value$addCiMessage$boolean
-
isSet$addCiMessage$boolean
protected boolean isSet$addCiMessage$boolean
-
value$addVoteOnPullRequest$boolean
protected boolean value$addVoteOnPullRequest$boolean
-
isSet$addVoteOnPullRequest$boolean
protected boolean isSet$addVoteOnPullRequest$boolean
-
value$acceptPullRequestOnSuccess$boolean
protected boolean value$acceptPullRequestOnSuccess$boolean
-
isSet$acceptPullRequestOnSuccess$boolean
protected boolean isSet$acceptPullRequestOnSuccess$boolean
-
value$branchFilterType$com$gitee$jenkins$trigger$filter$BranchFilterType
protected BranchFilterType value$branchFilterType$com$gitee$jenkins$trigger$filter$BranchFilterType
-
isSet$branchFilterType$com$gitee$jenkins$trigger$filter$BranchFilterType
protected boolean isSet$branchFilterType$com$gitee$jenkins$trigger$filter$BranchFilterType
-
value$includeBranchesSpec$java$lang$String
protected String value$includeBranchesSpec$java$lang$String
-
isSet$includeBranchesSpec$java$lang$String
protected boolean isSet$includeBranchesSpec$java$lang$String
-
value$excludeBranchesSpec$java$lang$String
protected String value$excludeBranchesSpec$java$lang$String
-
isSet$excludeBranchesSpec$java$lang$String
protected boolean isSet$excludeBranchesSpec$java$lang$String
-
value$targetBranchRegex$java$lang$String
protected String value$targetBranchRegex$java$lang$String
-
isSet$targetBranchRegex$java$lang$String
protected boolean isSet$targetBranchRegex$java$lang$String
-
value$pullRequestLabelFilterConfig$com$gitee$jenkins$trigger$filter$PullRequestLabelFilterConfig
protected PullRequestLabelFilterConfig value$pullRequestLabelFilterConfig$com$gitee$jenkins$trigger$filter$PullRequestLabelFilterConfig
-
isSet$pullRequestLabelFilterConfig$com$gitee$jenkins$trigger$filter$PullRequestLabelFilterConfig
protected boolean isSet$pullRequestLabelFilterConfig$com$gitee$jenkins$trigger$filter$PullRequestLabelFilterConfig
-
value$secretToken$java$lang$String
protected String value$secretToken$java$lang$String
-
isSet$secretToken$java$lang$String
protected boolean isSet$secretToken$java$lang$String
-
value$triggerOnPipelineEvent$boolean
protected boolean value$triggerOnPipelineEvent$boolean
-
isSet$triggerOnPipelineEvent$boolean
protected boolean isSet$triggerOnPipelineEvent$boolean
-
value$triggerOnApprovedPullRequest$boolean
protected boolean value$triggerOnApprovedPullRequest$boolean
-
isSet$triggerOnApprovedPullRequest$boolean
protected boolean isSet$triggerOnApprovedPullRequest$boolean
-
value$pendingBuildName$java$lang$String
protected String value$pendingBuildName$java$lang$String
-
isSet$pendingBuildName$java$lang$String
protected boolean isSet$pendingBuildName$java$lang$String
-
value$cancelPendingBuildsOnUpdate$boolean
protected boolean value$cancelPendingBuildsOnUpdate$boolean
-
isSet$cancelPendingBuildsOnUpdate$boolean
protected boolean isSet$cancelPendingBuildsOnUpdate$boolean
-
value$cancelIncompleteBuildOnSamePullRequest$boolean
protected boolean value$cancelIncompleteBuildOnSamePullRequest$boolean
-
isSet$cancelIncompleteBuildOnSamePullRequest$boolean
protected boolean isSet$cancelIncompleteBuildOnSamePullRequest$boolean
-
value$ignorePullRequestConflicts$boolean
protected boolean value$ignorePullRequestConflicts$boolean
-
isSet$ignorePullRequestConflicts$boolean
protected boolean isSet$ignorePullRequestConflicts$boolean
-
value$triggerOnTestedPullRequest$boolean
protected boolean value$triggerOnTestedPullRequest$boolean
-
isSet$triggerOnTestedPullRequest$boolean
protected boolean isSet$triggerOnTestedPullRequest$boolean
-
value$ciSkipFroTestNotRequired$boolean
protected boolean value$ciSkipFroTestNotRequired$boolean
-
isSet$ciSkipFroTestNotRequired$boolean
protected boolean isSet$ciSkipFroTestNotRequired$boolean
-
value$ciBuildForDeleteRef$boolean
protected boolean value$ciBuildForDeleteRef$boolean
-
isSet$ciBuildForDeleteRef$boolean
protected boolean isSet$ciBuildForDeleteRef$boolean
-
value$skipLastCommitHasBeenBuild$boolean
protected boolean value$skipLastCommitHasBeenBuild$boolean
-
isSet$skipLastCommitHasBeenBuild$boolean
protected boolean isSet$skipLastCommitHasBeenBuild$boolean
-
value$branchFilterName$java$lang$String
protected String value$branchFilterName$java$lang$String
-
isSet$branchFilterName$java$lang$String
protected boolean isSet$branchFilterName$java$lang$String
-
-
Constructor Detail
-
GiteePushTriggerBuilder
public GiteePushTriggerBuilder()
Creates a newGiteePushTriggerBuilder
.
-
-
Method Detail
-
giteePushTrigger
public static GiteePushTriggerBuilder giteePushTrigger()
Factory Method to construct a GiteePushTriggerBuilder- Returns:
- a new GiteePushTriggerBuilder
-
withTriggerOnPush
public GiteePushTriggerBuilder withTriggerOnPush(boolean value)
Sets the default value for the triggerOnPush property.- Parameters:
value
- the default value- Returns:
- this builder
-
withTriggerOnCommitComment
public GiteePushTriggerBuilder withTriggerOnCommitComment(boolean value)
Sets the default value for the triggerOnCommitComment property.- Parameters:
value
- the default value- Returns:
- this builder
-
withTriggerOnOpenPullRequest
public GiteePushTriggerBuilder withTriggerOnOpenPullRequest(boolean value)
Sets the default value for the triggerOnOpenPullRequest property.- Parameters:
value
- the default value- Returns:
- this builder
-
withTriggerOnUpdatePullRequest
public GiteePushTriggerBuilder withTriggerOnUpdatePullRequest(String value)
Sets the default value for the triggerOnUpdatePullRequest property.- Parameters:
value
- the default value- Returns:
- this builder
-
withTriggerOnAcceptedPullRequest
public GiteePushTriggerBuilder withTriggerOnAcceptedPullRequest(boolean value)
Sets the default value for the triggerOnAcceptedPullRequest property.- Parameters:
value
- the default value- Returns:
- this builder
-
withTriggerOnClosedPullRequest
public GiteePushTriggerBuilder withTriggerOnClosedPullRequest(boolean value)
Sets the default value for the triggerOnClosedPullRequest property.- Parameters:
value
- the default value- Returns:
- this builder
-
withTriggerOnNoteRequest
public GiteePushTriggerBuilder withTriggerOnNoteRequest(boolean value)
Sets the default value for the triggerOnNoteRequest property.- Parameters:
value
- the default value- Returns:
- this builder
-
withNoteRegex
public GiteePushTriggerBuilder withNoteRegex(String value)
Sets the default value for the noteRegex property.- Parameters:
value
- the default value- Returns:
- this builder
-
withSkipWorkInProgressPullRequest
public GiteePushTriggerBuilder withSkipWorkInProgressPullRequest(boolean value)
Sets the default value for the skipWorkInProgressPullRequest property.- Parameters:
value
- the default value- Returns:
- this builder
-
withCiSkip
public GiteePushTriggerBuilder withCiSkip(boolean value)
Sets the default value for the ciSkip property.- Parameters:
value
- the default value- Returns:
- this builder
-
withBuildInstructionFilterType
public GiteePushTriggerBuilder withBuildInstructionFilterType(BuildInstructionFilterType value)
Sets the default value for the buildInstructionFilterType property.- Parameters:
value
- the default value- Returns:
- this builder
-
withSetBuildDescription
public GiteePushTriggerBuilder withSetBuildDescription(boolean value)
Sets the default value for the setBuildDescription property.- Parameters:
value
- the default value- Returns:
- this builder
-
withAddNoteOnPullRequest
public GiteePushTriggerBuilder withAddNoteOnPullRequest(boolean value)
Sets the default value for the addNoteOnPullRequest property.- Parameters:
value
- the default value- Returns:
- this builder
-
withAddCiMessage
public GiteePushTriggerBuilder withAddCiMessage(boolean value)
Sets the default value for the addCiMessage property.- Parameters:
value
- the default value- Returns:
- this builder
-
withAddVoteOnPullRequest
public GiteePushTriggerBuilder withAddVoteOnPullRequest(boolean value)
Sets the default value for the addVoteOnPullRequest property.- Parameters:
value
- the default value- Returns:
- this builder
-
withAcceptPullRequestOnSuccess
public GiteePushTriggerBuilder withAcceptPullRequestOnSuccess(boolean value)
Sets the default value for the acceptPullRequestOnSuccess property.- Parameters:
value
- the default value- Returns:
- this builder
-
withBranchFilterType
public GiteePushTriggerBuilder withBranchFilterType(BranchFilterType value)
Sets the default value for the branchFilterType property.- Parameters:
value
- the default value- Returns:
- this builder
-
withIncludeBranchesSpec
public GiteePushTriggerBuilder withIncludeBranchesSpec(String value)
Sets the default value for the includeBranchesSpec property.- Parameters:
value
- the default value- Returns:
- this builder
-
withExcludeBranchesSpec
public GiteePushTriggerBuilder withExcludeBranchesSpec(String value)
Sets the default value for the excludeBranchesSpec property.- Parameters:
value
- the default value- Returns:
- this builder
-
withTargetBranchRegex
public GiteePushTriggerBuilder withTargetBranchRegex(String value)
Sets the default value for the targetBranchRegex property.- Parameters:
value
- the default value- Returns:
- this builder
-
withPullRequestLabelFilterConfig
public GiteePushTriggerBuilder withPullRequestLabelFilterConfig(PullRequestLabelFilterConfig value)
Sets the default value for the pullRequestLabelFilterConfig property.- Parameters:
value
- the default value- Returns:
- this builder
-
withSecretToken
public GiteePushTriggerBuilder withSecretToken(String value)
Sets the default value for the secretToken property.- Parameters:
value
- the default value- Returns:
- this builder
-
withTriggerOnPipelineEvent
public GiteePushTriggerBuilder withTriggerOnPipelineEvent(boolean value)
Sets the default value for the triggerOnPipelineEvent property.- Parameters:
value
- the default value- Returns:
- this builder
-
withTriggerOnApprovedPullRequest
public GiteePushTriggerBuilder withTriggerOnApprovedPullRequest(boolean value)
Sets the default value for the triggerOnApprovedPullRequest property.- Parameters:
value
- the default value- Returns:
- this builder
-
withPendingBuildName
public GiteePushTriggerBuilder withPendingBuildName(String value)
Sets the default value for the pendingBuildName property.- Parameters:
value
- the default value- Returns:
- this builder
-
withCancelPendingBuildsOnUpdate
public GiteePushTriggerBuilder withCancelPendingBuildsOnUpdate(boolean value)
Sets the default value for the cancelPendingBuildsOnUpdate property.- Parameters:
value
- the default value- Returns:
- this builder
-
withCancelIncompleteBuildOnSamePullRequest
public GiteePushTriggerBuilder withCancelIncompleteBuildOnSamePullRequest(boolean value)
Sets the default value for the cancelIncompleteBuildOnSamePullRequest property.- Parameters:
value
- the default value- Returns:
- this builder
-
withIgnorePullRequestConflicts
public GiteePushTriggerBuilder withIgnorePullRequestConflicts(boolean value)
Sets the default value for the ignorePullRequestConflicts property.- Parameters:
value
- the default value- Returns:
- this builder
-
withTriggerOnTestedPullRequest
public GiteePushTriggerBuilder withTriggerOnTestedPullRequest(boolean value)
Sets the default value for the triggerOnTestedPullRequest property.- Parameters:
value
- the default value- Returns:
- this builder
-
withCiSkipFroTestNotRequired
public GiteePushTriggerBuilder withCiSkipFroTestNotRequired(boolean value)
Sets the default value for the ciSkipFroTestNotRequired property.- Parameters:
value
- the default value- Returns:
- this builder
-
withCiBuildForDeleteRef
public GiteePushTriggerBuilder withCiBuildForDeleteRef(boolean value)
Sets the default value for the ciBuildForDeleteRef property.- Parameters:
value
- the default value- Returns:
- this builder
-
withSkipLastCommitHasBeenBuild
public GiteePushTriggerBuilder withSkipLastCommitHasBeenBuild(boolean value)
Sets the default value for the skipLastCommitHasBeenBuild property.- Parameters:
value
- the default value- Returns:
- this builder
-
withBranchFilterName
public GiteePushTriggerBuilder withBranchFilterName(String value)
Sets the default value for the branchFilterName property.- Parameters:
value
- the default value- Returns:
- this builder
-
clone
@GwtIncompatible public Object clone()
Returns a clone of this builder.
-
but
@GwtIncompatible public GiteePushTriggerBuilder but()
Returns a clone of this builder.- Returns:
- the clone
-
build
public GiteePushTrigger build()
Creates a newGiteePushTrigger
based on this builder's settings.- Returns:
- the created GiteePushTrigger
-
-