Class CfnPipeline.GitPullRequestFilterProperty.Builder
java.lang.Object
software.amazon.awscdk.services.codepipeline.CfnPipeline.GitPullRequestFilterProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPipeline.GitPullRequestFilterProperty>
- Enclosing interface:
CfnPipeline.GitPullRequestFilterProperty
@Stability(Stable)
public static final class CfnPipeline.GitPullRequestFilterProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPipeline.GitPullRequestFilterProperty>
A builder for
CfnPipeline.GitPullRequestFilterProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbranches(IResolvable branches) Sets the value ofCfnPipeline.GitPullRequestFilterProperty.getBranches()Sets the value ofCfnPipeline.GitPullRequestFilterProperty.getBranches()build()Builds the configured instance.Sets the value ofCfnPipeline.GitPullRequestFilterProperty.getEvents()filePaths(IResolvable filePaths) Sets the value ofCfnPipeline.GitPullRequestFilterProperty.getFilePaths()Sets the value ofCfnPipeline.GitPullRequestFilterProperty.getFilePaths()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
branches
@Stability(Stable) public CfnPipeline.GitPullRequestFilterProperty.Builder branches(IResolvable branches) Sets the value ofCfnPipeline.GitPullRequestFilterProperty.getBranches()- Parameters:
branches- The field that specifies to filter on branches for the pull request trigger configuration.- Returns:
this
-
branches
@Stability(Stable) public CfnPipeline.GitPullRequestFilterProperty.Builder branches(CfnPipeline.GitBranchFilterCriteriaProperty branches) Sets the value ofCfnPipeline.GitPullRequestFilterProperty.getBranches()- Parameters:
branches- The field that specifies to filter on branches for the pull request trigger configuration.- Returns:
this
-
events
@Stability(Stable) public CfnPipeline.GitPullRequestFilterProperty.Builder events(List<String> events) Sets the value ofCfnPipeline.GitPullRequestFilterProperty.getEvents()- Parameters:
events- The field that specifies which pull request events to filter on (opened, updated, closed) for the trigger configuration.- Returns:
this
-
filePaths
@Stability(Stable) public CfnPipeline.GitPullRequestFilterProperty.Builder filePaths(IResolvable filePaths) Sets the value ofCfnPipeline.GitPullRequestFilterProperty.getFilePaths()- Parameters:
filePaths- The field that specifies to filter on file paths for the pull request trigger configuration.- Returns:
this
-
filePaths
@Stability(Stable) public CfnPipeline.GitPullRequestFilterProperty.Builder filePaths(CfnPipeline.GitFilePathFilterCriteriaProperty filePaths) Sets the value ofCfnPipeline.GitPullRequestFilterProperty.getFilePaths()- Parameters:
filePaths- The field that specifies to filter on file paths for the pull request trigger configuration.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPipeline.GitPullRequestFilterProperty>- Returns:
- a new instance of
CfnPipeline.GitPullRequestFilterProperty - Throws:
NullPointerException- if any required attribute was not provided
-