Class GitPullRequestFilter.Builder
java.lang.Object
software.amazon.awscdk.services.codepipeline.GitPullRequestFilter.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<GitPullRequestFilter>
- Enclosing interface:
GitPullRequestFilter
@Stability(Stable)
public static final class GitPullRequestFilter.Builder
extends Object
implements software.amazon.jsii.Builder<GitPullRequestFilter>
A builder for
GitPullRequestFilter-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbranchesExcludes(List<String> branchesExcludes) Sets the value ofGitPullRequestFilter.getBranchesExcludes()branchesIncludes(List<String> branchesIncludes) Sets the value ofGitPullRequestFilter.getBranchesIncludes()build()Builds the configured instance.events(List<? extends GitPullRequestEvent> events) Sets the value ofGitPullRequestFilter.getEvents()filePathsExcludes(List<String> filePathsExcludes) Sets the value ofGitPullRequestFilter.getFilePathsExcludes()filePathsIncludes(List<String> filePathsIncludes) Sets the value ofGitPullRequestFilter.getFilePathsIncludes()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
branchesExcludes
@Stability(Stable) public GitPullRequestFilter.Builder branchesExcludes(List<String> branchesExcludes) Sets the value ofGitPullRequestFilter.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
@Stability(Stable) public GitPullRequestFilter.Builder branchesIncludes(List<String> branchesIncludes) Sets the value ofGitPullRequestFilter.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
-
events
@Stability(Stable) public GitPullRequestFilter.Builder events(List<? extends GitPullRequestEvent> events) Sets the value ofGitPullRequestFilter.getEvents()- Parameters:
events- The field that specifies which pull request events to filter on (opened, updated, closed) for the trigger configuration.- Returns:
this
-
filePathsExcludes
@Stability(Stable) public GitPullRequestFilter.Builder filePathsExcludes(List<String> filePathsExcludes) Sets the value ofGitPullRequestFilter.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
@Stability(Stable) public GitPullRequestFilter.Builder filePathsIncludes(List<String> filePathsIncludes) Sets the value ofGitPullRequestFilter.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
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<GitPullRequestFilter>- Returns:
- a new instance of
GitPullRequestFilter - Throws:
NullPointerException- if any required attribute was not provided
-