Class GitPushFilter.Builder
java.lang.Object
software.amazon.awscdk.services.codepipeline.GitPushFilter.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<GitPushFilter>
- Enclosing interface:
GitPushFilter
@Stability(Stable)
public static final class GitPushFilter.Builder
extends Object
implements software.amazon.jsii.Builder<GitPushFilter>
A builder for
GitPushFilter-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbranchesExcludes(List<String> branchesExcludes) Sets the value ofGitPushFilter.getBranchesExcludes()branchesIncludes(List<String> branchesIncludes) Sets the value ofGitPushFilter.getBranchesIncludes()build()Builds the configured instance.filePathsExcludes(List<String> filePathsExcludes) Sets the value ofGitPushFilter.getFilePathsExcludes()filePathsIncludes(List<String> filePathsIncludes) Sets the value ofGitPushFilter.getFilePathsIncludes()tagsExcludes(List<String> tagsExcludes) Sets the value ofGitPushFilter.getTagsExcludes()tagsIncludes(List<String> tagsIncludes) Sets the value ofGitPushFilter.getTagsIncludes()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
branchesExcludes
Sets the value ofGitPushFilter.getBranchesExcludes()- Parameters:
branchesExcludes- The list of patterns of Git branches that, when pull request events occurs, are to be excluded from starting the pipeline. You can filter with glob patterns. ThebranchesExcludestakes priority over thebranchesIncludes.Maximum length of this array is 8.
- Returns:
this
-
branchesIncludes
Sets the value ofGitPushFilter.getBranchesIncludes()- Parameters:
branchesIncludes- The list of patterns of Git branches that, when pull request events occurs, are to be included as criteria that starts the pipeline. You can filter with glob patterns. ThebranchesExcludestakes priority over thebranchesIncludes.Maximum length of this array is 8.
- Returns:
this
-
filePathsExcludes
Sets the value ofGitPushFilter.getFilePathsExcludes()- Parameters:
filePathsExcludes- The list of patterns of Git repository file paths that, when pull request events occurs, are to be excluded from starting the pipeline. You can filter with glob patterns. ThefilePathsExcludestakes priority over thefilePathsIncludes.Maximum length of this array is 8.
- Returns:
this
-
filePathsIncludes
Sets the value ofGitPushFilter.getFilePathsIncludes()- Parameters:
filePathsIncludes- The list of patterns of Git repository file paths that, when pull request events occurs, are to be included as criteria that starts the pipeline. You can filter with glob patterns. ThefilePathsExcludestakes priority over thefilePathsIncludes.Maximum length of this array is 8.
- Returns:
this
-
tagsExcludes
Sets the value ofGitPushFilter.getTagsExcludes()- Parameters:
tagsExcludes- The list of patterns of Git tags that, when pushed, are to be excluded from starting the pipeline. You can filter with glob patterns. ThetagsExcludestakes priority over thetagsIncludes.Maximum length of this array is 8.
- Returns:
this
-
tagsIncludes
Sets the value ofGitPushFilter.getTagsIncludes()- Parameters:
tagsIncludes- The list of patterns of Git tags that, when pushed, are to be included as criteria that starts the pipeline. You can filter with glob patterns. ThetagsExcludestakes priority over thetagsIncludes.Maximum length of this array is 8.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<GitPushFilter>- Returns:
- a new instance of
GitPushFilter - Throws:
NullPointerException- if any required attribute was not provided
-